Gestpay diventa Axerve Ecommerce Solutions

Pay by link

Pay by Link is a service, available calling our customer support, that let you send a link or create a QR code to make your customer pay from his device. This functionality gives your customers a wider range of choices increasing your sales opportunities, building up cross and upselling and reinforcing your retention ratio.

You can connect you digital catalogue or any other platform to our service via API. After clicking on the BUY button in the shopping cart, our service will create an email - and a QR code that you can show on the device – containing a link to the checkout page.

How to generate the link/QR code

To create the link and the QRcode you need to add paymentChannel and buyerEmail in the body of payment/create API call.

Here an example:

{  
  "shopLogin":"GESPAY65987",
  "amount":"27.30",
  "currency":"EUR",
  "shopTransactionID":"your-custom-id",
  "buyerEmail": "your-customer@email.it",
  "paymentChannel": {
    "channelType": [
      "EMAIL", "QRCODE"
    ]
  }
}

If the request is correctly formatted, the response will be something like the object below:

{
    "error": {
        "code": "0",
        "description": "request correctly processed"
    },
    "payload": {
        "paymentToken": "f19e60d0-ef11-45bc-b404-ee9b17ba6c81",
        "paymentID": "17665541289",
        "userRedirect": {
            "href": "https://sandbox.gestpay.net/pagam/src/index.html?paymentID=17665541282&paymentToken=f19e60d0-ef21-45bc-b404-ee9b17ba6c81&shopLogin=GESPAY65987&lightbox=false"
        }
    }
}

Where to input the redirect URLs

Whenever a payment create call is launched, you can decide where the buyer should land after receiving ok or ko response the the authorization, specifying this data:

{  
  ...
  "responseURLs": "www.mysite.com/"
}

Consider that data in the create call will be the data to lead, in case you’ve filled both create call and backoffice.

As said before, to send the payment link you need to ask to your customers their email which will be added in the body of payment/create API call.

Here you can find a mockup of what you could develop as front-end.

Once you have the email address, you can call the payment/create service that will automatically send the email to your customer.

Here a representation of what the buyer will see opening the email and finalizing the payment.

Creating the QRcode

In this case you don’t need the customer email, you’ll receive the QRcode directly from the the payment/create.

Here you can find a mockup of what you could develop as front-end.

The customer will get a shot of the QRcode – with the camera or a QRCode reader app - and the payment page will be shown inside the browser.