Guest User

Untitled

a guest
Apr 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. using MundiAPI.PCL;
  2. using MundiAPI.PCL.Models;
  3.  
  4. namespace TutorialCobranca {
  5. class Program {
  6. static void Main(string[] args) {
  7.  
  8. // Neste exemplo estamos utilizando A sdk C# MundiAPI.PCL
  9. string basicAuthUserName = "sk_test_4AdjlqpseatnmgbW";
  10. string basicAuthPassword = "";
  11.  
  12. var client = new MundiAPIClient(basicAuthUserName, basicAuthPassword);
  13.  
  14. var request = new CreateChargeRequest() {
  15. Amount = 1490,
  16. CustomerId = "cus_aGvrM1lCvxUKW9N7",
  17. Payment = new CreatePaymentRequest() {
  18. PaymentMethod = "credit_card",
  19. }
  20. };
  21. }
  22. }
  23. }
Add Comment
Please, Sign In to add comment