1. Home
  2. Docs
  3. Cirilla Payment Gateway Addons
  4. Payment Gateways
  5. Razorpay

Razorpay

WidgetMechanismSupport
RazorPayNativeGatewayNative libraryios, android
RazorpayGatewayWebWebviewios, android, web

Getting started

 – Create an Razorpay account to use Razorpay’s services: https://razorpay.com/

Usage

 Follow this steps:

Woocommerce website:

Add Razorpay plugin to your Woocommerce:

  1. Go to WordPress Admin > Plugins > Add New from the left-hand menu
  2. In the search box type Razorpay for WooCommerce
  3. Click on Install now when you see Razorpay for WooCommerce to install the plugin
  4. Config plugin according instructions
  5. Go to Woocommerce -> Setting -> Tab Payments: enable Razorpay – Credit Card/Debit Card/NetBanking

Plugin guide: https://wordpress.org/plugins/woo-razorpay/#installation

 Mobile app:

  1. Copy razorpay_gateway(web view) or razorpay_native_gateway(native view) package and add to packages folder in cirilla project.
  2. Import package in cirilla/pubspec.yaml

Example: 

For web view:

razorpay_gateway:
  path: ./packages/razorpay_gateway

For native view:

razorpay_native_gateway:
    path: ./packages/razorpay_native_gateway

Then run flutter pub get in your project

  1. Add RazorpayGatewayWeb(web view) or RazorPayNativeGateway(native view) to cirill/lib/payment_method.dart file (remember import package like example)

Example:

import 'package:razorpay_gateway/razorpay_gateway_web.dart';

final Map<String, PaymentBase> methods = {
 RazorpayGatewayWeb.key: RazorpayGatewayWeb(),
};

Or

import 'package:razorpay_native_gateway/razorpay_native_gateway.dart';

final Map<String, PaymentBase> methods = {
 RazorPayNativeGateway.key: RazorPayNativeGateway(),
};

Available Currencies

Available Currencies
INR
USD
EUR
SGD
another…

https://razorpay.com/docs/build/browser/assets/images/international-currency-list.xlsx

Video demo for RazorPayNativeGateway: https://drive.google.com/file/d/1I46xHNfYqdfh-U343dlInOToo2Thvg4W/view?usp=sharing

Was this article helpful to you? Yes No

How can we help?