On This Page
REST Example: Authorization with a Surcharge
Request
{ "clientReferenceInformation": { "code": "TC50171_3" }, "paymentInformation": { "card": { "number": "CARD_NUMBER", "expirationMonth": "12", "expirationYear": "2031", "securityCode": "123" } }, "orderInformation": { "amountDetails": { "totalAmount": "103.00", "currency": "USD", "surcharge": { "amount": "3.00" } }, "billTo": { "firstName": "John", "lastName": "Doe", "address1": "1 Market St", "locality": "San Francisco", "administrativeArea": "CA", "postalCode": "94105", "country": "US", "email": "", "phoneNumber": "4158880000" } } }
Response to Successful Request
{ "id": "6840692135696350104011", "status": "AUTHORIZED", "clientReferenceInformation": { "code": "TC50171_3" }, "processorInformation": { "approvalCode": "831000", "responseCode": "100", "avs": { "code": "Y" } }, "orderInformation": { "amountDetails": { "authorizedAmount": "103.00", "currency": "USD" } } }