Process payment
POST /api/v1/paymentgate/payment/process/
processing a payment according to the H2H standard
Request Body schema
application/json
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| endpoint | string |
Yes | Api key | "1dc4441f-38d5-42b5-a705-81958f928462" |
| tx | string |
Yes | Transaction id | "f17d7f5c-6b4a-47fd-95eb-08086e250473" |
| pan | string | Yes | card pan | "4100000000000001" |
| cvv | string | Yes | card cvv | "321" |
| holder | string | Yes | card holder | "John Doe" |
| success_url | string or null |
No | Redirect URL after success result | "http://example.com" |
| fail_url | string or null |
No | Redirect URL after fail result | "http://example.com" |
Request sample
{
"endpoint": "1dc4441f-38d5-42b5-a705-81958f928462",
"tx": "6c99ae50-a397-4b78-b49f-9bf9264ccdcf",
"pan": "4100000000000001",
"cvc": "321",
"expire": "1225",
"holder": "John Doe",
"success_url": "http://example.com",
"fail_url": "http://example.com",
"notify_url": "http://example.com",
}
Response sample
STATUS 200
{
"redirect_url": "http://example.com",
"info": {
"tx": "f17d7f5c-6b4a-47fd-95eb-08086e250473",
"payment": {},
"status": "create",
"currency": {},
"amount": 1000,
"created_at": "2024-11-15T09:04:36Z",
"errors": {},
"parts_tx": [],
"additional_data": {},
"endpoint_logo": "string"
},
"qr_code": {
"qrcode": "string",
"beneficiary": "string",
"format": "string"
},
"p2p_wallet_data": {
"target_account_number": "string",
"bank_name": "string",
"holder": "string",
"valid_till": "2024-11-15T09:04:36Z",
"tll": "14:15:22Z"
},
"p2p_card_data": {
"target_card_number": "string",
"bank_name": "string",
"holder": "string",
"valid_till": "2024-11-15T09:04:36Z",
"tll": "14:15:22Z"
},
"pay_data": "string"
}