Tokens

Pay with token

Creates a new payment request using a saved card token. (The docs show the URL with a trailing slash: /v3/orders/.) The request is authenticated with a Kashier-Hash header (order hash generated with HMAC SHA256 from your backend). With interactionSource: ECOMMERCE and 3DS enabled, the response contains an authentication.redirectUrl you should redirect to for the 3DS page; the final transaction response after 3DS processing is received via webhook. With MOTO, the payment is processed directly.

post/v3/orders

Request

  • Base URL: https://test-fep.kashier.io
  • URL: https://test-fep.kashier.io/v3/orders
  • Auth: none required

Headers

Kashier-Hashstring required

Order hash generated from your backend using the HMAC SHA256 crypto mechanism, as described in the Kashier hashing documentation.

Request body

apiOperation'PAY' required

Should be: PAY (confirmation purchase)

interactionSourcestring required

It's mandatory to be MOTO, Recurring or ECOMMERCE payment based on the business case (Recurring or MOTO if you want to tokenize a card for later payment).

metaDataobject

It is additional data you can send and receive via webhooks and responses {'email':'email@example.com'}. Optional.

merchantIdstring required

Merchant account number or merchant ID

timestampstring required

mandatory

Response

Payment result. For MOTO (non-3DS) the payment is captured directly. For ECOMMERCE with 3DS, response.status is AUTHENTICATION_INITIATED and you must redirect the customer to response.authentication.redirectUrl; the final transaction response arrives on your webhook.

responseobject
statusstring
showCaptchaboolean

Changes

No recorded changes to this operation across all 1 revision of this API.