How-to
Step 1
Log in to your Cryptopay account
Navigate to Integration → Online checkout
Generate a new key
Step 2
Add the following meta tags to your web page.
Step 3
Add the following code to your web page.
Environment | src |
Sandbox | |
Production |
Step 4
Checkout initialization.
Parameter | Usage | Description |
| Required | Your widget key - see Step 1 |
| Optional | Skip this parameter to make all supported cryptocurrencies available by default. Choose which cryptocurrencies you want your customers to pay with. Can be |
| Optional | If If |
| Optional |
|
| Optional | Can be If parameter is not set, the language will be taken from the browser settings. |
| Optional |
|
Step 5
Checkout calling.
Parameter | Type | Usage | Description |
| number (double) | Required | Purchase amount |
| string | Required | Purchase currency |
| string | Required | Purchase reference ID in your system |
| string | Optional | Purchase name |
| string | Optional | Purchase description |
| object | Optional | Key-valued data |
| function | Optional | Function to be called upon checkout opening |
| function | Optional | Function to be called upon checkout closing |
Step 6
Checkout destruction. After calling this method you will need to initialise new checkout.
Last updated