Tokenize charge
Charge a saved card token. The route is GET and still reads a JSON body.
GET
/payment/zibapay/card/tokenize/:referenceAPIAuthentication:Bearer token
Authorization: Bearer <token>Security requirement: 403 CSRF Protection
Direct server-to-server calls authenticated via Bearer tokens do not require CSRF headers. If you instead invoke mutation endpoints from a web browser using cookie-based sessions, you must include the following header:
X-Requested-With: XMLHttpRequestRequest Parameters
| Field | Type | Required | Description |
|---|---|---|---|
reference | string | Required | transactionReferenceId from the collect response, or the order reference. |
Response fields
| Field | Type | Presence | Description |
|---|---|---|---|
status | string | Always returned | Payment status: COMPLETED or PENDING. |
reference | string | Always returned | Order reference charged. |
transactionId | string | Always returned | TransactPay transaction identifier. |
amount | number | Always returned | Amount charged to saved card. |
currency | string | Always returned | Currency code. |
Status codes
| HTTP Status | Meaning |
|---|---|
| 200 | Tokenized payment charged. |
| 401 | No merchant session. |
Notes
- The registered method is GET. Clients that cannot send a body on GET should not assume a POST alias exists.