KiviCare (TM) Pharma Addon- Documentation
KiviCare (TM) Pharma Addon

Razorpay Gateway

🕒 Estimated Reading: 2 minutes
📂 Location: Payment Gateway →Razorpay Gateway

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

📌 What is this file for?

Welcome to Razorpay! This guide will walk you through the process of signing up for a Razorpay account and obtaining API keys for integrating the Razorpay payment gateway into your application.

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

💳 What is Razorpay?

Razorpay is one of India’s most powerful payment solutions. It enables businesses to:

  • Accept and process payments via credit cards, debit cards, netbanking, UPI, and wallets like JioMoney, Mobikwik, PayZapp, and more.
  • Automate bank transfers (NEFT/RTGS/IMPS).
  • Collect recurring payments, send invoices, and manage your business from a single platform.

📎 Click here for more Razorpay details

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

🔐 Sign Up or Log In

  • If you already have a Razorpay Developer Account, login.
  • If not, sign up and create a new Business Account.

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

🗝️ Obtain API Keys

Follow these steps to generate Razorpay API keys:

1. Login to your Razorpay account.

2. After that you have to click on the Account & Settings option.

3. Select the API keys. We’ve included a screenshot below.

4. You will click on regenerated test key then a dialog will open in which Key Id and key Key Secret be generated. We’ve included a screenshot below.

Note:
If you close the TEST MODE switch. Then you will get Live Key Id and Key Secret.

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

🔧 Add Keys in Admin Panel

After generating keys, follow these steps:

1. Open Admin Panel

2. Navigate to Settings → Payment Method

3. Enable Razorpay Payment

4. Paste the:

  • Key ID under App Key
  • Secret Key under Secret Key

5. Submit the changes.

🎉 Done! Razorpay is now configured.

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

🧪 Test Razorpay Integration

You can test payments using test cards. These only work in Test Mode.

💳 Test Card Details

Card NumberExpiryCVVName
4111 1111 1111 111112/25123Test User

You can use any CVC, ZIP code, and future expiry date.
❗ Do NOT use test cards in Live Mode — it will throw errors.

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

❌ Remove Razorpay Integration

If you want to remove Razorpay, follow these steps:

✅ Recommended (Safe) Method

  1. Open your project’s pubspec.yaml file.
  2. Remove this line: razorpay_flutter: LATEST_VERSION
  3. Run the command: flutter pub get

⚠️ Do not remove any related code unless you’re familiar with dependencies and implementation.

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Congratulations! You have successfully configured Razorpay Payment Gateway.

/ / / / / / / / /

stimated reading: 2 minutes

Welcome to Razorpay! In this guide, you will learn how to sign up for a Razorpay account and obtain API keys necessary for integrating Razorpay into your website or application.

RAZORPAY PAYMENT

Razorpay is the only payments solution in India which allows businesses to accept, process and disburse payments with its product suite.It gives you access to all payment modes including credit card, debit card, netbanking, UPI and popular wallets including JioMoney, Mobikwik, Airtel Money, FreeCharge, Ola Money and PayZapp. Manage your marketplace, automate NEFT/RTGS/IMPS bank transfers, collect recurring payments, share invoices with customers – all from a single platform. Fast forward your business with Razorpay.

Click here For more details about Razorpay payment gateway

If you have an existing Razorpay Developer Account Log in to the account.

Otherwise, Sign up and create a new business account.

Obtain API Keys

1.You have to click the link to login

2. After that you have to click on the Account & Settings option.

3. Select the API keys. We’ve included a screenshot below.

4.You will click on regenerated test key then a dialog will open in which Key Id and key Key Secret be generated. We’ve included a screenshot below.

NOTE

If you close the TEST MODE switch. Then you will get Live Key Id and Key Secret.

Add Generated Keys To Admin Panel

Now you’ve successfully generated keys please navigate to Admin Panel and follow the steps mentioned below

  • Navigate to Settings → Payment Method.
  • Enable the switch for Razorpay Payment.
  • Paste Secret Key under the Secret Key field and Key Id under the App key fields.
  • Save the changes.

TIP

Congratulations! Your Razorpay configuration is done.

Test RazorPay

Here we have provided some of testing credentials for App –

If you want to add your new payment gateway then buy our paid support for the same.

Use Only in Test Mode

You can use these test cards to make payments in test mode only. Using these for live mode payments will throw card issuer is invalid or invalid card input error.

Test Cards Details for RazorPay payment

There are several test cards you can use in test mode to make sure this integration is ready. Use them with any CVC, postal code, and future expiration date.

Card NumberExpiry DateCVVCardholder Name
4111 1111 1111 111112/25123Test User

Remove Razorpay Payment

REMOVE RAZORPAY PAYMENT

  • We are recommended you to follow only second Step if you don’t know about dependency and code

If you want to remove Razorpay payment gateway option then follow below Steps:

Step 1- Go to pubspec.yaml and remove the ‘razorpay_flutter: LATEST_VERSION’ from the file

razorpay_flutter: LATEST_VERSION

NOTE

If you have to remove dependency from pubspec.yaml then hit the pub get command. now, remove the code related to razorpay_flutter.