Skip to main content

Xprizo Instant Payments (Payment Link)

Introduction

How to create a Payment Link?

Follow the steps written in the image below to be able to create the Payment URL.

Screenshot 2024-08-14 at 4.24.45 PM.png

To receive the notifications for the payment you've received through webhook then you can set this by navigating to the settings of your profile page this process will be done from the UI side, For reference click on the link below.

Create Payment URL Webhook

To perform the same process with the help of API click on the below link for the reference.

Approval Webhook

Creating a Payment Link via the Xprizo Wallet API

Add a Product

First, you need to add a product by calling the /Item/AddProduct endpoint:

  • set description, ex: "Test Product";
  • set currencyCode, ex: "USD";
  • set amount, ex: "25.00";
  • set reference to some unique ID which will identify the transaction from your end; you can set a GUID/UUID here.
List the Products you have added in the Xprizo Platform

To get the list of products, call the /Item/ProductList endpoint:

  • For each product in the response, note “id”.

To generate a payment link for a product purchase:

  • Call the /Item/SetProductRedirectUrl endpoint,
    • set the “id” query param to the id you got from the response of the /Item/ProductList endpoint;
    • set “value” query param to a URL to which user will be redirected on completion of the payment.
  • Call the /Item/GetProduct endpoint,
    • in the “id” path variable, set the id you got from the response of the /Item/ProductList endpoint;
    • “paymentUrl” in the response is the payment link which the user must click to proceed to the payment.

To complete the payment flow, the user must enter their card details, and click “Proceed to Pay”.

  • Once the payment is completed, the user will be redirected to the URL previously set in the call to the /Item/SetProductRedirectUrl endpoint.