| Widget | Mechanism | Support |
| CashfreeGateway | Webview | ios, android |
Getting started
Document: https://docs.cashfree.com/docs
Create an Cashfree account to use Cashfree’s services: Sign Up
Usage
Follow this steps:
Woocommerce website:
Add Cashfree plugin to your Woocommerce:
- download this plugin at: https://wordpress.org/plugins/cashfree/
- Go to WordPress Admin > Plugins > Add New from the left-hand menu > Upload plugin from the top menu
- Click on Install to install the plugin
- Config plugin according instructions
- Go to Woocommerce -> Setting -> Tab Payments: enable Cashfree Payments
Package Setup
- Copy cashfree_gateway package and add to packages folder in cirilla project.
- Import package in
cirilla/pubspec.yaml
Example:
cashfree_gateway:
path: ./packages/cashfree_gateway
Then run flutter pub get in your project
- Add CashfreeGateway to
cirilla/lib/payment_method.dartfile ( use only one of them and remember import package like example)
import 'package:cashfree_gateway/cashfree_gateway.dart';
import 'package:cirilla/utils/currency_format.dart';
final Map<String, PaymentBase> methods = {
CashfreeGateway.key: CashfreeGateway(
formatCurrency: formatCurrency,
),
};
Available Currencies:
https://docs.cashfree.com/docs/currencies-supported
| Currency Code | Description |
|---|---|
| INR | Indian Rupee |
| USD | US Dollar |
| BDT | Bangladesh Taka |
| GBP | Pound Sterling |
| AED | UAE Dirham |
| AUD | Australian Dollar |
| BHD | Bahraini Dinar |
| CAD | Canadian Dollar |
| CHF | Swiss Franc |
| DKK | Danish Krone |
| EUR | Euro |
| HKD | Hong Kong Dollar |
| JPY | Japanese Yen |
| KES | Kenya Shiling |
| KWD | Kuwaiti Dinar |
| LKR | Srilanka Rupee |
| MUR | Mauritius Rupee |
| MYR | Malaysian Ringgit |
| NOK | Norwegian Krone |
| NPR | Nepalese Rupee |
| NZD | New Zealand Dollar |
| OMR | Rial Omani |
| QAR | Qatari Rial |
| SAR | Saudi Riyal |
| SEK | Swedish Krona |
| SGD | Singapore Dollar |
| THB | Thai Baht |
| ZAR | South African Rand |
Result: