Example: Requesting an Dragonpay Sale Using the REST API

Request
{ "clientReferenceInformation": { "code": "sale1077" }, "orderInformation": { "amountDetails": { "totalAmount": "5001", "currency": "PHP", "taxAmount": "900" }, "billTo":{ "country":"PH", "firstName":"John", "lastName":"Doe", "email":"[email protected]", "phoneNumber":"987654321" } }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "dragonPay" } } }, "merchantInformation": { "successUrl": "https://www.example.org/feedback.php", "merchantDescriptor": { "name": "DynDescriptor" } } }
Response to a Successful Request
{ "processorInformation": { "transactionId": "1169511625", "rawStatus": "PENDING", "paymentUrl": "https://r2.paygate.de/molpay/S1321/I?tx=1169511625&rs=YkLYEOCpK0WUHQH3RUC76a0yMm7LkLfQ&cs=c9aa7308ba57f4790fb2eaf9421964d7980318023884f35055804d44ceefd5cc" }, "message": "Successful", "status": "PENDING", "id": "6523329019126743603310", "submitTimeUtc": "2022-06-06T13:07:11Z" }