Wallet Recharge Introduction

Wallet recharge setup

Step 1: Create a Wallet Recharge Page

Begin by setting up a dedicated wallet recharge page where users can view their wallet details and recharge their balance.

Step 2: Configure the API

Go to the API setup page and add the appropriate URL in the "Wallet Recharge URL" field. This URL will be used to process the recharge requests.

Wallet Recharge

Step 1: Redirect User and Authenticate

When a user selects the wallet recharge option, they will be redirected to the URL at the time of wallet recharge setup. 

EasySocial appends a user ID as a suffix to the URL in the following format: 

https://yourwebsite.com/wallet_recharge?user_id=123456


Extract this User ID from the URL parameter to call the User Info Auth API, which will return a signature that remains valid for 10 minutes.
Within this timeframe, use the signature and business ID to call the Get User Info API. This will fetch the necessary user information including current wallet balance, allowing them to select the amount they wish to add to their wallet. Click here to know how User info API's work.

Step 2: User Selects Amount to recharge wallet

Once the user’s information is retrieved, they will choose the amount they want to add to their wallet and proceed to payment.

Step 3: API Calls

After the payment is successfully processed, two API calls are made:

  1. Wallet Recharge Auth API is triggered to generate a new signature.
  2. Wallet Recharge API is then called using the generated signature, User ID, and the amount selected by the user.

Step 4: Update Wallet Balance

Once the API calls are completed, the specified amount is successfully deducted from partner wallet and added to the user's wallet.
Click here to know how Wallet Recharge API's work.