Users

post

Creates a user if it doesn’t exist or returns an id of existing user.

Returns gate user id.

Card payments

post

Creates temporary bankcard token.

Returns token id to work with bankcard.

This method does not require a signature!

This method is intended for use on client-side.

Token expires in 20 minutes.

post

Creates and executes payment transaction.

Returns transaction id and bankcard information.

post

Performs 3d authentication on bankcard if it necessary.

Authenticates a bankcard using PaRes and MD parameters POST'ed back to acs return url from bank ACS.

post

Creates and executes payment transaction by recurring profile.

Returns transaction id and bankcard information.

Returns error 40314 if merchant can't use recurring profile.

post

Cancels recurring profile by id.

You will not be able to use this recurring profile after cancellation.

Transactions

post

Get transaction details and status.

Optional, either transaction id or order id is required!

While using order id in case if several transactions have the same order id, information about the last created transaction will be returned.

Returns error 40403 if transaction doesn’t exist.

post

Creates and executes reversal by transaction.

Optional, either transaction id or order id is required!

While using order id in case if several transactions have the same order id, the last created transaction will be reversed.

Creating a money return of this type is possible only if the transaction status request returns can reverse is true.

Returns error 40403 if transaction doesn’t exist, 40504 if transaction cannot be reversed/refunded and 40505 if payment is already reversed/refunded.

post

Creates and executes refund by transaction.

Optional, either transaction id or order id is required!

While using order id in case if several transactions have the same order id, the last created transaction will be refunded.

Creating a money return of of this type is possible only if the transaction status request returns can refund is true.

Returns error 40403 if transaction doesn’t exist, 40504 if transaction cannot be reversed/refunded and 40505 if payment is already reversed/refunded.

Merchant callback

post

You will receive the callback parameters via HTTP POST method.

Replace CALLBACK_URL from example with your merchant’s callback URL. You can validate callback signature from example against the test private key 25c28f39df289bb9ab207ed2030c4c35.

Callback URL can be set in merchant settings.

If the callback URL replies with an HTTP status other than 200, gate tries to call it during twenty-four hours.