Card not present card payments
Card not present card payments are payments that are authorised from a customer device, where a physical card is not read by a card terminal. But instead, are manually entered by the customer (or automatically entered by a browser, Apple Pay, or Google Pay).
Create a payment request with the Payments endpoint.
Make sure the
billing
andshipping
fields are present.Redirect the user to the
next.redirect
page. This is an hosted payment page where the cardholder enters their card data and completes SCA checks.The user is returned to your platform after successful, or failure authorisation of the payment. The authorisation can be accepted by the card issuer, or declined, the state field
succeeded
, orfailed
respectively.
Example request:
POST /v1/profiles/profile_c4f5e275fed234c98b38f90231/payments
Content-Type: application/json
Accept: application/json
Authorization: Bearer <your_access_token>
{
"description": "Test description",
"reference": "c75279b8-60f9-4a7d-a79a-3a231e967e24",
"method": "creditcard",
"currency": "EUR",
"amount": 2283,
"shipping": {
"first_name": "Frances",
"last_name": "Kuhic",
"email": "[email protected]",
"phone": "+19227394382",
"address": {
"premise": "1600",
"thoroughfare": "Pennsylvania Avenue NW",
"locality": "Washington DC",
"state": "DC",
"postal_code": "20500",
"country": "US"
}
},
"billing": {
"first_name": "Frances",
"last_name": "Kuhic",
"email": "[email protected]",
"phone": "+19227394382",
"address": {
"premise": "1600",
"thoroughfare": "Pennsylvania Avenue NW",
"locality": "Washington DC",
"state": "DC",
"postal_code": "20500",
"country": "US"
}
},
"session": {
"redirect_url": "https://www.bankingservice.ai/payment-result"
}
}
Example result after authorisation:
{
"id": "payment_e16caed5d3f744a5b0f746b028fb9b4bcb8",
"description": "Test description",
"reference": "c75279b8-60f9-4a7d-a79a-3a231e967e24",
"method": "creditcard",
"currency": "EUR",
"amount": 2283,
"billing": {
"first_name": "Frances",
"last_name": "Kuhic",
"email": "[email protected]",
"phone": "+19227394382",
"address": {
"premise": "1600",
"thoroughfare": "Pennsylvania Avenue NW",
"locality": "Washington DC",
"state": "DC",
"postal_code": "20500",
"country": "US"
}
},
"shipping": {
"first_name": "Frances",
"last_name": "Kuhic",
"email": "[email protected]",
"phone": "+19227394382",
"address": {
"premise": "1600",
"thoroughfare": "Pennsylvania Avenue NW",
"locality": "Washington DC",
"state": "DC",
"postal_code": "20500",
"country": "US"
}
},
"creditcard": {
"rrn": "943443",
"fees": {
"interchange": 234,
"assesment": 22334
},
"card": {
"scheme": "mastercard",
"type": "commercial",
"region": "inter",
"last4": "1067",
"bin": "511580",
"expiration": "2027-12-011T00:00:00.000Z",
"holder_name": "F KUHIC",
"issuing_country": "US"
}
},
"state": "succeeded",
"created": "2024-11-16T13:05:35.639Z",
"_links": {
"self": {
"href": "/v1/partners/partner_1375e3d3f7f746b68b06/profiles/profile_f2b0df91a1714fc58fe4e5c0d23d5769/payments/payment_e16caed5d3f744a5b0f746b028fb9b4bcb8",
"type": "application/json"
},
"profile": {
"href": "/v1/partners/partner_1375e3d3f7f746b68b06/profiles/profile_f2b0df91a1714fc58fe4e5c0d23d5769",
"type": "application/json"
}
}
}
Last updated
Was this helpful?