Control transaction fiat, crypto and amount
API integrations
There are 2 ways to control the transaction amount and fiat/crypto currency pair:
- Start the widget with the Quote.
Step | Server-to-server endpoint |
---|---|
Get a quote from Paybis | POST Quote |
Create the Request with quoteId | POST Request |
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 the user's wallet, the selection of cryptos is limited accordingly.
- One-click checkout
In business scenarios, when you want to prevent users from changing any transaction details, provide the complete transaction details when initializing 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 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 who inputs a 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 click the buy button and make a payment in the widget.
Option 2: You can create an input field for a customer who inputs a fiat or crypto amount, NOT show them the quote, and create a buy button that 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. Customers 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.
Updated 2 months ago