Payout
When performing a payout, the customer initiates a payout, chooses a suitable option and then waits for the funds to be credited to their account.
| Countries and regions | Global |
| Payment currencies | Contact your key account manager at Flashpay for details. |
| Payment amount limits | Contact your key account manager at Flashpay for details. Also you can check the payment amount limits in your project by using Dashboard. |
| Payment processing time | Contact your key account manager at Flashpay for details. |
| Currency conversion | On the Flashpay side |
| Refund | |
| Onboarding and access fee | Contact your key account manager at Flashpay for details. |
Operations support
| Interfaces | |||
|---|---|---|---|
| Payment Page | Gate | Dashboard | |
| Payout | |||
You can check the payment amount limits in your project by using Dashboard. To check your payment amount limits, go to Dashboard, select the Projects section, and then click the Payment methods tab.
The following sections provide more information about the payment processing flow and the analysis of completed payments.
Payout by using Gate
General information
To perform a payout by using Gate with the Voucher payment method:
- Send a request with all the required parameters and signature to the Flashpay URL.
- Accept the callback with the dispaly_data array from the payment platform. Show the screen with the payment details to the customer.
- Send a request to continue payout with all the required parameters and signature to the Flashpay URL.
- Accept the callback with the payout result from the payment platform.
The following picture provides the details of the payout processing flow in the Voucher payment method.
- The customer initiates a payout in your system.
- Your system sends the payout request to the Flashpay payment platform.
- The payment platform sends you a response in which it acknowledges your request and provides the request validation result. (For more information about the response format, see Response format.)
- The payment platform prepares the payment options to show to the customer and sends them to your system in the display_data array.
- Your system displays the payment options from the display_data array to the customer.
- The customer chooses of the options.
- Your system sends the second part of the payout request to the Flashpay payment platform.
- The payment platform processes the request and forwards it to the provider service.
- The provider service informs the payment platform about the payout result.
- The payment platform sends a callback with the payout result to your system.
- Your system sends the payout result to the customer.
Request
This section provides the instructions on how to build the request for payout with the Voucher payment method.
| HTTP request method | POST |
| Request body format | JSON |
| API endpoint | /v2/payment/voucher/payout |
|
|||
|---|---|---|---|
| Object | Parameter | Description | |
general | project_id | Project ID you obtained from Flashpay when integrating. Example: | |
payment_id | Payment ID unique within your project. Example: | ||
signature | Signature created after you've specified all the request parameters. For more information about signature generation, see Signature generation and verification. | ||
customer | id | Unique ID of the customer within your project. Example: | |
ip_address | IP address of the customer's device. Example: | ||
first_name | Customer's first name. Example: | ||
last_name | Customer's last name. Example: | ||
email | Customer's email. Example: | ||
account | number | Customer's account number. Example: | |
payment | currency | Code of the payment currency in the ISO-4217 alpha-3 format. Example: | |
amount | Payment amount in minor currency units without any decimal point or comma except for the cases when the currency doesn't have any minor currency units. If the currency doesn't have any minor units (i.e. the number of digits for minor currency units is zero), set this parameter to the amount in the major currency units. To check whether the currency has any minor units, see Currency units and Currency codes. You can specify any number, since the actual payment amount will only be known once this request has been processed. Example: 100.00 RUB must be sent as | ||
service_code | Service chosen by the customer. The list of available services is provided by your Flashpay key account manager. Example: | ||
| You can also add any other optional parameters to the payout request, if necessary. For the list of all the parameters available in Gate, see API Reference. | |||
Here is an example of the data from a request to initiate a payout with the Voucher payment method:
{
"general": {
"project_id": 1234,
"payment_id": "payment_47",
"signature": "kUi2x9dKHAVNU0FYldJrxh4yo+52Kt8KU+Y19vySO/RLUkDJrOcZzUCwX6R/ekpZhkIQg=="
},
"customer": {
"id": "customer_123",
"ip_address": "198.51.100.47",
"first_name": "John",
"last_name": "Doe",
"email": "johndoe@example.com"
},
"account": {
"number": 123456789
},
"payment": {
"currency": "RUB",
"amount": "10000",
"service_code": "123456"
}
}
Displaying the payment instructions to the customer
After receiving and processing your payout request, the payment platform sends you the callback with the data for displaying the payment instructions to the customer.
Use the data from the display_data array to display the payment instructions to the customer.
Description of the display_data array, containing objects with details about the options available to the customer:
- package_id—ID of the available option. It needs to be sent back in the payment.package_id parameter in the request to continue payout. This parameter may not be present in the callback, if the customer has only one available option.
- title—Detailed information about the available option. This parameter may not be present in the callback, if the customer has only one available option.
- provider_amount—Payment amount.
- provider_currency—Payment currency.
The following is the callback fragment containing display_data array if several options are available for the customer.
"display_data": [ { "package_id": "205", "title": "eSIM, 1GB, 7 Days, VietNam, V2, Speed: 2G,3G,4G,5G, Countries: Vietnam", "provider_amount": "990", "provider_currency": "RUB" }, { "package_id": "220", "title": "eSIM, Unlimited, 1 Day, VietNam, V2, Speed: 2G,3G,4G,5G, Countries: Vietnam", "provider_amount": "1067", "provider_currency": "RUB" }, { "package_id": "263", "title": "eSIM, Unlimited Essential, 1 Day, VietNam, V2, Speed: 2G,3G,4G,5G, Countries: Vietnam", "provider_amount": "1276", "provider_currency": "RUB" }, { "package_id": "526", "title": "eSIM, Unlimited Plus, 1 Day, VietNam, V2, Speed: 2G,3G,4G,5G, Countries: Vietnam", "provider_amount": "2553", "provider_currency": "RUB" } ]
The following is the callback fragment containing display_data array if only one option is available for the customer.
"display_data": [ { "provider_amount": "990", "provider_currency": "RUB" } ]
Request to continue payout
This section provides the instructions on how to build the request to continue payout with the Voucher payment method.
| HTTP request method | POST |
| Request body format | JSON |
| API endpoint | /v2/payment/merchant_auth |
|
|||
|---|---|---|---|
| Object | Parameter | Description | |
|
general |
project_id |
Project ID you obtained from Flashpay when integrating. Example: |
|
|
payment_id |
Payment ID unique within your project. Must be the same as general.payment_id in the initial request. Example: |
||
|
signature |
Signature created after you've specified all the request parameters. For more information about signature generation, see Signature generation and verification. | ||
|
payment |
package_id |
ID of the option chosen by the customer. It is sent in the display_data array in the callback after the initial payout request. Example: |
|
| You can also add any other optional parameters to the payout request, if necessary. For the list of all the parameters available in Gate, see API Reference. | |||
Here is an example of the data from a request to initiate a payout with the Voucher payment method:
{
"general": {
"project_id": 1234,
"payment_id": "payment_47",
"signature": "kUi2x9dKHAVNU0FYldJrxh4yo+52Kt8KU+Y19vySO/RLUkDJrOcZzUCwX6R/ekpZhkIQg=="
},
"payment": {
"package_id": "123"
}
}
Callback
In the Voucher payment method, the payment platform returns the payout result in a callback. For the information about the callback structure, see Callbacks.
The following is an example of a callback body with the information about a successfully completed payout.
{
"project_id": 1234,
"payment": {
"id": "payment_47",
"type": "payout",
"status": "success",
"date": "2024-12-07T19:08:45+0000",
"method": "Voucher",
"sum": {
"amount": 10000,
"currency": "RUB"
},
"description": ""
},
"customer": {
"id": "customer_123"
},
"operation": {
"id": 47,
"type": "payout",
"status": "success",
"date": "2024-12-07T19:08:45+0000",
"created_date": "2024-12-07T19:08:05+0000",
"request_id": "1a23456bc7890de",
"sum_initial": {
"amount": 10000,
"currency": "RUB"
},
"sum_converted": {
"amount": 10000,
"currency": "RUB"
},
"code": "0",
"message": "Success",
"provider": {
"id": 12345,
"payment_id": "123abc123-123",
"auth_code": ""
}
},
"signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}
The following is an example of a callback for a declined payout.
{
"project_id": 1234,
"payment": {
"id": "payment_47",
"type": "payout",
"status": "decline",
"date": "2024-12-07T19:08:45+0000",
"method": "Voucher",
"sum": {
"amount": 10000,
"currency": "RUB"
},
"description": ""
},
"customer": {
"id": "customer_123"
},
"operation": {
"id": 47,
"type": "payout",
"status": "decline",
"date": "2024-12-07T19:08:45+0000",
"created_date": "2024-12-07T19:08:05+0000",
"request_id": "1a23456bc7890de",
"sum_initial": {
"amount": 10000,
"currency": "RUB"
},
"sum_converted": {
"amount": 10000,
"currency": "RUB"
},
"code": "20000",
"message": "General decline",
"provider": {
"id": 12345,
"payment_id": "123abc123-123",
"auth_code": ""
}
},
"signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}
Payouts by using Dashboard
When working with Dashboard, you can process single and mass payouts by using the Voucher method.
- To process a single payout, open the payout form, specify all required parameters (including the payment method), send a request and verify that the payout has been processed.
-
To process a mass payout, prepare and upload a file with information about all target payouts, send a batch request, and verify that the payouts have been processed.
Use a CSV file structured according to the requirements presented in the Mass payments data section. The payout parameters must comply with the requirements (you do not have to generate a signature because it is specified by Dashboard).
More information about processing payouts by using Dashboard is presented in a separate section.