Improve this doc

$ ionic plugin add --variable APP_ID=your_app_id
$ npm install --save @ionic-native/alipay


This plugin is used for Alipay APP support. Integrated with the latest SDK.

Requires Cordova plugin: cordova-alipay-base. For more info, please see the Alipay plugin docs.

Supported platforms


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

constructor(private alipay: Alipay) {

// Should get from server side with sign.
const alipayOrder: AlipayOrder = {
   .then(result => {
      console.log(result); // Success
   .catch(error => {
      console.log(error); // Failed


Instance Members


Open Alipay to perform App pay

Param Type Details
order AlipayOrder

alipay options

Returns: Promise<any> Returns a Promise that resolves with the success return, or rejects with an error.


Param Type Details
app_id string

appId assigned by Alipay

method string

Api name. Should be:

format string

Data format Default: "JSON"

charset string

Charset Possible values: "UTF-8", "GBK" Default: "UTF-8"

sign_type string

Sign method Default: 'RSA'

sign string

Sign value. Should be got from server side. Default: 'RSA'

timestamp string

Timestamp, formated like "yyyy-MM-dd HH:mm:ss", e.g. 2014-07-24 03:07:50

version string

Api version. Fixed value '1.0'

notify_url string

Notify url.

biz_content string

biz content. formated in json. see alipay doc for detail.