PayNow
Simulation at sandbox
QR code payments of PayNow cannot be simulated by scanning in the sandbox environment. Instead, they shall be simulated via API calls.
curl --location 'https://api-sandbox.straitsx.com/v1/sandbox/paynow_simulations' \
--header 'X-XFERS-APP-API-KEY: XKya7NS-kVK63H_yKuq-AJdBLz6xgijPmEso9H28CWQ' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"data": {
"attributes": {
"id": "paynow_b2c9a448-06bc-46c6-8247-9f07d63f8425",
"amount": 50,
"sourceBankAccountHolderName": "AutoTest Elise",
"endToEndRef": "suib"
},
"relationships": {
"customerProfile": {
"data": {
"id": "customer_profile_0e76eb07-020f-4dd4-9136-3f78f07d43e1"
}
}
}
}
}'Updated 3 months ago
