Our low-code integration to take payments securely.
Our low-code integration to take payments securely.
The Transaction to create
A unique reference generated by you that is used to identify a payment throughout its lifecycle.
An object that contains information about the merchant.
An optional text, when supplied is displayed to your customer on payment pages.
The text that appears on your customer's statement. Used to identify the merchant.
An object containing the billing address information.
The payment amount.
The three character currency code. See list of supported currencies.
An object containing the different URLs we redirect your customers to when we receive the payment result. We recommend that you provide us with your custom result URLs.
When we receive the payment result for a successful payment, we redirect your customer to the success URL.
When we receive the payment result for a pending payment transaction, we redirect your customer to the pending URL.
When we receive the payment result for an erroneous payment, we redirect your customer to the error URL.
When your customer cancels a transaction, we redirect that customer to the cancel URL.
Data used for fraud and risk protection.
Allows you to configure the duration, in seconds, your customer can access the payment link.
An object that instructs us to create a token for the payment details supplied.
A namespace is used to group up to 16 cards, e.g. for one customer. A card can exist in more than one namespace.
A description of your token. If not supplied, a default description is created for you.
Used to choose how the customer could opt into their payment details being tokenized.
SILENT - (default value) The card details are always saved (you must already have their consent to do this).
NOTIFY - The card details are always saved (you must already have their consent to do this) and your customer will see this within our hosted payment pages.
ASK - The card details are saved if your customer provides their consent. This adds a "Save payment details" tickbox to the page, which they tick to opt-in, or ignore to opt-out.
Create transaction request, required key:values
{ "transactionReference": "MyTransaction123", "merchant": { "entity": "POxxxxxxxxx" }, "narrative": { "line1": "" }, "value": { "currency": "GBP", "amount": 123 }, "description": "Mind Palace Ltd", "billingAddressName": "Sherlock Holmes", "billingAddress": { "address1": "221B Baker Street", "address2": "Marylebone", "address3": "Westminster", "postalCode": "NW1 6XE", "city": "London", "state": "Greater London", "countryCode": "GB" }, "resultURLs": { "successURL": "https://mindpalace-website/result/success", "pendingURL": "https://mindpalace-website/result/pending", "failureURL": "https://mindpalace-website/result/failure", "errorURL": "https://mindpalace-website/result/error", "cancelURL": "https://mindpalace-website/result/cancel", "expiryURL": "https://mindpalace-website/result/expiry" }, "riskData": { "shipping": { "firstName": "James", "lastName": "Moriarty", "address": { "city": "Durham", "address1": "The Palatine Centre", "address2": "Durham University", "address3": "Stockton Road", "state": "County Durham", "countryCode": "GB", "postalCode": "DH1 3LE", "phoneNumber": "01189998819999197253" }, "method": "verifiedAddress", "nameMatchesAccountName": false, "email": "james.moriarty@example.com", "timeFrame": "nextDay" }, "custom": { "string1": "foo", "number1": "1", "string2": "foo", "number2": "1", "string3": "foo", "number3": "1", "string4": "foo", "number4": "1", "string5": "foo", "number5": "1", "string6": "foo", "number6": "1", "string7": "foo", "number7": "1", "string8": "foo", "number8": "1", "string9": "foo", "number9": "1" }, "account": { "dateOfBirth": "1835-04-01", "history": { "createdAt": "1876-06-01", "modifiedAt": "1876-08-13", "paymentAccountEnrolledAt": "1876-06-01", "passwordModifiedAt": "1876-06-01" }, "type": "fidoAuthenticator", "previousSuspiciousActivity": false, "email": "sherlock.holmes@example.com" }, "transaction": { "firstName": "James", "lastName": "Moriarty", "phoneNumber": "01189998819999197253", "preOrderDate": "1876-08-13", "reorder": false, "history": { "attemptsLastYear": 3, "completedLastSixMonths": 4, "attemptsLastDay": 2, "shippingAddressFirstUsedAt": "1876-06-01", "addCardsLastDay": 1 }, "giftCardsPurchase": { "totalValue": { "amount": 10000, "currency": "GBP" }, "quantity": 1 } } }, "expiry": "600", "x-parsed-md-description": { "result": { "$$mdtype": "Node", "errors": [], "lines": [], "inline": false, "attributes": {}, "children": [ { "$$mdtype": "Node", "errors": [], "lines": [ … ], "inline": false, "attributes": {}, "children": [ … ], "type": "paragraph", "annotations": [], "slots": {}, "location": { … } } ], "type": "document", "annotations": [], "slots": {} }, "raw": "Mind Palace Ltd" } }
Successful response
{ "url": "https://payments.worldpay.com/app/hpp/integration/transaction/xxxxxxxxxxxxxxxxxxxx&cs=yyyyyy" }