Payments root resource, returns links to available payments actions.
Payments root resource, returns links to available payments actions.
An example of a sale for GBP 2.50 with a successful outcome
{ "transactionReference": "transaction-ref", "merchant": { "entity": "an-entity" }, "instruction": { "narrative": { "line1": "trading name" }, "value": { "currency": "GBP", "amount": 250 }, "paymentInstrument": { "type": "card/plain", "cardNumber": "4444333322221111", "cardExpiryDate": { "month": 12, "year": 2024 }, "cardHolderName": "John Appleseed" } } }
An example of a sale for GBP 2.50 with a successful outcome
{ "outcome": "Sent For Settlement", "_links": { "payments:refund": { "href": "/payments/settlements/refunds/:linkData" }, "payments:partialRefund": { "href": "/payments/settlements/refunds/partials/:linkData" }, "payments:reversal": { "href": "/payments/sales/reversals/linkData" }, "payments:events": { "href": "/payments/events/linkData" }, "curies": [ { "name": "payments", "href": "/rels/payments/{rel}", "templated": true } ] } }
An example of a payment sale with all optional fields
{ "transactionReference": "transaction-ref", "merchant": { "entity": "an-entity", "mcc": "1234", "paymentFacilitator": { "pfId": "12345", "isoId": "12345", "subMerchant": { "name": "Merchant Plc", "merchantId": "12345", "postalCode": "SW1 1AA", "street": "Regent Street", "city": "London", "countryCode": "123", "taxId": "12345", "state": "St8" } } }, "instruction": { "debtRepayment": true, "narrative": { "line1": "trading name", "line2": "order number" }, "value": { "currency": "GBP", "amount": 250 }, "paymentInstrument": { "type": "card/plain", "cardNumber": "4444333322221111", "cardExpiryDate": { "month": 12, "year": 2024 }, "cardHolderName": "John Appleseed", "billingAddress": { "address1": "address line 1", "address2": "address line 2", "address3": "address line 3", "city": "city", "state": "state", "postalCode": "12345", "countryCode": "IT" } } } }
An example of a payment sale with all optional fields
{ "outcome": "authorized", "issuer": { "authorizationCode": "012345" }, "riskFactors": [ { "type": "cvc", "risk": "not_matched" }, { "type": "avs", "detail": "postcode", "risk": "not_checked" } ], "_links": { "payments:refund": { "href": "/payments/settlements/refunds/:linkData" }, "payments:partialRefund": { "href": "/payments/settlements/refunds/partials/:linkData" }, "payments:reversal": { "href": "/payments/sales/reversals/linkData" }, "payments:events": { "href": "/payments/events/linkData" }, "curies": [ { "name": "payments", "href": "/rels/payments/{rel}", "templated": true } ] } }