MercadoPago Mobile Checkout Integration
🌟 Features
- MercadoPago's SDK integrated, supporting Mobile Checkout
- Easy to install
- Easy to integrate
- PCI compliance
- Android Support
- IOS Support
📲 How to Install
To use this plugin, add mercado_pago_integration
as a dependency in your pubspec.yaml file.
🐒 How to use
Only 4 steps needed to create a basic checkout using mercado_pago_integration
:
1 - Import into the project
import 'package:mercado_pago_integration/mercado_pago_integration.dart';
2 - Set your PublicKey
and AccessToken
In order to start a new mobile checkout, you need to have a Public_Key & AccessToken
3 - Create your checkout preference configuration
See the example below, if you want more information, here is the official documentation.
final Map<String, Object> preferenceMap = {
'items': [
{
'title': 'Test Product',
'description': 'Description',
'quantity': 3,
'currency_id': 'ARS',
'unit_price': 1500,
}
],
'payer': {'name': 'Buyer G.', 'email': 'test@gmail.com'},
};
4 - Start Mobile Checkout
MercadoPagoIntegration.startCheckout(
publicKey: "[Your_Mercado_Pago_Public_Key]",
preference: preferenceMap,
accessToken: "[Your_Mercado_Pago_Access_Token]",
);
IOS Integration
1 - Update Podfile
platform :ios, '10.0'
2 - Update AppDelegate.swift
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
var navigationController: UINavigationController?;
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
let flutterViewController: FlutterViewController = window?.rootViewController as! FlutterViewController
self.navigationController = UINavigationController(rootViewController: flutterViewController);
self.window = UIWindow(frame: UIScreen.main.bounds);
self.window.rootViewController = self.navigationController;
self.window.makeKeyAndVisible();
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
Responses
To Be Defined
📋 Supported OS & SDK Versions
- iOS 10.0
- Addroid minSdk 19
🔮 Project Example
This project includes an example project using Mercado Pago Integration, checkout example
folder. In case you need support contact the Caramel Point Developers Site.
👨🏻💻 Author
Caramel Point
👮🏻 License
MIT License
Copyright (c) CaramelPoint Inc
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Libraries
Dart
- dart:ui
- Built-in types and core primitives for a Flutter application. [...]
- dart:async
- Support for asynchronous programming, with classes such as Future and Stream. [...]
- dart:collection
- Classes and utilities that supplement the collection support in dart:core. [...]
- dart:convert
- Encoders and decoders for converting between different data representations, including JSON and UTF-8. [...]
- dart:core
- Built-in types, collections, and other core functionality for every Dart program. [...]
- dart:developer
- Interact with developer tools such as the debugger and inspector. [...]
- dart:math
- Mathematical constants and functions, plus a random number generator. [...]
- dart:typed_data
- Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types. [...]
- dart:ffi
- Foreign Function Interface for interoperability with the C programming language. [...]
- dart:io
- File, socket, HTTP, and other I/O support for non-web applications. [...]
- dart:isolate
- Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages. [...]
- dart:html
- HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
- dart:js
- Low-level support for interoperating with JavaScript. [...]
- dart:js_util
-
Utility methods to manipulate
package:js
annotated JavaScript interop objects in cases where the name to call is not known at runtime. [...]