Payment Gateway Integration Guide

Welcome to the Payment Gateway Integration Guide, where you can learn how to set up various payment gateways for your website.

Table of Contents

  1. aasaan Pay
  2. PayPal
  3. PayU
  4. Razorpay
  5. Stripe

aasaan Pay

Set up Online Payments with aasaan Pay
Receive Online Payments with aasaan Pay

Did you know you could set up online payments on your website in just a few minutes? You can do it with Aasaan Pay - our custom payment gateway. Once you integrate it into your Aasaan store, you can receive payments from UPI, debit, and credit cards. Here’s how to do it.

STEP 1:

Install the Aasaan Pay app from the app market. Click here to learn how you can install apps from your app market.

STEP 2:

Enter your business and bank account details and click on Save.

Points to remember:

  1. If you have a checking or savings account, please select the business type as “Individual”.
  2. Please use a unique email ID which you haven’t used for any previous Aasaan Pay accounts.

You have successfully set up Aasaan Pay on your Aasaan store. The status should be displayed as “Active”.


PayPal

Setup Paypal on Your Website
Integrate Paypal Payment Gateway to your Store

Note: Click here to navigate to the mobile admin app version of this article

With more than 400 million active users worldwide, PayPal is one of the most recognized and trusted payment service providers. With aasaan, you can offer Paypal as a payment option on your website to deliver a seamless, personalized checkout experience on the web and mobile.

Note: Make sure to install Paypal from the aasaan app market. Click here to learn how to install apps from your app market.

PayPal - Setup Paypal on Your Website

STEP 1:

  1. Login to your Paypal account and click on Business Tools.
  2. Click on API credentials.
  3. Click on Get Started to get your API credentials.
  4. Copy your client ID and secret.
  5. Go to your installed Paypal app in aasaan. Enter your secret key and client ID in the respective fields and click on Verify.

You have successfully set up Paypal on your website.


PayU

Setup PayU Payment Gateway on your Store
Integrate PayU to your Store

Note: Click here to navigate to the mobile admin app version of this article

You can watch the video version of this article here.

If you have an existing account with PayU payment gateway, you can easily integrate with Aasaan to receive your online payments. Here’s how you do it.

Note: Make sure to install PayU from the aasaan app market. Click here to learn how to install apps from your app market.

PayU - Setup PayU Payment Gateway on your Store

STEP 1:

  1. Login to your PayU account and click on Payment Gateway.
  2. Copy your Merchant Key and the Merchant Salt (Version 1).
  3. Go to your installed PayU app in aasaan. Paste the merchant key and merchant salt.
  4. Copy the Webhook URL shown.
  5. Go to your PayU dashboard and click on Settings.
  6. Click on Webhook.
  7. Click on Create Webhook.
  8. Select the type as Payments and the Event as Successful. Enter the Webhook URL and click on Create.

Your webhook has been successfully created.

STEP 2: 9. Go back to your installed PayU app in aasaan and click on Verify.

You have successfully set up PayU on your store.

Razorpay

How to Integrate Razorpay to aasaan
Set up Razorpay on your Store

Note: Click here to navigate to the mobile admin app version of this article

You can watch the video version of this article here.

Our regular method of setting up online payments involves setting up aasaan Pay by entering your bank account details. This works if you don’t have a payment gateway account like Razorpay.

Note: Make sure to install Razorpay from the aasaan app market. Click here to learn how to install apps from your app market.

Razorpay - How to Integrate Razorpay to aasaan

STEP 1:

  1. Login to your existing Razorpay account and click on Account & Settings > API Keys.
  2. Since we already have existing API keys and need new ones, click on Regenerate Test Key.
    • Important note: This guide illustrates the steps for integrating Razorpay in test mode. You will need to integrate Razorpay to your store in live mode to be able to accept real payments. The Razorpay integration process is the same in both the test mode and live mode. So if you are carrying out this step in live mode, you will need to click on Regenerate Live Key.

STEP 2: 3. To get new API keys, you will need to deactivate your existing ones. Choose Deactivate old key immediately and then click on Confirm and deactivate.

  • Copy and save your Key ID and Key Secret. You can download them by clicking on Download Key Details.
  • Important note: The key secret will be displayed only once.

STEP 3: 4. Go to your installed Razorpay app in aasaan. Enter your Key ID and Key Secret. 5. Copy the Webhook URL.

STEP 4: 6. Now you need to add the aasaan app Webhook URL into your Razorpay account.

  • In your Razorpay settings, click on Webhooks > Add New Webhook.

STEP 5: 7. Paste the webhook URL in the top field, and choose payment.failed and payment.captured as the active events. Then click on Create Webhook.

  • Your webhook will be created.

STEP 6: 8. Go back to your installed Razorpay app in aasaan and click on Verify.

You have successfully set up Razorpay on your store.

Stripe

How to Set up Stripe Payment Gateway on Your Website
Set up Stripe Payment Gateway on your Store

Note: Click here to navigate to the mobile admin app version of this article

You can watch the video version of this article here.

If you have an existing account with the Stripe payment gateway, you can easily integrate it with Aasaan to receive your online payments. Here’s how you do it.

Note: Make sure to install Stripe from the aasaan app market. Click here to learn how to install apps from your app market.

Stripe - How to Set up Stripe Payment Gateway on Your Website

STEP 1:

  1. Login to your Stripe account and click on Developers.
  2. Click on API Keys.
  3. Copy the publishable key and secret key and save them. The secret key will only be displayed once.

STEP 2: 4. Go to your installed Stripe app in aasaan. Paste the account publishable and secret keys from step 3. 5. Copy the Webhook URL.

STEP 3: 6. Go back to your Stripe dashboard and click on Webhooks next to API Keys. 7. Click on Add an Endpoint. 8. Paste the Webhook URL from step 6 in the Endpoint URL field. Now we need to select the events for the webhook. Click on Select Events.

STEP 4: 9. Scroll down and select payment intent. 10. Select these 4 events:

  • payment_intent.canceled
  • payment_intent.created
  • payment_intent.payment_failed
  • payment_intent.succeeded Then click on Add Events.

STEP 5: 11. Click on Add endpoint. 12. Click on Reveal Signing Secret. 13. Copy the signing secret.

STEP 6: 14. Paste the signing secret in the “End Point Secret Key” field and click on Verify.

You have successfully set up Stripe on your website.