Web: Direct URL API integration

This integration is optimal for partners looking to leverage Paybis widget API functionality without installing widget web or mobile SDK. It enables the supply of initialization parameters via API and then generates 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 ensure the security of your integration, signature verification is required for all Public and Private API requests.

More details on how to generate the signature.

To build the integration, follow these steps:

NoStepEndpoints (server-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 Crypto
2Request the Quote from Paybis for a certain amount and currency pairPOST Quote
3Obtain the requestId required to initialize the widgetPOST Request
4Generate widget URL with the obtained requestId and extra optional query parametersn/a

Passwordless integration (Public API endpoint)

NoStepEndpoints (server-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 Crypto
2Request the Quote from Paybis for a certain amount and currency pairPOST Quote
3Obtain the requestId required to initialize the widgetPOST 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/a

Supported query parameters:

ParameterRequiredDescriptionComment
requestIdmandatorySession ID is 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 completing a transaction in the widget.If the successReturnURL is specified, the Back to merchant button is displayed on the Transaction completed final screen in the widget. On clicking 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/canceled in the widget.If the failureReturnURLs specified, the Back to merchant button is displayed on the Transaction rejected/canceled final screen in the widget. On clicking on the button, the user is redirected to this URL in the same browser tab.
oneTimeTokenoptionalA unique token is generated for customer authorization.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 format: uuid. For example, a122b998-15a4-4442-8b9e-2add17d59617.
  • urlencodedUrl: A URL-encoded string for success and failure return URLs.