mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
docs(alipay): fix wrong jsdoc
This commit is contained in:
parent
2fda70a3c6
commit
348dbb85b3
@ -1,7 +1,5 @@
|
|||||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
|
|
||||||
export interface AlipayOrder {
|
export interface AlipayOrder {
|
||||||
/**
|
/**
|
||||||
@ -101,7 +99,8 @@ export interface AlipayOrder {
|
|||||||
plugin: 'cordova-alipay-base',
|
plugin: 'cordova-alipay-base',
|
||||||
pluginRef: 'Alipay.Base',
|
pluginRef: 'Alipay.Base',
|
||||||
repo: 'https://github.com/xueron/cordova-alipay-base',
|
repo: 'https://github.com/xueron/cordova-alipay-base',
|
||||||
install: 'ionic cordova plugin add cordova-alipay-base --variable ALI_PID=your_app_id',
|
install:
|
||||||
|
'ionic cordova plugin add cordova-alipay-base --variable ALI_PID=your_app_id',
|
||||||
installVariables: ['ALI_PID'],
|
installVariables: ['ALI_PID'],
|
||||||
platforms: ['Android', 'iOS']
|
platforms: ['Android', 'iOS']
|
||||||
})
|
})
|
||||||
@ -109,9 +108,11 @@ export interface AlipayOrder {
|
|||||||
export class Alipay extends IonicNativePlugin {
|
export class Alipay extends IonicNativePlugin {
|
||||||
/**
|
/**
|
||||||
* Open Alipay to perform App pay
|
* Open Alipay to perform App pay
|
||||||
* @param order { AlipayOrder | string } alipay options
|
* @param { AlipayOrder | string } order alipay options
|
||||||
* @returns {Promise<any>} Returns a Promise that resolves with the success return, or rejects with an error.
|
* @returns {Promise<any>} Returns a Promise that resolves with the success return, or rejects with an error.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
pay(order: AlipayOrder | string): Promise<any> { return; }
|
pay(order: AlipayOrder | string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user