payment.refundUserPayment

Method allows you to cancel an in-app payment.

NameRequiredTypeDescription
uid true String

Payment user id

transaction_id true long

Payment transaction id

Authorization

Session is prohibited

Required permissions

  • VALUABLE_ACCESS

Acquiring required payment parameters

To cancel a payment you need to provide user id and transaction id of a payment.

You can get both these parameters using one of following ways:

Limitations

These method is valid to be used when:

  • app can cancel only it’s payments;
  • you need to provide a correct pair of user and transaction ids;
  • a payment was made during current month.

Cancelled payments information

All cancelled payments are available:

Type

{ "success": "boolean", "txn_id": "long" }

Application paramters

User session data

Method

List of paramters

Используем для подписи secret_key = session_secret_key
Используем для подписи secret_key = application_secret_key
Используем для подписи secret_key = MD5(access_token + application_secret_key)
secret_key =
Сортируем и склеиваем параметры запроса и secret_key
Рассчитываем MD5 от полученной строки и получаем параметр sig