Comparing sensitive data, confidential files or internal emails?

Most legal and privacy policies prohibit uploading sensitive data online. Diffchecker Desktop ensures your confidential information never leaves your computer. Work offline and compare documents securely.

Bank 131 and Smart Glocal Refunds

Created Diff never expires
4 removals
62 lines
8 additions
66 lines
Refunds
You can return all or part of a successful payment to the sender.

How to perform a refund
How to perform a refund
Step 1. Send a refund request
Step 1. Send a refund request
To perform a refund, send the session/refund request. In the session_id field, pass the identifier of the payment session for the payment you need to refund. In amount_details.amount, specify the amount of the refund. If you leave this blank, the money will be refunded in full (i.e. for the full amount of the payment in question).
To perform a refund, send the session/refund request. In the session_id field, pass the identifier of the payment session for the payment you need to refund. In amount_details.amount, specify the amount of the refund. If you leave this blank, the money will be refunded in full (i.e. for the full amount of the payment in question).


Request example
Request example
cURL
cURL
PHP
curl -X POST \
curl -X POST \
https://demo.smart-glocal.com/api/v1/session/refund \
https://demo.bank131.ru/api/v1/session/refund \
-H 'Content-Type: application/json' \
-H 'Content-Type: application/json' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-SIGN: sign' \
-H 'X-PARTNER-SIGN: sign' \
-d '{
-d '{
"session_id":"ps_3230"
"session_id":"ps_3230"
}'
}'
Step 2. Wait to be notified of the results of the refund
Step 2. Wait to be notified of the results of the refund
After the refund has been issued, Smart Glocal will send you the payment_refunded webhook with the results.
After the refund has been issued, Bank 131 will send you the payment_refunded webhook with the results.


Webhook example: payment_refunded
Webhook example: payment_refunded
curl - X POST\
curl - X POST\
https: //partner.ru \
https: //partner.ru \
-H 'Content-Type: application/json'\ -
-H 'Content-Type: application/json'\ -
H 'X-PARTNER-SIGN: a4f1698616d6ad7b8b73a9d72d281eeb443b64dee3f38df430eeed6aa29e1dc'\ -
H 'X-PARTNER-SIGN: a4f1698616d6ad7b8b73a9d72d281eeb443b64dee3f38df430eeed6aa29e1dc'\ -
d '{
d '{
"type": "payment_refunded",
"type": "payment_refunded",
"session": {
"session": {
"id": "ps_3230",
"id": "ps_3230",
"status": "accepted",
"status": "accepted",
"created_at": "2018-05-27T02:03:00.000000Z",
"created_at": "2018-05-27T02:03:00.000000Z",
"updated_at": "2018-05-27T02:03:00.000000Z",
"updated_at": "2018-05-27T02:03:00.000000Z",
"acquiring_payments": [{
"acquiring_payments": [{
"id": "pm_2705",
"id": "pm_2705",
"status": "succeeded",
"status": "succeeded",
"created_at": "2018-05-27T02:03:00.000000Z",
"created_at": "2018-05-27T02:03:00.000000Z",
"finished_at": "2018-05-27T02:03:00.000000Z",
"finished_at": "2018-05-27T02:03:00.000000Z",
"customer": {
"customer": {
"reference": "lucky"
"reference": "lucky"
},
},
"payment_details": {
"payment_details": {
"type": "card",
"type": "card",
"card": {
"card": {
"brand": "visa",
"brand": "visa",
"last4": "4242"
"last4": "4242"
}
}
},
},
"amount_details": {
"amount_details": {
"amount": 1000,
"amount": 1000,
"currency": "usd"
"currency": "rub"
},
},
"metadata": "good",
"metadata": "good",
"refunds": [{
"refunds": [{
"id": "rf_203",
"id": "rf_203",
"status": "accepted",
"status": "accepted",
"created_at": "2018-05-27T02:03:00.000000Z",
"created_at": "2018-05-27T02:03:00.000000Z",
"finished_at": "2018-05-27T02:03:00.000000Z",
"finished_at": "2018-05-27T02:03:00.000000Z",
"amount_details": {
"amount_details": {
"amount": 1000,
"amount": 1000,
"currency": "usd"
"currency": "rub"
}
}
}]
}]
}]
}]
}
}
}'
}'