Widget | Mechanism | Support |
MidtransGatewayWeb | Webview | ios, android, web |
Getting started
– Create an Midtrans account to use Midtrans’s services: https://dashboard.sandbox.midtrans.com/login
Usage
Follow this steps:
Woocommerce website:
Add Midtrans plugin to your Woocommerce:
- Go to WordPress Admin > Plugins > Add New from the left-hand menu
- In the search box type Midtrans-WooCommerce
- Click on Install now when you see Midtrans-WooCommerce to install the plugin
- Config plugin according instructions
- Go to Woocommerce -> Setting -> Tab Payments: only enable Midtrans – Midtrans – All Supported Payment(don’t enable another method of Midtrans )
Midtrans plugin guide: https://wordpress.org/plugins/midtrans-woocommerce/
Mobile app:
- Copy midtrans_gateway package and add to packages folder in cirilla project.
- Import package in
cirilla/pubspec.yaml
Example:
midtrans_gateway:
path: ./packages/midtrans_gateway
Then run flutter pub get in your project
- Add MidtransGatewayWeb(web view) to
cirilla
/lib/payment_method.dart file (remember import package like example)
Example:
import 'package:midtrans_gateway/midtrans_gateway_web.dart';
final Map<String, PaymentBase> methods = {
MidtransGatewayWeb.key: MidtransGatewayWeb(),
};