Search docs/
Getting StartedPlugins

Alipay

This plugin facilitates the usage of Alipay 支付寶 in an Ionic apps with the integrated AlipaySDK dated on 20180601.

Requires Cordova plugin: cordova-plugin-gubnoi-alipay. For more info, please see https://github.com/jing-zhou/cordova-plugin-alipay .

https://github.com/jing-zhou/cordova-plugin-alipay

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Contact Us Today!

Installation

ionic cordova plugin add cordova-plugin-gubnoi-alipaynpm install @ionic-native/alipaynpm install cordova-plugin-gubnoi-alipaynpm install @ionic-native/alipayionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS

Usage

React

See here.

Angular

import { Alipay } from '@ionic-native/alipay/ngx';

constructor(private alipay: Alipay) {

//alipayOrder is a string that has been generated and signed by the server side.
this.alipay.pay(alipayOrder, success, error)
   .then(result => {
      console.log(result); // Success
   })
   .catch(error => {
      console.log(error); // Failed
   });

}
欧美牲交a欧美牲交aⅴ免费真_欧美日韩亚洲第一区在线_欧美日韩无线码免费