Control transaction fiat, crypto and amount

API integrations

There are 2 ways to control the transaction amount and fiat/crypto currency pair:

  1. Start the widget with the Quote.
StepServer-to-server endpointClient-to-server endpoint
Get a quote from PaybisPOST QuotePOST Quote (public)
Create the Request with quoteIdPOST Request POST Request (public)

In this scenario, when the widget is loaded, the amount and currencies, along with the corresponding fees based on the calculated quote, are pre-filled. Users have the flexibility to change the amount and currencies.

Note that if you have also supplied user's wallet, the selection of cryptos is limited accordingly.

  1. One-click checkout

In business scenarios, when you want to prevent users from changing any transaction details, provide the complete transaction details when initialising the widget by implementing One-click checkout or Apple Pay one-click. This not only eliminates any friction but also grants full control over user transaction amounts and currencies.

UI Options

Taking into the consideration what we have explained above you can build your UI in a few different ways.

Option 1: You can create an input field for a customer where inputs fiat or crypto amount, show them the quote and create a buy button which will initiate a widget. Your customer will see the transaction details before initiating a widget, if they agree to the quote he clicks the buy button and makes a payment in the widget.

Option 2: You can create an input field for a customer where inputs fiat or crypto amount, NOT show them the quote and create a buy button which will initiate a widget. Your customer will not see the transaction details before initiating a widget. Once the widget is initiated the transaction details will be pre-filled. Customer will be able to complete the payment in the widget.

Option 3: You can create predefined buttons for a specific amount of cryptocurrency: e.g "Buy 0.5 Bitcoin" or "Buy bitcoin for $100" etc.