Example: Requesting an FPX Online Banking Sale Using the REST API

Light Dark
Request
123456789101112131415161718192021222324252627282930313233343536
{ "clientReferenceInformation": { "code": "sale1077" }, "orderInformation": { "amountDetails": { "totalAmount": "1055", "currency": "MYR", "taxAmount": "900" }, "billTo":{ "country":"MY", "firstName":"Jane", "lastName":"Doe", "phoneNumber":"909090909", "email":"abc@email.com" } }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "fpx" } }, "bank":{ "name":"publicbank" } }, "merchantInformation": { "successUrl": "https://www.example.org/feedback.php", "merchantDescriptor": { "name": "DynDescriptor" } } }
Response to a Successful Request
1234567891011
{ "processorInformation": { "transactionId": "832651358", "rawStatus": "PENDING", "paymentUrl": "https://r2.paygate.de/molpay/T1418/I?tx=832651358&rs=VW9b6b9GdsVDe2oGhFyBSXd0n5OfeOeJ&cs=0edfbcae22459c249680b83939d993ef72107cdb854c91b309d46787ec5107f7" }, "message": "Successful", "status": "PENDING", "id": "65233290191267436032980", "submitTimeUtc": "2022-06-06T11:15:01Z" }