Crypto
Overview
Introduction
Crypto is a payment method which allows you to process payments in euros and US dollars by using cryptocurrency wallets in different countries. This method supports purchases and payouts.
This article provides information about working with the Crypto method: general insights are presented in the Overview section, while information about the actions required to process payments and perform other actions is presented in the sections that follow.
General information
Payment method type | cryptocurrency payments |
---|---|
Payment instruments | cryptocurrency wallets |
Countries and regions | all countries, except DZ, BO, EC, NP, PK, KH, IR, KP * |
Payment currencies | EUR, USD |
Currency conversion | on the ecommpay side * |
One-time purchases | + |
Credential-on-file purchases | – |
Full refunds | – |
Partial refunds | – |
Payouts | + |
Chargebacks | – |
Notes |
|
Onboarding and access fee | refer to your ecommpay key account manager |
* Refer to your ecommpay key account manager for additional information.
Interaction diagram
Payment processing by using the Crypto method involves the merchant's web service, one of ecommpay interfaces, the ecommpay payment platform, and technical facilities of the provider service.
Operations support
Various platform interfaces can be used to process payments and perform operations using the Crypto method. Purchases can be processed by using Payment Page and Dashboard (using payment links), payouts—by using Gate. At the same time, regardless of the interfaces used, the following properties and limitations are applicable.
When working with the Crypto the following properties and limitations are applicable.
Amounts ¹ | Times ² | |||
---|---|---|---|---|
minimum | maximum | basic | threshold | |
Purchases | * | * | * | * |
Payouts | 45.00 EUR | – | – | – |
- Refer to your ecommpay key account manager for additional information.
- The base and threshold times are defined as follows:
- The base time is the average estimated time between the moment a payment is initiated in the payment platform to the moment the payment result is sent to the web service. The base time evaluation is made on the assumption of normal operation of all technical facilities and communication channels and typical customer behaviour (if any input from the customer is required). Use the base time to estimate when to react to the absence of payment result callbacks or when to check payment status (details).
- The threshold time is the maximum possible time between the moment a payment is initiated in the payment platform to the moment the web service receives the callback with the payment result. A payment is automatically assigned the
decline
status if it wasn't processed within the threshold time. For individual customisation of the threshold time limit, contact ecommpay technical support.
Processing scenarios
To perform a purchase by using the Crypto method, you need to redirect the customer to the Crypto service, while to initiate a payout, you need to notify the customer via the web service.
Purchases by using Payment Page
General information
To process a purchase through Payment Page by using the Crypto method, the merchant's web service is required to send a request with all required parameters and signature to the ecommpay URL and receive a callback with the result. The full sequence and special aspects of purchase processing are provided below.
Information about the formats of requests and callbacks used for processing payments by using the Crypto method via Payment Page is presented further in this section; general information about working with the Payment Page API is presented in Interaction concepts.
Request format
There are several things you need to consider when sending purchase requests by using the Crypto method:
- The following parameters required for any payment must be specified:
project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectpayment_currency
—payment currency code in the ISO-4217 alpha-3 formatpayment_amount
—payment amount in the smallest currency unitcustomer_id
—customer identifier unique within the project
- The following parameters required for any payment must be specified:
project_id
,payment_id
,payment_currency
,payment_amount
,customer_id
. - Additionally, it may be necessary to specify the following parameters on Payment Page. Refer to your ecommpay key account manager for more information on the necessity of using these parameters.
customer_first_name
—customer first namecustomer_last_name
—customer last namecustomer_email
—customer emailcustomer_country
—customer country code in the ISO 3166-1 alpha-2 formatcustomer_day_of_birth
—customer date of birth in the DD-MM-YYYY format
If any of these parameters are missing, the payment form may display input fields for entering the missing values (details are available in Submission of additional payment information).
- If you need to have the payment form displayed with the Crypto method selected, set the
force_payment_method
parameter tocrypto
. Also, depending on the provider processing the payment, it is possible to preselect the cryptocurrency while preselecting the payment method by specifying the cryptocurrency code (ticker symbol) in thepayment_methods_options
parameter. As a consequence the customer is not able to switch to another cryptocurrency when making the purchase. The value of the parameter must be specified according to the following format—"{"currency_id":["..."]}"
, where...
is the code (ticker symbol) of the cryptocurrency. Example of a valid value—"{"currency_id":["BTC"]}"
. Refer to your ecommpay key account manager for information regarding the possibility of preselecting cryptocurrency. - In some cases (depending on the payment processing provider), if the request contains the email address of the customer in the
customer_email
parameter, then after a processed or declined payment the payment platform sends an email with the payment result information to that address. - If required, you can also add any other additional parameters Payment Page supports.
- Additionally, any other parameters available for working with Payment Page can be used (details).
- After all target parameters are specified, generate a signature (details).
Thus, a correct request for opening the payment form using the Crypto method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer information and signature.
Callback format
The Crypto method uses the standard format for callbacks to deliver purchase results. For more information, see Callbacks.
In some cases (depending on the payment processing provider), a callback notifying about a successful purchase can contain additional payment information in the following parameters in the crypto
object:
blockchain_url
—a link to a third party service for tracking payment informationexchange_rate
—the exchange rate the cryptocurrency to the fiat currency, which is used for payment processingaddress
—a crypto address which is used by the customer for purchase processingcrypto_currency
—cryptocurrency symbol, which is used for payment processing
The following is the example of a callback with information about a 15.00 EUR
purchase made in the 398
project.
The following is the example of a callback with information about a declined purchase.
Useful links
The following articles can be useful when implementing purchases via Payment Page:
- Interaction concepts—about the interaction with the payment platform by using Payment Page.
- Signature generation and verification—about the procedure of generating and verifying signatures in requests and callbacks.
- Payment models and statuses—about the types, processing models, and possible statuses of supported payments and operations.
- One-time one-step purchase—about processing of one-time one-step purchases by using Payment Page.
- Information of operations performing—about error and response codes that are used in the payment platform to record information about performing of operations.
Payouts by using Gate
General information
To process a payout through Gate by using the Crypto method, send a request with all required parameters and signature to the ecommpay URL and receive a callback with the result. The full sequence and special aspects of payout processing are provided below.
Information about the formats of requests and callbacks used for processing payouts by using the Crypto method via Gate is presented further in this section. General information about working with the Gate API is presented in Interaction concepts.
Request format
There are several things you need to consider when sending payout requests by using the Crypto method:
- To initiate each payout send a separate POST request to the /v2/payment/crypto/payout endpoint.
- Each request must include the following objects and parameters:
- Object
general
—general payout information:project_id
—project identifier obtained from ecommpay during integrationpayment_id
—payment identifier unique within the projectsignature
—request signature generated after all required parameters are specified (details—in the Signature generation and verification) details
- Object
payment
—payment information:amount
—payout amount in the smallest currency unitcurrency
—payout currency code in the ISO-4217 alpha-3 format
- Object
customer
—customer information:id
—customer identifier unique within the projectip_address
—customer IP address relevant for the initiated payoutfirst_name
—customer first namelast_name
—customer last nameemail
—customer emailcountry
—customer country code in the ISO 3166-1 alpha-2 format
- Object
account
—customer account data:wallet_address
—cryptocurrency wallet addresscrypto_currency
—symbol of the cryptocurrency supported by the wallet, e.g.BTC
,BCH
,USDT
,ETH
(for information about supported cryptocurrencies, refer to your ecommpay key account manager).
- Object
- Additionally, any other parameters included in the specification can be used.
Thus, a correct payout request by using the Crypto method must contain the project identifier, basic payment information (identifier, amount, and currency code), customer and account information, as well as signature.
Callback format
The Crypto method uses the standard format for callbacks to deliver payout results. For more information, see Callbacks.
The following is the example of a callback with information about a 50.00 EUR
payout made in the 398
project.
The following is the example of a callback with information about a declined payout.
Useful links
The following articles can be useful when implementing payouts via Gate:
- Interaction concepts—about the interaction with the payment platform by using Gate.
- Signature generation and verification—about the procedure of generating and verifying signatures in requests and callbacks.
- Payment models and statuses—about the types, processing models, and possible statuses of supported payments and operations.
- Payouts—about processing of payouts by using Gate.
- Information of operations performing—about error and response codes that are used in the payment platform to record information about performing of operations.
Analysis of payments results
To analyse information about payments made with the Crypto method and other methods, you can use:
- Dashboard interface toolkit with various lists and analytic panels.
- Reports in CSV file format, available via the Reports section (one-time and periodically).
- Data in JSON format, sent by program requests to a specified URL available by using the Data API interface.
If you have any questions, refer to the documentation (Dashboard and Using Data API) and ecommpay technical support.