pockyt_pay 0.5.0 copy "pockyt_pay: ^0.5.0" to clipboard
pockyt_pay: ^0.5.0 copied to clipboard

A flutter payment plugin that supports both WeChat Pay and Alipay

Introduction #

pockyt_pay is a flutter plugin for WeChat Pay and Alipay.

Getting Started #

  • Register on the WeChat Open Platform, complete developer authentication, create an application, and obtain the appID.
  • For iOS, configure the universal link in the WeChat Open Platform. document
  • For Android, configure the package name and signature in the WeChat Open Platform. signature apk

Configuration #

  • Configure the plugin in the pubspec.yaml file.
dependencies:
  pockyt_pay: ^${lastest_version}
  
pockyt:
  app_id: ${wechat app id}
  url_scheme: ${alipay url scheme, unique string}
  ios:
    universal_link: ${wechat universal link}
  • Install for iOS
# step.1 install missing dependencies
sudo gem install plist
# step.2 enter iOS folder(example/ios/,ios/)
cd example/ios/
# step.3 execute
pod install

How to use #

  • Only four steps are needed to complete the payment call
// Create a PockytPay instance
PockytPay pockyt = PockytPay();
// Subscribe to payment result events
pockyt.onSubscriber();
// Request Alipay or Wechat Pay
pockyt.requestAlipay();
pockyt.requestWechatPay();
// Cancel subscription
pockyt.offSubscriber();
  • Please refer to the example code for detailed usage instructions Example
1
likes
0
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter payment plugin that supports both WeChat Pay and Alipay

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on pockyt_pay

Packages that implement pockyt_pay