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
  • supported cryptocurrencies: Bitcoin (BTC), Bitcoin Cash (BCH), Tether (USDT–ERC20), Ethereum (ETH), Litecoin (LTC) *
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
Note:
  1. Refer to your ecommpay key account manager for additional information.
  2. 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.



Figure: Purchase processing by using Payment Page: step-by-step description

  1. A customer initiates a purchase in the web service.
  2. The web service sends the request for opening Payment Page to the specified ecommpay URL.
  3. The request for opening Payment Page is sent to the payment platform.
  4. The payment platform receives the request and validates the required parameters and signature.
  5. Payment Page is generated based on the project and request parameters.
  6. Payment Page is displayed to the customer.
  7. The customer selects the Crypto method.
  8. The payment platform receives the request for processing the payment by using the Crypto method.
  9. The payment platform processes the request and sends it to the provider service.
  10. The request is processed on the provider service side.
  11. The data for redirecting the customer to the provider service is sent from the Crypto service to the payment platform.
  12. The data for redirecting the customer is sent from the payment platform to Payment Page.
  13. The customer is redirected to the provider service.
  14. The customer completes all required payment steps. The required steps differ depending on the provider which processes the payment. Refer to your ecommpay key account manager for more information.
  15. The purchase is processed in the provider service.
  16. The result information is displayed to the customer in the Crypto service.
  17. The customer is redirected to Payment Page.
  18. The provider service sends a notification about the result to the payment platform.
  19. The payment platform sends the payment result callback to the web service.
  20. The payment platform sends the result information to Payment Page.
  21. The result information is displayed to the customer on Payment Page.

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:

  1. The following parameters required for any payment must be specified:
    • project_id—project identifier obtained from ecommpay during integration
    • payment_id—payment identifier unique within the project
    • payment_currency—payment currency code in the ISO-4217 alpha-3 format
    • payment_amount—payment amount in the smallest currency unit
    • customer_id—customer identifier unique within the project
  2. The following parameters required for any payment must be specified: project_id, payment_id, payment_currency, payment_amount, customer_id.
  3. 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 name
    • customer_last_name—customer last name
    • customer_email—customer email
    • customer_country—customer country code in the ISO 3166-1 alpha-2 format
    • customer_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).

  4. If you need to have the payment form displayed with the Crypto method selected, set the force_payment_method parameter to crypto. 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 the payment_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.
  5. 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.
  6. If required, you can also add any other additional parameters Payment Page supports.
  7. Additionally, any other parameters available for working with Payment Page can be used (details).
  8. 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.

{
   "project_id": 120,
   "payment_id": "580",
   "payment_amount": 1000,
   "payment_currency": "EUR",
   "customer_id": "customer1",
   "customer_first_name": "Mary",
   "customer_last_name": "Smith",
   "customer_email": "customer@example.com",
   "customer_country": "TR",
   "customer_day_of_birth": "12-12-1990',
   "signature": "kUi2x9dKHAVNU0FYldOcZzUCwX6R\/ekpZhkIQg=="
}

Figure: Example of sufficient data in a purchase request

{
   "project_id": 120,
   "payment_id": "580",
   "payment_amount": 1000,
   "payment_currency": "EUR",
   "customer_id": "customer1",
   "customer_first_name": "Mary",
   "customer_last_name": "Smith",
   "customer_email": "customer@example.com",
   "customer_country": "TR",
   "customer_day_of_birth": "12-12-1990',
   "signature": "kUi2x9dKHAVNU0FYldOcZzUCwX6R\/ekpZhkIQg=="
}

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 information
  • exchange_rate—the exchange rate the cryptocurrency to the fiat currency, which is used for payment processing
  • address—a crypto address which is used by the customer for purchase processing
  • crypto_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.

Figure: Example of callback data indicating that the purchase has been processed

