Widget | Mechanism | Support |
MercadoGateway | Native library | android |
MercadoGatewayWeb | Webview | ios, android, web |
Getting started
– Create an Mercado account to use Mercado’s services: https://www.mercadopago.com.ar/
Usage
Follow this steps:
Woocommerce website:
Add Mercado plugin to your Woocommerce:
- Go to WordPress Admin > Plugins > Add New from the left-hand menu
- In the search box type Mercado Pago payments for WooCommerce
- Click on Install now when you see Mercado Pago payments for WooCommerce to install the plugin
- Config plugin according instructions
- Go to Woocommerce -> Setting -> Tab Payments: enable only Mercado Pago – Checkout Pro (don’t enable another method of Mercado)
- Mercado plugin guide: https://wordpress.org/plugins/woocommerce-mercadopago/
Mobile app:
- Copy mercado_gateway package and add to packages folder in cirilla project.
- Import package in cirilla/pubspec.yaml
Example:
mercado_gateway:
path: ./packages/mercado_gateway
Then run flutter pub get in your project
- Add MercadoGateway(native view) or MercadoGatewayWeb(web view) to cirilla/lib/payment_method.dart file ( use only one of them and remember import package like example)
Example:
import 'package:mercado_gateway/mercado_gateway.dart';
final Map<String, PaymentBase> methods = {
MercadoGateway.key: MercadoGateway(
publicKey: "YOUR_PUBLIC_KEY",
accessToken: "YOUR_ACCESS_TOKEN"
),
};
Note: Get publicKey and accessToken in your mercado profile
Or
import 'package:mercado_gateway/mercado_gateway_web.dart';
final Map<String, PaymentBase> methods = {
MercadoGatewayWeb.key: MercadoGatewayWeb(),
};
Available Currencies
Country | Available Currencies |
Argentina | ARS |
Brazil | BRL |
Chile | CLP |
Colombia | COP |
Mexico | MXN |
Peru | PEN |
Uruguay | UYU |
Issues( with IOS )
Installing mercado_pago_mobile_checkout
- Running pre install hooks
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (MLCardForm)
Fix: https://github.com/Gazer/px-flutter/issues/12#issuecomment-853948677