Widget | Mechanism | Support |
TwoCheckoutGatewayWeb | Webview | ios, android, web |
Getting started
– Create an 2Checkout account to use 2Checkout’s services: https://www.2checkout.com/solutions/developers-and-it/
Usage
Follow this steps:
Woocommerce website:
Add 2Checkout plugin to your Woocommerce:
- Download or clone the extension from Github.
- After downloading the .zip archive, open it and extract the folders twocheckout-convert-plus,… Archive twocheckout-convert-plus folders separately as a .zip file.
- Copy the folder to your WordPress ‘plugins’ directory under ‘/wp-content/plugins’.
- Log in to your WordPress admin, navigate to Plugins and click on Add new.
- On the Add plugins page, click on Upload plugin, then hit Choose File then choose twocheckout-convert-plus.zip and click on Install Now.
- On the Plugins page activate the modules for ConvertPlus by checking the boxes and clicking on the Apply button.
- Go back to the Dashboard, scroll down to WooCommerce, and click on Settings.
- Under WooCommerce – Settings, click on the Payments tab.
- Enable only 2Checkout Convert Plus Payment Gateway(don’t enable another method of 2Checkout) then click on Set up to configure each module. See here how you can configure each module
- Click Save Changes.
Mobile app:
- Copy two_check_out_gateway package and add to packages folder in cirilla project.
- Import package in
cirilla/pubspec.yaml
Example:
two_check_out_gateway:
path: ./packages/two_check_out_gateway
Then run flutter pub get in your project
- Add TwoCheckoutGatewayWeb(web view) to
cirilla
/lib/payment_method.dart file (remember import package like example)
Example:
import 'package:two_check_out_gateway/two_checkout_gateway_web.dart';
final Map<String, PaymentBase> methods = {
TwoCheckoutGatewayWeb.key: TwoCheckoutGatewayWeb(),
};