Web: Direct URL API integration

This integration is the optimal choice for partners looking to leverage Paybis widget API functionality without the need to install widget web or mobile SDK. It enables to supply initialisation parameters via API and then generate a direct link to the widget. The URL can be opened via redirect, in a new browser tab/window, or within a web view in your mobile application.

Building integration

To build the integration, follow these steps:

NoStepEndpoints (server-to-server)Endpoints (client-to-server)
1Get the list of supported fiat currencies and crypto assets depending on the transaction flow type (Buy/Sell)GET Currency Pairs Buy Crypto, GET Currency Pairs Sell CryptoPublic GET Currency Pairs Buy Crypto , Public GET Currency Pairs Sell Crypto
2Request the Quote from Paybis for certain amount and currency pairPOST QuotePublic POST Quote
3Obtain the requestId required to initialize the widgetPOST RequestPublic POST Request
4Generate widget URL with the obtained requestId and extra optional query parametersn/an/a

Passwordless integration (Public API endpoint)

NoStepEndpoints (server-to-server)Endpoints (client-to-server)
1Get the list of supported fiat currencies and crypto assets depending on the transaction flow type (Buy/Sell)GET Currency Pairs Buy Crypto, GET Currency Pairs Sell CryptoPublic GET Currency Pairs Buy Crypto , Public GET Currency Pairs Sell Crypto
2Request the Quote from Paybis for certain amount and currency pairPOST QuotePublic POST Quote
3Obtain the requestId required to initialize the widgetPOST RequestPublic POST Request
3.1Passwordless option
Obtain the oneTimeToken optional to initialize the widget
4Generate widget URL with the obtained requestId and oneTimeToken (optional) extra optional query parametersn/an/a

Supported query parameters:

ParameterRequiredDescriptionComment
requestIdmandatorySession ID required to initialize the widget.It can be obtained from the POST Request endpoint response. It's important to obtain a new requestId per each user transaction.
You can track the status of each user transaction by requestIdwhen getting Transaction status webhooks.
successReturnURLoptionalAllows to set the URL to which a user is redirected after successfully completing a transaction in widget.If the successReturnURL is specified, the Back to merchant button is displayed on the Transaction completed final screen in the widget. On click on the button, the user is redirected to this URL in the same browser tab.
failureReturnURLoptionalAllows to set the URL to which a user is redirected after getting a transaction rejected/cancelled in widget.If the failureReturnURLs specified, the Back to merchant button is displayed on the Transaction rejected/cancelled final screen in the widget. On click on the button, the user is redirected to this URL in the same browser tab.
oneTimeTokenoptionalA unique token generated for customer authorizing.One-time authentication token used as an argument on Widget initialization for automatic login of the customer
More Single-sign on details

Paybis Widget URL

Generate the widget URL using the following format:

https://{domain}/?requestId={requestId}&successReturnURL={urlencodedUrl}&failureReturnURL={urlencodedUrl}

The actual domain and encoded URLs need to be substituted into the placeholders:

  • domain:
    • Sandbox (for testing): widget.sandbox.paybis.com
    • Production: widget.paybis.com
  • requestId: A string in the following the format: uuid. For example, a122b998-15a4-4442-8b9e-2add17d59617.
  • urlencodedUrl: A URL-encoded string for success and failure return URLs.