In this article, we get familiar with the flow of your first transaction via PayPal. 



    The authorization is required for transmitting requests to SolidGate. It can be performed by signing each client's request to API. You should apply the merchant ID and its secret key to generate the signature. 


Kindly find the dev specifications on the matter here

PayPal button integration flow

First of all, kindly request PayPal sandbox credentials from your Account Manager or by request to 

After receiving API keys to the PayPal sandbox environment, kindly follow the documentation

Short flow on how to generate PayPal button below:

1. Kindly send an init request to 

2. You will get responsive with "scriptUrl."

3. Display the following code on the page:

<div id="paypal-button"></div>


    var elem = document.getElementById('paypal-button');

    elem.addEventListener('order-started-processing', function (e) {


    }, false);

    elem.addEventListener('order-processed', function (e) {


    }, false);

    elem.addEventListener('order-already-processed', function (e) {

        console.log('order-already-processed', e)

    }, false);

    elem.addEventListener('button-ready', function (e) {

        console.log('button-ready', e)

    }, false);

    elem.addEventListener('button-error', function (e) {


    }, false);


<script type="text/javascript"


        data-script=" "



        data-tittle="Tittle for payment widget"



4. Receive a PayPal button.

5.  Press the PayPal button and pass the test user's authorisation (request from support). 

6. Receive callback notification.