Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using MundiAPI.PCL;
- using MundiAPI.PCL.Models;
- namespace TutorialCobranca {
- class Program {
- static void Main(string[] args) {
- // Neste exemplo estamos utilizando A sdk C# MundiAPI.PCL
- string basicAuthUserName = "sk_test_4AdjlqpseatnmgbW";
- string basicAuthPassword = "";
- var client = new MundiAPIClient(basicAuthUserName, basicAuthPassword);
- var request = new CreateChargeRequest() {
- Amount = 1490,
- CustomerId = "cus_aGvrM1lCvxUKW9N7",
- Payment = new CreatePaymentRequest() {
- PaymentMethod = "credit_card",
- CreditCard = new CreateCreditCardPaymentRequest(){
- CardId = "card_qBkxRKtmEfgyv1Zd",
- Card = new CreateCardRequest {
- Cvv = "353",
- }
- }
- }
- };
- var response = client.Charges.CreateCharge(request);
- }
- }
- }
Add Comment
Please, Sign In to add comment