Skip to content

Commit

Permalink
fix(alipay): add 'string' as an alternative type for 'pay()' input pa…
Browse files Browse the repository at this point in the history
…rameter; (#2172)

change 'installVariables' name to 'ALI_PID' for Alipay cordova plugin
  • Loading branch information
jing-zhou authored and ihadeed committed Dec 8, 2017
1 parent c038c63 commit d43fe72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/@ionic-native/plugins/alipay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>} Returns a Promise that resolves with the success return, or rejects with an error.
*/
@Cordova()
pay(order: AlipayOrder): Promise<any> { return; }
pay(order: AlipayOrder | string): Promise<any> { return; }
}

0 comments on commit d43fe72

Please sign in to comment.