Create Payment Request

Body Params
string
required
length ≤ 50

Merchant API client account identifier.

string
required
length ≤ 32

Identifier of your application (website).

string
required
length ≤ 3

API version.

integer
required

Request time (unix timestamp, seconds).

string
required
length ≤ 10

Base Currency: The user's account currency on the merchant site.

integer
≤ 20

Customer's withdrawable balance in cents. Can be used for automatic amount validation during the withdrawal request submission (send null to bypass the validation).

string
length ≤ 256

URL to which the pre-deposit validation will be sent.

string
enum
required
length ≤ 32

Action to be taken within the cashier. Allowed values are:

  • authorization for authorization (hold) for the following capture.
  • payment for payment transaction.
  • withdrawal for withdrawal request.

intent defines the primary Cashier intent and the initial Cashier view opened for the user. If secondary_intents is provided, the user can switch inside Cashier between the primary intent and the additional intent configured in secondary_intents.

Allowed:
secondary_intents
array of strings
length ≤ 1

Additional transaction intents available for switching inside the same Cashier session.

Allowed values:

  • payment
  • authorization
  • withdrawal

Currently only one secondary intent is supported. If not provided, Cashier works in the existing single-intent mode.

secondary_intents
Allowed:
customer_data
object

HASH value of customer's identity.

Note: Either customer_token or customer_data must be provided. If both are missing, the request will trigger a validation error.

string
length ≤ 32

HASH value of customer's identity.

Note: Either customer_token or customer_data must be provided. If both are missing, the request will trigger a validation error.

string
length ≤ 50

Payment method. The gateway will override this value if provided.

  1. The gateway parameter is not applicable for Credit Card method for payouts;

  2. The predefined gateway hash value: "credit_card_cascade_gateway_0000" can be used instead of payment_method: "Credit Card" for payments.

  3. Either gateway or payment_method should be provided in case of 0-Auth and CIT transactions.

string
length ≤ 32

Gateway hash

  1. For authorization,payment: hash of the gateway doing the processing.

  2. For withdrawal: hash of non-credit card gateway doing the processing.

  3. Either gateway or payment_method should be provided in case of 0-Auth and CIT transactions.

mit
object

MIT (Merchant-Initiated Transactions) and this API supports only initial type.

session_configuration
object

The Session Configuration object will contain overriding configuration rules for the session attempt.

string
enum
length ≤ 32

Type of the session. Allowed values are: - cashier, - payment_link. Payment Link type allows to initiate Cashier session with an extended lifetime (expires) - up to 72 hours.

Allowed:
integer

Payment Link lifetime. The unix epoch timestamp (in seconds) when the login URL will expire (up to 72 hours from now). Used for payment_link session types only. If not set, the Payment Link lifetime will default to 15 minutes.

string
length ≤ 256

Cashier UI Preset. If empty, the default preset for Cashier UI from the application configuration will be used. If not empty, the value will override the application configuration.

integer

Transaction amount in cents.

Note: For certain currencies there is a fraction other than 100 cents per unit, this is important if you multiply by 100 to send the amount in cents.

string
required
length ≤ 50

Unique customer id in your system.

Note: Personally Identifiable Information (PII), such as email addresses, is strictly forbidden. If your user identifier contains any PII, you must hash or encrypt it before sending it to the API.

string
enum
required
length ≤ 5

User locale, specified as a BCP 47 Language Tag (e.g., 'en-GB'). The first component is the ISO 639-1 language code, and the second is the ISO 3166-1 country code.

Note: Contact [email protected] to add new locale if not available in the list.

string
required
length ≤ 50

Transaction or session identifier in your system.

string
required
length ≤ 256

URL to which the deposit status notification will be sent.

string
required
length ≤ 256

User will be redirected to a specified URL(relevant for cashier login, virtual terminal, 3D Secure and E-Wallet login redirect).

string
length ≤ 512

Web sessions (channel is web or missing): deep link of your mobile app (a URI with a custom scheme, for example yourbrand://checkout/callback, not an http or https address), to which the payment provider returns the customer after the payment in the provider's app. Pass it when Cashier is opened in a WebView of your app and the customer pays with a method that needs it, for example Revolut Pay.

Note: for Revolut Pay in a WebView, your app must intercept the deep link (on Android, also the links that start with merchant.revolut.com), return the customer to the same WebView with Cashier (not a new one), and check the final status of the transaction on your backend: the deep link is not a confirmation of the payment.

iOS SDK sessions (channel is ios_sdk): required. A deep link with a custom scheme (for example merchantapp://checkout/return) or an https universal link with a host (for example https://merchant.example/checkout/return); http addresses are rejected. It is the link of your app to which the customer returns after payment provider, alternative payment method (APM) and 3-D Secure pages. A missing or invalid value is rejected with Incorrect app return url.

string
enum
length ≤ 32
Defaults to web

Session channel: where the Cashier session runs. Not to be confused with the 3-D Secure authentication channel (01 to 03) of three_ds_mpi_result in the Direct API. Allowed values are:

  • web for the web Cashier. Used when the field is missing or empty. The response is the same as without this field.
  • ios_sdk for a native session in your iOS app with the Praxis iOS SDK. Accepted only when the iOS SDK is enabled for your application, your application uses the PCI card form, and the session is a regular Cashier session (session_type missing or cashier; payment_link is rejected). Requires app_return_url. The response has no redirect_url and has session.channel with the value ios_sdk; pass session.auth_token to the SDK.

channel is not part of the request signature.

Validation errors are returned in the response body with status 400; several errors are joined in one description, separated by commas:

  • Incorrect channel - the value is not web or ios_sdk.
  • The iOS SDK is not available for your application - ios_sdk is sent and the iOS SDK is not enabled for your application.
  • The iOS SDK needs the PCI card form for your application - ios_sdk is sent and your application does not use the PCI card form.
  • The iOS SDK channel is not available for this session type - ios_sdk is sent for a session type other than a regular Cashier session, for example payment_link.
  • Incorrect app return url - ios_sdk is sent and app_return_url is missing or invalid.
Allowed:
string
length ≤ 256

Your custom field to tag the transaction with some necessary information.

string
length ≤ 256

Your custom field to tag the transaction with some necessary information.

string
length ≤ 256

Your custom field to tag the transaction with some necessary information.

Headers
string
required

Authentication HTTP header of your outgoing request to the API.
Below request parameters should be used for creating signature in request header.

  • merchant_id
  • application_key
  • timestamp
  • intent
  • cid
  • order_id
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json