Process payment
POST api/v2/paygate/payment/card/process/
Create a card payment
Request Body schema
application/json
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| tx | string |
Yes | Api key | "1dc4441f-38d5-42b5-a705-81958f928462" |
| pan | string | No | Card primary account number (PAN). (pan or card_token required). | "4200000000000000" |
| card_token | string | No | Card token in our system. (pan or card_token required). | "uuid" |
| cvv | string | Yes | Card cvv. | "123" |
| expire | string | Yes | Card expire. | "1230" |
| holder | string | No | The customer's holder. | "John Smith" |
Request sample
{
"tx": "1dc4441f-38d5-42b5-a705-81958f928462",
"pan": "4200000000000000",
"cvv": 123,
"expire": "1230",
"holder": "John Smith"
}
Response sample
STATUS 201
{
"redirect_url": "http://example.com",
"info": {
"tx": "f17d7f5c-6b4a-47fd-95eb-08086e250473",
"payment": {
},
"status": "create",
"currency": {
"id": 0,
"title": "AZN",
"char_code": "AZN",
"num_code": 944
},
"amount": 1000,
"created_at": "2000-01-01T00:00:00Z",
"errors": {},
"parts_tx": [],
"additional_data": {},
"endpoint_logo": "string"
}
}