Widget | Mechanism | Support | Purchase Item |
RazorPayNativeGateway | Native library | ios, android | Payment Gateway Addons |
RazorpayGatewayWeb | Webview | ios, android, web | Cirilla |
Requirement
- Cirilla
v4.1.0
or above - App builder
v5
or above
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:
- Go to WordPress Admin > Plugins > Add New from the left-hand menu
- In the search box type Razorpay for WooCommerce
- Click on Install now when you see Razorpay for WooCommerce to install the plugin
- Config plugin according instructions
- Go to Woocommerce -> Setting -> Tab Payments: enable Razorpay – Credit Card/Debit Card/NetBanking
Plugin guide: https://wordpress.org/plugins/woo-razorpay/#installation
Setting App Builder ( requirement )
Open App builder page from the left sidebar => Click to Integrations on the menu bar => Click to Active
Mobile app:
- Copy razorpay_gateway(web view) or razorpay_native_gateway(native view) package and add to packages folder in cirilla project.
- 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
- 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