Crypto
Overview
Crypto is a payment method which allows you to accept payments from your customers and perform payouts to them. Customers make purchases by using cryptocurrency. With the Crypto payment method, you can accept payments from your customers by using Payment Page and Gate and perform payouts to them by using Gate. Download the logo in the vector format here. |
Payment method type | Crypto wallets |
---|---|
Countries and regions | Contact your key account manager at Monetix for the information |
Payment currencies | EUR, RUB, USD, A7A5, BTC, DAI (BEP20), DAI (ERC20), ETH, LTC, TON, TRX, BNB, USDT (TON), USDT (Polygon), USDT (TRC20), USDT (ERC20), USDC (ERC20), USDC (Polygon) |
Payment amount limits | Contact your key account manager at Monetix for details. Also you can check the payment amount limits in your project by using Dashboard. |
Currency conversion | On the Monetix side |
Purchase | |
Payout | |
Stored credentials payments | |
Refund | |
Notes | Purchase. Scenario 1: customer redirection: Cryptocurrencies supported for purchase:
Purchase. Scenario 2: payment instruction: Cryptocurrencies supported for purchase:
Payout. Scenario 1: payout from fiat balance: Cryptocurrencies supported for payout:
Payout. Scenario 2: payout from deposit crypto balance: Cryptocurrencies supported for payout:
Currency conversion is not available for this type of payout. Balance top up is done with a cryptocurrency to an individual balance for each cryptocurrency. Since the payment amount is sent in minor currency units–confirm with Monetix key account manager minor currency units for each cryptocurrency. |
Onboarding and access fee | Contact your key account manager at Monetix for details. |
Operations support
Interfaces | Basic time | |||
---|---|---|---|---|
Payment Page | Gate | Dashboard | ||
Purchase (scenario 1) | * | |||
Purchase (scenario 2) | * | |||
Payout (scenario 1) | * | |||
Payout (scenario 2) | * |
* Contact your key account manager at Monetix for the information.
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.
Payment scenario
In the Crypto payment method, purchase procedure follows one of the following scenarios:
- Scenario 1—the customer is redirected to the provider service where they make a purchase
- Scenario 2—the customer follows the payment instructions displayed on the checkout page or in your system (when performing the purchase by using Gate)
In the Crypto payment method, payout procedure follows one of the following scenarios:
- Scenario 1—payout is performed from a fiat balance.
- Scenario 2—payout is performed from a deposit crypto balance.
The customer initiates a payout and then just waits for the funds to be credited to their account. The customer themself doesn't participate in the payout processing procedure.
Ask your key account manager at Monetix which of the scenarios is relevant to you.
Purchase by using Payment Page. Scenario 1: customer redirection
General information
To perform a purchase by using Payment Page with the Crypto payment method:
- Send a request with all the required parameters and signature to the Monetix URL.
- Accept the callback with the purchase result from the payment platform.
The following figure shows the complete purchase processing flow in the Crypto payment method.
- The customer initiates a purchase in your system.
- Your system sends the request for the purchase through Payment Page to the Monetix URL.
- The checkout page is displayed to the customer.
- The customer chooses to make a purchase with the Crypto payment method.
- The payment platform processes the request and forwards it to the provider service.
- The provider service sends the customer redirection data to the payment platform.
- The checkout page redirects the customer to the provider service.
- The customer completes the purchase.
- The customer is redirected back to the checkout page.
- The provider service sends the purchase result information to the payment platform.
- The payment platform sends a callback with the payment result to your system.
- The payment platform displays the payment result to the customer on the checkout page.
Request
The following table lists the parameters that you need to include in the request for purchase through the checkout page with the Crypto payment method.
|
||
---|---|---|
Parameter | Description | |
project_id | Project ID you obtained from Monetix when integrating. Example: | |
payment_id | Payment ID unique within your project. Example: | |
customer_id | Unique ID of the customer within your project. Example: | |
customer_first_name | Customer's first name. Example: | |
customer_last_name | Customer's last name. Example: | |
customer_email | Customer's email. Example: | |
payment_currency | Code of the payment currency in the ISO-4217 alpha-3 format.
Example: | |
payment_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 codes. Example: 100.00 EUR must be sent as | |
force_payment_method | Parameter that allows you to enforce the Crypto payment method for your customer and skip the page with payment method selections. To enforce the Crypto payment method and skip the page with payment method selection, add the force_payment_method parameter to the request and set its value to Example: | |
signature | Signature created after you've specified all the request parameters. For more information about signature generation, see Signature generation and verification. | |
You can also add any other optional parameters to the request, if necessary. For the list of all the parameters possible in requests to Payment Page, see Payment Page invocation parameters. |
Here is an example of the data from a request to open the checkout page by using
EPayWidget
:
EPayWidget.run( { project_id: 1234, payment_id: 'payment_47', customer_id: 'customer_123', customer_first_name: 'John', customer_last_name: 'Doe', customer_email: 'johndoe@example.com', payment_currency: 'EUR', payment_amount: 10000, force_payment_method: 'crypto', signature: 'kUi2x9dKHAVNU0FYldJrxh4yo+52Kt8KU+Y19vySO/RLUkDJrOcZzUCwX6R/ekpZhkIQg==' } )
You can enforce a cryptocurrency for your customer on the checkout page. To do so, add the following parameters to the request for the checkout page opening:
Object/parameter | Parameter | Description |
---|---|---|
force_payment_method |
Parameter that allows you to enforce the Crypto payment method for your customer and skip the page with payment method selections. Set the value of this parameter to Example: |
|
payment_methods_options |
currency_id |
Cryptocurrency code (ticker). Possible values:
Example: |
Here is an example of the data from the request to open the checkout page with a cryptocurrency enforced for the customer:
EPayWidget.run( { project_id: 1234, payment_id: 'payment_47', customer_id: 'customer_123', customer_first_name: 'John', customer_last_name: 'Doe', customer_email: 'johndoe@example.com', payment_currency: 'EUR', payment_amount: 10000, force_payment_method: 'crypto', payment_methods_options: {"currency_id": ["BTC"]}, signature: 'kUi2x9dKHAVNU0FYldJrxh4yo+52Kt8KU+Y19vySO/RLUkDJrOcZzUCwX6R/ekpZhkIQg==' } )
Callback
In the Crypto payment method, the payment platform returns the purchase result in a callback. For the information about the callback structure, see Callbacks in Payment Page.
The following is an example of a callback body with information about a successfully completed purchase.
{
"project_id": 1234,
"payment": {
"id": "payment_47",
"type": "purchase",
"status": "success",
"date": "2024-12-07T19:08:45+0000",
"method": "crypto",
"sum": {
"amount": 10000,
"currency": "EUR"
},
"description": ""
},
"customer": {
"id": "customer_123"
},
"operation": {
"id": 47,
"type": "sale",
"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": "EUR"
},
"sum_converted": {
"amount": 10000,
"currency": "EUR"
},
"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 purchase.
{
"project_id": 1234,
"payment": {
"id": "payment_47",
"type": "purchase",
"status": "decline",
"date": "2024-12-07T19:08:45+0000",
"method": "crypto",
"sum": {
"amount": 10000,
"currency": "EUR"
},
"description": ""
},
"customer": {
"id": "customer_123"
},
"operation": {
"id": 47,
"type": "sale",
"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": "EUR"
},
"sum_converted": {
"amount": 10000,
"currency": "EUR"
},
"code": "20000",
"message": "General decline",
"provider": {
"id": 12345,
"payment_id": "123abc123-123",
"auth_code": ""
}
},
"signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}
Purchase by using Gate. Scenario 1: customer redirection
General information
To perform a purchase by using Gate with the Crypto payment method:
- Send a request with all the required parameters and signature to the Monetix URL.
- Redirect the customer to the provider service.
- Accept the callback with the purchase result from the payment platform.
The following figure provides the details of the purchase processing flow in the Crypto payment method.
- The customer initiates a purchase in your system.
- Your system sends the purchase request to the Monetix 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 structure.)
- The payment platform processes the request and forwards it to the provider service.
- The provider service sends the customer redirection data to the payment platform.
- The payment platform forwards the data to your system in the redirect_data object.
- Your system redirects the customer to the provider service.
- The customer completes the purchase.
- The customer is redirected to your system.
- The provider service informs the payment platform about the purchase result.
- The payment platform sends the callback with the payment result to your system.
- Your system sends the payment result to the customer.
Request
This section provides the instructions on how to build the request for purchase with the Crypto payment method.
HTTP request method | POST |
Request body format | JSON |
API endpoint | /v2/payment/crypto/sale |
|
|||
---|---|---|---|
Object | Parameter | Description | |
general |
project_id |
Project ID you obtained from Monetix 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: |
||
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 codes. Example: 100.00
EUR must be sent as |
||
crypto_currency |
Cryptocurrency code (ticker). May be passed in the request along with the crypto_payway parameter to preselect the cryptocurrency for the customer. If not passed, the customer will have to choose the cryptocurrency themselves while making the payment. Reach out to your key account manager at Monetix to find out whether cryptocurrency preselection is available in your case. Possible values:
Example: |
||
crypto_payway |
This parameter indicates the blockchain where the cryptocurrency is stored. May be passed in the request along with the crypto_currency parameter to enforce the particular cryptocurrency for your customer and skip the page with cryptocurrency selections. If not passed, the customer will have to choose the cryptocurrency themselves while making the payment. Reach out to your key account manager at Monetix to find out whether cryptocurrency preselection is available in your case. Possible values:
Example: |
||
return_url |
success |
The URL to redirect the customer to after the payment is successfully completed. Example: |
|
decline |
The URL to redirect the customer to after the payment is declined. Example: |
||
return |
The URL to redirect the customer to when they prematurely terminate the payment. This URL is also used if the success and decline parameters are not specified in the request. If you don't specify any parameters of the return_url object in the request, by default Gate will redirect the customer to the URL specified in your project in Monetix. Example: |
||
You can also add any other optional parameters to the purchase 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 purchase with the Crypto 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" }, "payment": { "currency": "EUR", "amount": 10000, "crypto_currency": "USDT", "crypto_payway": "TRC20" }, "return_url": { "success": "https://example.com/success/", "decline": "https://example.com/decline/", "return": "https://example.com/return/" } }
Customer redirection
After receiving and processing your purchase request, the payment platform sends you the callback with the data for redirecting the customer to the provider service.
To redirect the customer, use the values of the following parameters in the redirect_data object:
- url—the URL to redirect the customer to
- body—the data to send in the request body
- method—the HTTP method for retrieving the website page (for example,
POST
orGET
) - encrypted—this is the service parameter. Ignore it.
Here is an example of the callback snippet with the data to redirect the customer.
"redirect_data": { "method": "POST", "body": { "example_parameter_1": "value_1", "example_parameter_2": "value_2" }, "encrypted": [], "url": "https://example.com/redirect" }
Callback
In the Crypto payment method, the payment platform returns the purchase result in a callback. For the information about the callback structure, see Callbacks in Gate.
The following is an example of a callback body with the information about a successfully completed purchase.
{
"project_id": 1234,
"payment": {
"id": "payment_47",
"type": "purchase",
"status": "success",
"date": "2024-12-07T19:08:45+0000",
"method": "crypto",
"sum": {
"amount": 10000,
"currency": "EUR"
},
"description": ""
},
"customer": {
"id": "customer_123"
},
"operation": {
"id": 47,
"type": "sale",
"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": "EUR"
},
"sum_converted": {
"amount": 10000,
"currency": "EUR"
},
"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 purchase.
{
"project_id": 1234,
"payment": {
"id": "payment_47",
"type": "purchase",
"status": "decline",
"date": "2024-12-07T19:08:45+0000",
"method": "crypto",
"sum": {
"amount": 10000,
"currency": "EUR"
},
"description": ""
},
"customer": {
"id": "customer_123"
},
"operation": {
"id": 47,
"type": "sale",
"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": "EUR"
},
"sum_converted": {
"amount": 10000,
"currency": "EUR"
},
"code": "20000",
"message": "General decline",
"provider": {
"id": 12345,
"payment_id": "123abc123-123",
"auth_code": ""
}
},
"signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}
Purchase by using Gate. Scenario 2: payment instruction
General information
To perform a purchase by using Gate with the Crypto payment method:
- Send a request with all the required parameters and signature to the Monetix URL.
- Show the screen with payment instructions to the customer.
- Accept the callback with the purchase result from the payment platform.
The following figure provides the details of the purchase processing flow in the Crypto payment method.
- The customer initiates a purchase in your system.
- Your system sends the purchase request to the Monetix 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 structure.)
- The payment platform processes the request and forwards it to the provider service.
- The provider service generates the payment instructions to show to the customer and sends them to the payment platform.
- The payment platform forwards the instructions to your system in the display_data array.
- Your system displays the payment instructions to the customer.
- The customer completes the purchase.
- The provider service informs the payment platform about the purchase result.
- The payment platform sends the callback with the payment result to your system.
- Your system sends the payment result to the customer.
Request
This section provides the instructions on how to build the request for purchase with the Crypto payment method.
HTTP request method | POST |
Request body format | JSON |
API endpoint | /v2/payment/crypto/sale |
|
|||
---|---|---|---|
Object | Parameter | Description | |
general |
project_id |
Project ID you obtained from Monetix 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: |
||
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 codes. Example: 100.00
EUR must be sent as |
||
crypto_currency |
Cryptocurrency code (ticker). May be passed in the request along with the crypto_payway parameter to preselect the cryptocurrency for the customer. If not passed, the customer will have to choose the cryptocurrency themselves while making the payment. Reach out to your key account manager at Monetix to find out whether cryptocurrency preselection is available in your case. Possible values:
Example: |
||
crypto_payway |
This parameter indicates the blockchain where the cryptocurrency is stored. May be passed in the request along with the crypto_currency parameter to enforce the particular cryptocurrency for your customer and skip the page with cryptocurrency selections. If not passed, the customer will have to choose the cryptocurrency themselves while making the payment. Reach out to your key account manager at Monetix to find out whether cryptocurrency preselection is available in your case. Possible values:
Example: |
||
You can also add any other optional parameters to the purchase 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 purchase with the Crypto payment method:
"currency": "EUR", "amount": 10000, "crypto_currency": "USDT", "crypto_payway": "TRC20" } }
Displaying the payment instructions to the customer
After receiving and processing your purchase 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.
Element | Description |
---|---|
{ "type": "add_info", "title": "init_amount", "data": "10000" } |
Purchase amount specified in your request. Example: |
{ "type": "add_info", "title": "init_currency", "data": "EUR" } |
Purchase currency specified in your request. Example: |
{ "type": "add_info", "title": "crypto_amount", "data": "0.003972" } |
Purchase amount converted to cryptocurrency. Example: |
{ "type": "add_info", "title": "crypto_currency", "data": "BTC (bitcoin)" } |
Cryptocurrency of the purchase. Example: |
{ "type": "add_info", "title": "crypto_account", "data": "bfqyjjcttjh7fhg5sl63652" } |
Account to be credited. Example: |
{ "type": "add_info", "title": "payment_id", "data": "312866350116803" } |
Operation ID. Example: |
{ "type": "qr_data", "title": "qr_data", "data": "yt4352345675674677452345dfg" } |
Data to display the QR code to the customer. Example: |
The following is the callback fragment containing display_data array.
"display_data": [ { "type": "add_info", "title": "init_amount", "data": "10000" }, { "type": "add_info", "title": "init_currency", "data": "EUR" }, { "type": "add_info", "title": "crypto_amount", "data": "0.003972" }, { "type": "add_info", "title": "crypto_currency", "data": "BTC (Bitcoin)" }, { "type": "add_info", "title": "crypto_account", "data": "bfqyjjcttjh7fhg5sl63652" }, { "type": "add_info", "title": "payment_id", "data": "312866350116803" }, { "type": "qr_data", "title": "qr_data", "data": "yt4352345675674677452345dfg" } ]
Callback
In the Crypto payment method, the payment platform returns the purchase result in a callback. For the information about the callback structure, see Callbacks in Gate.
The following is an example of a callback body with the information about a successfully completed purchase.
{
"project_id": 1234,
"payment": {
"id": "payment_47",
"type": "purchase",
"status": "success",
"date": "2024-12-07T19:08:45+0000",
"method": "crypto",
"sum": {
"amount": 10000,
"currency": "EUR"
},
"description": ""
},
"customer": {
"id": "customer_123"
},
"operation": {
"id": 47,
"type": "sale",
"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": "EUR"
},
"sum_converted": {
"amount": 10000,
"currency": "EUR"
},
"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 purchase.
{
"project_id": 1234,
"payment": {
"id": "payment_47",
"type": "purchase",
"status": "decline",
"date": "2024-12-07T19:08:45+0000",
"method": "crypto",
"sum": {
"amount": 10000,
"currency": "EUR"
},
"description": ""
},
"customer": {
"id": "customer_123"
},
"operation": {
"id": 47,
"type": "sale",
"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": "EUR"
},
"sum_converted": {
"amount": 10000,
"currency": "EUR"
},
"code": "20000",
"message": "General decline",
"provider": {
"id": 12345,
"payment_id": "123abc123-123",
"auth_code": ""
}
},
"signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}
Related topics
Payout by using Gate. Scenario 1: payout from fiat balance
General information
To perform a payout by using Gate with the Crypto payment method:
- Send a request with all the required parameters and signature to the Monetix 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 Crypto payment method.
- The customer initiates a payout in your system.
- Your system sends the payout request to the Monetix 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 structure.)
- 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 Crypto payment method.
HTTP request method | POST |
Request body format | JSON |
API endpoint | /v2/payment/crypto/payout |
|
|||
---|---|---|---|
Object | Parameter | Description | |
general |
project_id |
Project ID you obtained from Monetix 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 |
wallet_address |
Cryptocurrency wallet address. Example: |
|
crypto_currency |
Cryptocurrency code (ticker). The value of this parameter is always equal to Example: |
||
crypto_payway |
This parameter indicates the blockchain where the cryptocurrency is stored. Possible values:
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 codes. Example: 100.00
EUR must be sent as |
||
description |
Operation description. 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 Crypto 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": { "wallet_address": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2", "crypto_currency": "USDT", "crypto_payway": "TRC20" }, "payment": { "currency": "EUR", "amount": 10000, "description": "Payout description" } }
Callback
In the Crypto payment method, the payment platform returns the payout result in a callback. For the information about the callback structure, see Callbacks in Gate.
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": "crypto",
"sum": {
"amount": 10000,
"currency": "EUR"
},
"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": "EUR"
},
"sum_converted": {
"amount": 10000,
"currency": "EUR"
},
"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": "crypto",
"sum": {
"amount": 10000,
"currency": "EUR"
},
"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": "EUR"
},
"sum_converted": {
"amount": 10000,
"currency": "EUR"
},
"code": "20000",
"message": "General decline",
"provider": {
"id": 12345,
"payment_id": "123abc123-123",
"auth_code": ""
}
},
"signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}
Payout by using Gate. Scenario 2: payout from deposit crypto balance
General information
To perform a payout by using Gate with the Crypto payment method:
- Send a request with all the required parameters and signature to the Monetix 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 Crypto payment method.
- The customer initiates a payout in your system.
- Your system sends the payout request to the Monetix 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 structure.)
- 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 Crypto payment method.
HTTP request method | POST |
Request body format | JSON |
API endpoint | /v2/payment/crypto/payout |
|
|||
---|---|---|---|
Object | Parameter | Description | |
general |
project_id |
Project ID you obtained from Monetix 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 |
wallet_address |
Cryptocurrency wallet address. Example: |
|
crypto_currency |
Cryptocurrency code (ticker). The value of this parameter must be the same as the value of payment.currency parameter. Possible values:
Example: |
||
payment |
currency |
Code of the payment currency. The value of this parameter must be the same as the value of amount.crypto_currency parameter. 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 codes. 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 Crypto 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": { "wallet_address": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2", "crypto_currency": "TRX" }, "payment": { "currency": "TRX", "amount": 3000000 } }
Callback
In the Crypto payment method, the payment platform returns the payout result in a callback. For the information about the callback structure, see Callbacks in Gate.
In this method, the payout currency data is sent in the callback using two codes: the standard cryptocurrency code and the internal Monetix code. For more information about the cryptocurrency codes, see Cryptocurrency codes.
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": "crypto",
"sum": {
"amount": 3000000,
"currency": "TRX"
},
"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": 3000000,
"currency": "A08"
},
"sum_converted": {
"amount": 3000000,
"currency": "A08"
},
"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": "crypto",
"sum": {
"amount": 3000000,
"currency": "TRX"
},
"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": 3000000,
"currency": "A08"
},
"sum_converted": {
"amount": 3000000,
"currency": "A08"
},
"code": "20000",
"message": "General decline",
"provider": {
"id": 12345,
"payment_id": "123abc123-123",
"auth_code": ""
}
},
"signature": "U7HQO7ToISZhMPKdM4XrUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}
Analysis of payments results
As with other payment methods Monetix offers, when using this method, you have several options to analyze the information about payments and operations.
You can load and analyze all the necessary information in Dashboard (dashboard.gtxpoint.com
), for instance you can use the analytic panels in the Analytics section for this purpose.
Also, you can export the information for further analysis by using third party analytical tools. The following options are available:
- Dashboard allows you to download reports in CSV format by using the tools in the Reports section. You can perform export as a one-time or regular download of data to your local computer.
- Data API allows you to have payment information exported in JSON format and delivered to a URL you specify. The payment information is exported by means of sending requests to the /operations/get endpoint.
If you have any further questions regarding payment data analysis, contact Monetix technical support.