Take online card payments using our Card Payments API.
Security
BasicAuth
- Test (Try)https://try.access.worldpay-bsh.securedataplatform.co.uk/payments/authorizations
- Livehttps://access.worldpay-bsh.securedataplatform.co.uk/payments/authorizations
An example of a payment authorization 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" } } }
The payment authorization has been successfully created
Response
An example of a payment authorization for GBP 2.50 with a successful outcome
{ "outcome": "authorized", "_links": { "payments:cancel": { "href": "/payments/authorizations/cancellations/linkData" }, "payments:settle": { "href": "/payments/settlements/linkData" }, "payments:partialSettle": { "href": "/payments/settlements/partials/linkData" }, "payments:events": { "href": "/payments/events/linkData" }, "curies": [ { "name": "payments", "href": "/rels/payments/{rel}", "templated": true } ] } }