From d43fe72f7ba19cabd015f11b90d89718fa492f29 Mon Sep 17 00:00:00 2001 From: jing-zhou Date: Sat, 9 Dec 2017 04:10:31 +0800 Subject: [PATCH] fix(alipay): add 'string' as an alternative type for 'pay()' input parameter; (#2172) change 'installVariables' name to 'ALI_PID' for Alipay cordova plugin --- src/@ionic-native/plugins/alipay/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/@ionic-native/plugins/alipay/index.ts b/src/@ionic-native/plugins/alipay/index.ts index 219b7b3a8..c0e517e61 100644 --- a/src/@ionic-native/plugins/alipay/index.ts +++ b/src/@ionic-native/plugins/alipay/index.ts @@ -101,17 +101,17 @@ export interface AlipayOrder { plugin: 'cordova-alipay-base', pluginRef: 'Alipay.Base', repo: 'https://github.com/xueron/cordova-alipay-base', - install: 'ionic cordova plugin add cordova-alipay-base --variable APP_ID=your_app_id', - installVariables: ['APP_ID'], + install: 'ionic cordova plugin add cordova-alipay-base --variable ALI_PID=your_app_id', + installVariables: ['ALI_PID'], platforms: ['Android', 'iOS'] }) @Injectable() export class Alipay extends IonicNativePlugin { /** * Open Alipay to perform App pay - * @param order { AlipayOrder } alipay options + * @param order { AlipayOrder | string } alipay options * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova() - pay(order: AlipayOrder): Promise { return; } + pay(order: AlipayOrder | string): Promise { return; } }