HTML forms and links

HTML forms and links are one of the methods to create new invoices.

It is used as the easiest and fastest way to add cryptocurrency payments on websites, online stores and bots.

The method has one limitation: no more than 50 active (unpaid) invoices can be created this way at a time.

HTML forms

Place the following HTML form structure anywhere on the page where you want to display the payment button:

<form method="post" action="https://dash.bitsby.app/invoices/createFromForm">
  <input type="hidden" name="securityKey" value="e54mc20bzkrf9evty">
  <input type="hidden" name="projectId" value="9deea1e2-0c08-41a3-bdc2-a34eada3892d">
  <input type="hidden" name="amountFiat" value="10.55">
  <input type="hidden" name="currencyFiat" value="EUR">
  <input type="hidden" name="timeToPay" value="6">
  <input type="hidden" name="description" value="12 months license for BITSBY">
  <input type="hidden" name="serviceData" value="{&quot;userId&quot;:100,&quot;orderId&quot;:500}">
  <input type="hidden" name="output" value="errors">
  <input type="submit" value="Pay">
</form>

You can decorate the Pay button in any format to fit your page design using CSS styles.

Form parameters

Links The link for invoice creation is convenient to use in chat bots, to pass to other users in chat rooms. But it can also be used on regular pages.

The link uses all the same parameters as HTML form. Example:

https://dash.bitsby.app/invoices/createFromForm?securityKey=e54mc20bzkrf9evty&projectId=9deea1e2-0c08-41a3-bdc2-a34eada3892d&amountFiat=10.55&currencyFiat=EUR&timeToPay=6&description=12 months license for BITSBY&serviceData={"userId":100,"orderId":500}&output=errors

Security Key

It is used to check if the form is up to date. If an incorrect combination of security key and project ID is specified, the user will receive an invoice creation error.

Why do I need a security key? In case the method of creating invoices by HTML forms and links has become irrelevant for you - you just generate a new security key in the project settings and all forms and links on the sites stop working (creating invoices).

Webhook and notifications

Invoices created by this method are identical to invoices created via personal cabinet or API. Accordingly, when these invoices are paid, all notifications that were configured in the project will be triggered.

Last updated