payment.refundUserPayment
Method allows you to cancel an in-app payment.
Name | Required | Type | Description |
---|---|---|---|
uid | true | | Payment user id |
transaction_id | true | | Payment transaction id |
Authorization
Session is prohibitedRequired 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:
- during payment process all payment information will be passed in a request to your callback service;
- all recent payments can be acquired by payment.getDailyTransactionsFromServer method;
- all recent payments are also available in app statistics.
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:
- with payment.getDailyTransactionsFromServer method;
- in app statistics.
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