-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
21 lines (21 loc) · 746 Bytes
/
Program.cs
File metadata and controls
21 lines (21 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* Copyright (c) 2025 Bruno Venancio Alves
*
* Author: Bruno Venancio Alves
* Email: boteistem@gmail.com
*
* Permission is granted to use, modify, and distribute this software with
* acknowledgment of the original author. This notice must not be removed
* or altered from any source distribution.
*/
using SumUp.SDK.Helper;
using SumUp.SDK.Client.Checkout;
using SumUp.SDK.Fields;
using VarDump;
Config.setAccessToken("");
var checkout = new Checkout();
var fields = new CheckoutFields().setAmount(10).setCurrency("BRL").setDescription("teste")
.setPayerEmail("boteistem@gmail.com").setReference("testref");
var response = checkout.CreateAndProcessPix(fields);
var cs = new CSharpDumper().Dump(response);
Console.WriteLine(cs);