Widget | Mechanism | Support |
WalletGateway | Native library | ios, android |
Note
When you use the wallet, you need to login to the application.
Usage
Follow this steps:
Woocommerce website:
Add Wallet plugin to your Woocommerce:
- Go to WordPress Admin > Plugins > Add New from the left-hand menu
- In the search box type TeraWallet – Best WooCommerce Wallet System With Cashback Rewards, Partial Payment, Wallet Refunds
- Click on Install now when you see TeraWallet – Best WooCommerce Wallet System With Cashback Rewards, Partial Payment, Wallet Refunds to install the plugin
- Config plugin according instructions
- Go to Woocommerce -> Setting -> Tab Payments: enable Wallet – Wallet payment
Plugin guide: https://wordpress.org/plugins/woo-wallet/#installation
Mobile app:
- Copy wallet_gateway package and add to packages folder in cirilla project.
- Import package in
cirilla/pubspec.yaml
Example:
wallet_gateway:
path: ./packages/wallet_gateway
Then run flutter pub get in your project
- Add WalletGateway to
cirilla
/lib/payment_method.dart file (remember import package like example)
Example:
import 'package:cirilla/utils/currency_format.dart';
import 'package:wallet_gateway/wallet_gateway.dart';
import 'service/constants/endpoints.dart';
final Map<String, PaymentBase> methods = {
WalletGateway.key: WalletGateway(
restUrl: Endpoints.restUrl,
consumerKey: Endpoints.consumerKey,
consumerSecret: Endpoints.consumerSecret,
formatCurrency: formatCurrency,
),
};