Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using MundiAPI.PCL;
- using MundiAPI.PCL.Models;
- using System.Collections.Generic;
- namespace TutorialPedido {
- class Program {
- static void Main(string[] args) {
- // Secret key fornecida pela MundiPagg
- string basicAuthUserName = "sk_test_4AdjlqpseatnmgbW";
- // Senha em branco. Passando apenas a secret key
- string basicAuthPassword = "";
- var client = new MundiAPIClient(basicAuthUserName, basicAuthPassword);
- var customer = new CreateCustomerRequest {
- Name = "Tony Stark",
- Email = "tonystark@avengers.com",
- };
- var items = new List<CreateOrderItemRequest> {
- new CreateOrderItemRequest{
- Amount = 2990,
- Description = "Chaveiro do Tesseract",
- Quantity =1,
- },
- new CreateOrderItemRequest{
- Amount = 5990,
- Description = "Manopla do Infinito",
- Quantity =1
- },
- };
- var order = new CreateOrderRequest() {
- Items = items,
- };
- }
- }
- }
Add Comment
Please, Sign In to add comment