Widget | Mechanism | Support |
PayStackGateway | Native library | ios, android |
PayStackGatewayWeb | Webview | ios, android, web |
Getting started
– Create an PayStack account to use PayStack’s services: https://paystack.com/
Usage
Follow this steps:
Woocommerce website:
Add PayStack plugin to your Woocommerce:
- Go to WordPress Admin > Plugins > Add New from the left-hand menu
- In the search box type Paystack WooCommerce Payment Gateway
- Click on Install now when you see Paystack WooCommerce Payment Gateway to install the plugin
- Config plugin according instructions
- Go to Woocommerce -> Setting -> Tab Payments: enable PayStack
PayStack plugin guide: https://wordpress.org/plugins/woo-paystack/#installation
Mobile app:
- Copy paystack_gateway package and add to packages folder in cirilla project.
- Import package in
cirilla/pubspec.yaml
Example:
paystack_gateway:
path: ./packages/paystack_gateway
Then run flutter pub get in your project
- Add PayStackGateway(native view) or PayStackGatewayWeb(web view) to
cirilla/lib/payment_method.dart
file ( use only one of them and remember import package like example)
Example:
import 'package:paystack_gateway/paystack_gateway.dart';
final Map<String, PaymentBase> methods = {
PayStackGateway.key: PayStackGateway(),
};
Or
import 'package:paystack_gateway/paystack_gateway_web.dart';
final Map<String, PaymentBase> methods = {
PayStackGatewayWeb.key: PayStackGatewayWeb(),
};
Available Currencies
Country | Available Currencies |
Ghana | GHS |
Nigeria | NGN, USD |
South Africa | ZAR |