Payment buttons
For a simple solution, you can add pay now buttons to your website to allow customers to pay.
- 1.Customers can easily pay with these buttons but they will still need to let you know they paid.
- 2.The amount and currency you specify can still be changed by the user
- 1.Create an account on account.kupay.finance so you can get a unique account slug. Be sure to fill this out in the pop-up right after you signed up.
- 2.Your decentralized bank account looks something like this https://account.kupay.finance/-john-doe (replace -john-doe with your selected username)
- 3.For each product you craft a link that has the correct chain_id, amount and currency, for example https://account.kupay.finance/-john-doe?chain_id=321&amount=100¤cy=EUR
- 4.Now you can create buttons for each link on your website. If you are familiar with Bootstrap, you can use classes to make your links look like buttons.
- 5.In the line below, replace # with the link you created in step 3.
<a href="#" class="btn btn-primary">buy now</a>
URL parameter | Description | Example |
---|---|---|
chain_id | The network identifier, for example 1 for Ethereum, or 321 for KuCoin Community Chain, 56 for BNB Smart Chain etc. This is the chain you want to be selected by default | ?chain_id=321 |
amount | The amount to pay in the specified currency | &amount=123.45 |
currency | 3-letter iso currency, eg. EUR or USD (check the woocommerce page for the list of supported currencies and request if you need us to support your currency). Use capital letters. | ¤cy=JPY |
Last modified 11mo ago