Just like Payment buttons, you can easily create custom payment forms.
Generate a payment form automatically
Our user-friendly button customizer allows you creating not only buttons, but also payment forms. In order to create one, please go to the MERCHANT section of your account and click on the Payment buttons tab.
Find the Widget Type option, select "Payment form" and complete all the necessary fields. Then simply copy the HTML code provided and paste it on your website exactly where you want your form to appear.
Generate a payment form manually
If you are more or less familiar with basic HTML-programming, you can easily create a payment form yourself. Please refer to the parameters below.
To create new invoice send a GET request to the URL below
https://api.cryptonator.com/api/merchant/v1/startpayment
Red color indicates required parameters
Parameter | Type and Values | Description |
merchant_id | <UUID> | Merchant ID. |
item_name | <string> | Name of an item or service. |
item_description | <string> | Description of an item or service. |
order_id | <string> | Order ID for your accounting purposes. |
invoice_currency | usd – US dollar eur – Euro rur – Rubles blackcoin |
Invoice currency. |
invoice_amount | <decimal> | Invoice amount. |
language | ru - Russian en - English de - German es - Spanish fr – French cn - Chinese |
Language of the checkout page.
If undefined, English is used. |
success_url | <string> | An URL to which users will be redirected after a successful payment.
If undefined, default setting is used. |
failed_url | <string> | An URL to which users will be redirected after a cancelled or failed payment.
If undefined, default setting is used. |
Example
An online store offers a Cryptonator T-shirt for sale.
Merchant ID: 1c8fc99016492e9944e011058f71d
Item name: Cryptonator T-shirt
Item description: With logo, size L, color white. Free delivery.
Invoice/order #: 123-456-789
Amount due: 10 USD
<form method="GET" action="https://api.cryptonator.com/api/merchant/v1/startpayment">
<input type="hidden" name="merchant_id" value="1c8fc99016492e9944e011058f71d">
<input type="hidden" name="item_name" value="Cryptonator T-shirt">
<input type="hidden" name="item_description" value="With logo, size L, color white. Free delivery.">
<input type="hidden" name="order_id" value="123-456-789">
<input type="hidden" name="invoice_currency" value="usd">
<input type="hidden" name="invoice_amount" value="10" data-type="number">
<input type="hidden" name="language" value="en">
<input type="hidden" name="success_url" value="http://www.myshop.ru/thankyou">
<input type="hidden" name="failed_url" value="http://www.myshop.ru/oops">
<input type="submit" value="Buy with cryptocurrency">
</form>
In this example the "Buy with cryptocurrency" button will open a hosted checkout page in English language, where a customer can choose preferred payment method and complete the purchase.
Upon successful payment he/she will be redirected to the URL http://www.myshop.ru/thankyou