Create a payment
Request a transfer of funds between accounts at banks or other financial institutions.
Query parameters
The presence of this field returns extra metadata, that may or may not be attached to the payment. The individual metadata that is returned is implementation dependant and different fields may be returned in different areas of the response.
Currently the only supported parameter is expand=rawPspResponse.
Parameter values:
-
rawPspResponse - Include the rawPspResponses array within the pspInfo response field, if present within the payment.
Not all payment solutions are currently supported with rawPspResponse.
The data that is returned in this field is NOT internally controlled and will be different depending on the Payment Solution Provider (PSP).
We make no guarantees about the information included within the rawPspResponse.
See: Response example Successful payment with expanded rawPspResponse
A parameter allowing the inclusion of related information.
This parameter follows closely the JSON:API Inclusion of Related Resources. Specifying valid entries will result in the entities being included in the included section of the response.
Request body
Example request
{
"amount": 1234,
"billingAddress": {
"firstName": "John",
"lastName": "Smith",
"phoneNumber": "+44 123 1110000",
"buildingNumberOrName": "10a",
"address1": "Flat 1",
"address2": "Victoria House",
"address3": "15 Apple Street",
"town": "Edinburgh",
"county": "Lothian",
"postcode": "BH23 6AA",
"country": "GB"
},
"browserData": {
"acceptHeader": "application/json",
"colorDepth": "32",
"javaEnabled": true,
"language": "en-GB",
"screenHeight": 768,
"screenWidth": 1024,
"timeZone": 800,
"userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
},
"channel": "web",
"currencyCode": "GBP",
"customerDateOfBirth": "2024-02-24",
"customerEmail": "a@b.com",
"customerFirstName": "John",
"customerId": "Customer001",
"customerIpAddress": "123.100.100.200",
"customerLastName": "Smith",
"customerOrderCode": "ABC123",
"customerPhoneNumber": "+44 123 1110000",
"customerSessionId": "123456",
"deliveryAddress": {
"firstName": "John",
"lastName": "Smith",
"phoneNumber": "+44 123 1110000",
"buildingNumberOrName": "10a",
"address1": "Flat 1",
"address2": "Victoria House",
"address3": "15 Apple Street",
"town": "Edinburgh",
"county": "Lothian",
"postcode": "BH23 6AA",
"country": "GB"
},
"documentId": "ABC-123456",
"documentType": "DNI",
"orderDescription": "Taxi fare",
"origin": "https://example-store.org:8080",
"paymentInstrument": {
"nonce": "BR#00000000-0000-0000-0000-000000000000"
},
"threeDSecureRequired": true,
"externalThreeDSecure": {
"eci": "05",
"cavv": "MzM2OGI2ZjkwYjYwY2FjODQ3ZWU=",
"xid": "ZGUzNzgwYzQxM2ZlMWM0MzVkMjc=",
"par": "Y",
"ver": "Y",
"threeDSecureVersion": "2.1.0",
"dsTransactionId": "2.1.0"
},
"ignoreAvs": true,
"cashierId": "90e7aff7-7e57-459a-a46e-9258c8abc99b",
"merchantTransactionId": "yourUniqueRequestId",
"scaExemption": "TRA",
"customMetadata": {
"accountAge": "2",
"transactionType": "Other"
}
}Response
Payment request completed successfully.
Example response
{
"code": "1000",
"id": "463ac35c9f6413ad48485a3953bb6124",
"included": [
{
"attributes": {
"metadata": {
"cardBrand": "MASTERCARD",
"category": "CLASSIC",
"countryIsoA2": "GB",
"commercial": true,
"bin": "48321456"
},
"expiryDate": "05-25",
"fingerprint": "63c8563d876b993878e1b5506b5fc5826e9e46266daaadac018a71ed307748c6"
}
}
],
"paymentId": "57f7f444-29ce-4230-8c7f-1c1fd85c8bc9",
"amount": 1234,
"currencyCode": "GBP",
"actionRequired": true,
"installmentsPlan": {
"code": "1000",
"message": "Approved",
"provider": "Visa Installments",
"operation": "cancellation",
"planActivationId": "6ccc5c91-f869-4063-9368-40b4cb30c6ce"
},
"token": "7685edd8-006b-4526-85ce-c8b31addcea6",
"psp": {
"name": "Checkout.com",
"transactionId": "6418da68-0b3d-4409-ab14-1ceb752b0b1f",
"switchAccountId": "switch-account-123",
"provisionedUserId": "Vx0H4pdAtPCz",
"additionalInfo": {
"customerFirstName": "John",
"customerLastName": "Smith",
"customerDateOfBirth": "2000-01-01",
"customerIpAddress": "123.100.100.200",
"customerId": "de5d7b4a-9410-40e1-85fd-8ceee23c9fd0",
"paysafecardCustomerId": "151743187547"
},
"rawPspResponses": [
{
"httpStatusCode": 200,
"pspName": "Checkout.com",
"headers": {
"content-type": [
"application/json"
]
}
}
]
},
"riskAssessments": {
"kount": {
"score": 85.5,
"decision": "APPROVED",
"reasonCode": "APPROVED_3DS_STEP_UP",
"tags": [
"3DS_CHALLENGE",
"NEW_DEVICE"
]
},
"merchant": {
"decision": "APPROVED",
"retryable": true,
"rawResponse": {
"httpStatusCode": 200
}
}
},
"customerOrderCode": "ABC123",
"merchantTransactionId": "yourUniqueRequestId",
"paymentRails": "EFTPOS",
"avsResult": {
"code": "I"
},
"paymentInstrument": {
"account": {
"accountId": "customer@email.com"
}
},
"scaDetails": {
"eci": "01"
},
"authorizationCode": "123456"
}