To include an order number in a payment the TransactionSetup must be used. The following example shows how to make a payment for 120 SEK for order number 123456789.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.Text.Json;
class PaxImplementation : ISwpTrmCallbackInterface
{
public ISwpTrmIf_1 Pax = {get; internal set; } = null;
.
.
.
public async Task CreatePayment()
{
var pr = await Pax.PaymentAsync(new TransactionSetup() {
AcquirerData = JsonSerializer.Serialize(new { purchaseOrderNumber = "123456789"}),
Amount = (decimal)120
};
}