Create Payments
Payment request, used for DEPOSITS, WITHDRAWALS and REFUNDS
The client sends HTTP requests with the Authorization header that contains the word Bearer followed by a space and the Shop Api Key.
Reference assigned by Merchant. Will not go outside the system. Will be sent unchanged in the PaymentResponse.
payment_id=123;custom_ref=456Payment Type
DEPOSITPossible values: Payment Method
BASIC_CARDPossible values: Payment amount
11.12Payment currency
EURId of initial deposit for refunds, Id of initial recurring payment for subsequent payments
91d27876e87f4b22b3ecd53924bf973dDescription of the transaction shown to the Customer. Can be sent outside the system.
Deposit 123 via TEST shopURL to redirect Customer after processing
https://mywebsite.com/{id}/{referenceId}/{state}/{type}Url to receive payment status notifications
https://mywebsite.com/webhooksSend 'true' if you want this payment to initiate recurring chain. Default is 'false'.
Send 'true' if you want to request a Pre-Authorization charge (initiate a 2-phase deposit).
To continue recurring chain, send a token from a previously initiated recurring payment.
Payment response
Bad request
Unauthorized
POST /api/v1/payments HTTP/1.1
Host: engine-sandbox.convergegate.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 280
{
"paymentType": "DEPOSIT",
"currency": "EUR",
"customer": {
"firstName": "John",
"lastName": "Doe",
"ip": "152.13.130.125",
"email": "[email protected]",
"phone": "44 02072243688"
},
"billingAddress": {
"countryCode": "GB",
"city": "London",
"addressLine1": "221b Baker St, Marylebone",
"postalCode": "NW1 6XE"
}
}{
"timestamp": "2024-09-24T20:29:11.632+00:00",
"status": 200,
"result": {
"id": "96365a23dca04a5a9bcbb0031e7b06ac",
"paymentType": "DEPOSIT",
"state": "CHECKOUT",
"currency": "GBP",
"redirectUrl": "https://gateway-domain.com/payment/96365a23dca04a5a9bcbb0031e7b06ac"
}
}Last updated