{
        "project_id": 398,
        "payment": {
            "id": "TEST_1560760354708",
            "type": "purchase",
            "status": "success",
            "date": "2019-06-17T08:56:47+0000",
            "method": "crypto",
            "sum": {
                "amount": 1500,
                "currency": "EUR"
            },
            "description": ""
        },
        "operation": {
            "id": 29891000002814,
            "type": "sale",
            "status": "success",
            "date": "2019-06-17T08:56:47+0000",
            "created_date": "2019-06-17T08:50:34+0000",
            "request_id": "0d6aabd20c7925f1719b7cb63f728b32a3450cf0",
            "sum_initial": {
                "amount": 1500,
                "currency": "EUR"
            },
            "sum_converted": {
                "amount": 1500,
                "currency": "EUR"
            },
            "provider": {
                "id": 1288,
                "payment_id": "148947",
                "date": "2019-06-17T08:56:46+0000",
                "auth_code": ""
            },
            "code": "0",
            "message": "Success"
        },
         "crypto": {
            "exchange_rate": "32378.76267999",
            "address": "emulateBTCaddrjooterthas42ro87b0z",
            "blockchain_url": "https://api.example.com/c4ba632a094c078",
            "crypto_currency": "BTC"
            },
        "signature": "V0zYWk7Oz0wBJeQIHwj75hpkuXFNqHjYGMdfhycMw=="
}

The following is the example of a callback with information about a declined purchase.

Figure: Example of callback data indicating that the purchase has been declined

{
        "project_id": 398,
        "payment": {
            "id": "TEST_1560760354708",
            "type": "purchase",
            "status": "decline",
            "date": "2019-06-17T08:56:47+0000",
            "method": "crypto",
            "sum": {
                "amount": 500,
                "currency": "EUR"
            },
            "description": ""
        },
        "operation": {
            "id": 29891000002815,
            "type": "sale",
            "status": "decline",
            "date": "2019-06-17T08:56:47+0000",
            "created_date": "2019-06-17T08:50:34+0000",
            "request_id": "0d6aabd20c7925f1719b7cb63f728b32a3450cf0",
            "sum_initial": {
                "amount": 500,
                "currency": "EUR"
            },
            "sum_converted": {
                "amount": 500,
                "currency": "EUR"
            },
            "provider": {
                "id": 1288,
                "payment_id": "148948",
                "date": "2019-06-17T08:56:46+0000",
                "auth_code": ""
            },
            "code": "20000",
            "message": "General decline"
        },
        "signature": "V0zYWk7OzwfcMBAhpkuXFNqHjYGMdfhycMw=="
}

Useful links

The following articles can be useful when implementing purchases via Payment Page:

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.



Figure: Payout processing by using Gate: step-by-step description

  1. A customer initiates a payout by using the Crypto method in the web service.
  2. The web service sends the request for processing the payout by using Gate to the specified ecommpay URL.
  3. The payment platform receives the request.
  4. The payment platform validates the required parameters and signature in the request.
  5. The payment platform sends the response to the web service with information about the receipt of the request and its validity (details).
  6. The payment platform performs further processing of the request (with parameter consistency check) and sends it to the provider service.
  7. The payout is processed on the side of the provider service.
  8. The provider service sends the result notification to the payment platform.
  9. The payment platform sends the result callback to the web service.
  10. The customer receives the payout result information from the web service.

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:

  1. To initiate each payout send a separate POST request to the /v2/payment/crypto/payout endpoint.
  2. Each request must include the following objects and parameters:
    • Object general—general payout information:
      • project_id—project identifier obtained from ecommpay during integration
      • payment_id—payment identifier unique within the project
      • signature—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 unit
      • currency—payout currency code in the ISO-4217 alpha-3 format
    • Object customer—customer information:
      • id—customer identifier unique within the project
      • ip_address—customer IP address relevant for the initiated payout
      • first_name—customer first name
      • last_name—customer last name
      • email—customer email
      • country—customer country code in the ISO 3166-1 alpha-2 format
    • Object account—customer account data:
      • wallet_address—cryptocurrency wallet address
      • crypto_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).
  3. 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.

