1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"RequestHeader": {
"SpecVersion": "1.3",
"CustomerId": "[your customer id]",
"RequestId": "[unique request identifier]",
"RetryIndicator": 0
},
"TerminalId": "[your terminal id]",
"Payment": {
"Amount": {
"Value": "100",
"CurrencyCode": "CHF"
},
"OrderId": "Id of the order",
"Description": "Description of payment"
},
"ReturnUrls": {
"Success": "[your shop payment success url]",
"Fail": "[your shop payment fail url]"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
my %content = {
"RequestHeader" => {
"SpecVersion" => "1.3",
"CustomerId"=> "[your customer id]",
"RequestId"=> "[unique request identifier]",
"RetryIndicator"=> 0
},
"TerminalId"=> "[your terminal id]",
"Payment"=> {
"Amount"=> {
"Value"=> "100",
"CurrencyCode"=> "CHF"
},
"OrderId"=> "Id of the order",
"Description"=> "Description of payment"
},
"ReturnUrls"=> {
"Success"=> "[your shop payment success url]",
"Fail"=> "[your shop payment fail url]"
}
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
my %content = %{ { "RequestHeader" => { "SpecVersion" => "1.3", "CustomerId" => "[your customer id]", "RequestId" => "[unique request identifier]", "RetryIndicator" => 0 }, "TerminalId" => "[your terminal id]", "Payment" => { "Amount" => { "Value" => "100", "CurrencyCode" => "CHF" }, "OrderId" => "Id of the order", "Description" => "Description of payment" }, "ReturnUrls" => { "Success" => "[your shop payment success url]", "Fail" => "[your shop payment fail url]" } } };