Example: Requesting an PayU Sale Using the REST API
American Express DirectAPI
Request
123456789101112131415161718192021222324252627282930{"clientReferenceInformation": { "code": "sale1077" }, "orderInformation": { "amountDetails": { "totalAmount": "1055", "currency": "PLN", "taxAmount": "900" }, "billTo":{ "country":"PL", "firstName":"Jane", "lastName":"Doe", "email":"abc@email.com" } }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "payu" } } }, "merchantInformation": { "successUrl": "https://www.example.org/feedback.php", "merchantDescriptor": { "name": "DynDescriptor" } }}
Response to a Successful Request
123456789101112{"processorInformation": { "transactionId": "832762292", "rawStatus": "PENDING", "paymentUrl": "https://r3.paygate.de/ti/simpayu?tx=832762292&rs=Yw1Ar6yi7G4HE57Gi1aT8npSHFdFPiHm&cs=7f08fe44c9344cf45e7fd9e6a18541181c3f4a8748c50e6f2cd9873c670d7b24" }, "paymentInformation": { "binCountry": "PL" }, "message": "Successful", "status": "PENDING", "id": "6523329019126743603307", "submitTimeUtc": "2022-06-06T13:02:42Z"}