{
  "general": {
    "project_id": 398,
    "payment_id": "115",
    "signature": "cMlzFj8zqZJbum1wy62aewWX7xcG+Ttb0fhuenWNptFZg=="
  },
  "payment": {
    "amount": 5000,
    "currency": "EUR"
  },
  "customer": {
    "id": "customer123",
    "ip_address": "192.0.2.0",
    "first_name": "Mary",
    "last_name": "Smith",
    "email": "customer@example.com",
    "country": "TR"
  },
    "account": {
      "wallet_address": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
      "crypto_currency": "BTC"
    }
}

Figure: Example of sufficient data in a purchase request

{
  "general": {
    "project_id": 398,
    "payment_id": "115",
    "signature": "cMlzFj8zqZJbum1wy62aewWX7xcG+Ttb0fhuenWNptFZg=="
  },
  "payment": {
    "amount": 5000,
    "currency": "EUR"
  },
  "customer": {
    "id": "customer123",
    "ip_address": "192.0.2.0",
    "first_name": "Mary",
    "last_name": "Smith",
    "email": "customer@example.com",
    "country": "TR"
  },
    "account": {
      "wallet_address": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
      "crypto_currency": "BTC"
    }
}

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.

Figure: Example of callback data indicating that the payout has been processed

{
        "project_id": 398,
        "payment": {
            "id": "TEST_1560760354708",
            "type": "payout",
            "status": "success",
            "date": "2019-06-17T08:56:47+0000",
            "method": "crypto",
            "sum": {
                "amount": 5000,
                "currency": "EUR"
            },
            "description": ""
        },
        "operation": {
            "id": 29891000002814,
            "type": "sale",
            "status": "success",
            "date": "2019-06-17T08:56:47+0000",
            "created_date": "2019-06-17T08:50:34+0000",
            "request_id": "0d6aabd20c7925f1719b7cb63f728b32a3450cf0",
            "sum_initial": {
                "amount": 5000,
                "currency": "EUR"
            },
            "sum_converted": {
                "amount": 5000,
                "currency": "EUR"
            },
            "provider": {
                "id": 1288,
                "payment_id": "148947",
                "date": "2019-06-17T08:56:46+0000",
                "auth_code": ""
            },
            "code": "0",
            "message": "Success"
        },
        "signature": "V0zYWk7OzwfcMBAJJxArOjYGMdfhycMw=="
}

The following is the example of a callback with information about a declined payout.

Figure: Example of callback data indicating that the payout has been declined

{
        "project_id": 398,
        "payment": {
            "id": "TEST_1560760354708",
            "type": "payout",
            "status": "decline",
            "date": "2019-06-17T08:56:47+0000",
            "method": "crypto",
            "sum": {
                "amount": 4000,
                "currency": "EUR"
            },
            "description": ""
        },
        "operation": {
            "id": 29891000002815,
            "type": "payout",
            "status": "decline",
            "date": "2019-06-17T08:56:47+0000",
            "created_date": "2019-06-17T08:50:34+0000",
            "request_id": "0d6aabd20c7925f1719b7cb63f728b32a3450cf0",
            "sum_initial": {
                "amount": 4000,
                "currency": "EUR"
            },
            "sum_converted": {
                "amount": 4000,
                "currency": "EUR"
            },
            "provider": {
                "id": 1288,
                "payment_id": "148948",
                "date": "2019-06-17T08:56:46+0000",
                "auth_code": ""
            },
            "code": "20101",
            "message": "Decline due to amount or frequency limit"
        },
        "signature": "V0zYWk7OzwfcMBApkuXFNqHjYGMdfhycMw=="
}

Useful links

The following articles can be useful when implementing payouts via Gate:

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.