Created
February 8, 2019 14:15
-
-
Save JuaniVeltri/f6bb29bbae1f96384b8cde2d57bd6306 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MercadoPago; | |
using MercadoPago.DataStructures.Payment; | |
using MercadoPago.Resources; | |
//... | |
MercadoPago.SDK.SetAccessToken("ENV_ACCESS_TOKEN"); | |
Payment payment = new Payment() | |
{ | |
TransactionAmount = float.Parse("105"), | |
Description = "Awesome Wooden Wallet", | |
PaymentMethodId = "rapipago", | |
Payer = new Payer(){ | |
Email = "test_user_19653727@testuser.com" | |
} | |
}; | |
// Save and posting the payment | |
payment.Save(); | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment