SDK Playground
Prepare a checkout order or query reports. Choose your checkout environment carefully: Production uses real money; Staging uses test banks.
Prepare a payment order
Note: API Key is optional but recommended to sign and lock in the payment amount.
View the initial example payload
Array
(
[agency] => SNAPNPAY
[refNo] => test6af836a031587~881225-08-1234~12
Jalan Foo~#Sample RefNo
[amount] => 2.00
[email] => [email protected]
[returnUrl] => https://developers.snapnpay.my/sdk/example/receipt.php?just=1&a=test
[cancelUrl] =>
[utm_source] => sdk
[utm_medium] => dev
[utm_campaign] => sdk_demo
[utm_term] => tulus sdk
[utm_content] =>
[pref_method] =>
[pref_bank] =>
[extra_data] =>
)
Query payment reports
Uses the reporting service with your authorized Auth Token. The checkout environment above does not switch this report endpoint.