From ad04d84543c2ebfbdba5644173c3786e877bb869 Mon Sep 17 00:00:00 2001 From: Max Lynch <max@ionic.io> Date: Mon, 13 Sep 2021 16:57:40 -0500 Subject: [PATCH] Removed alipay - unusued --- src/@ionic-native/plugins/alipay/index.ts | 50 ----------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/@ionic-native/plugins/alipay/index.ts diff --git a/src/@ionic-native/plugins/alipay/index.ts b/src/@ionic-native/plugins/alipay/index.ts deleted file mode 100644 index f4273601c..000000000 --- a/src/@ionic-native/plugins/alipay/index.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - -/** - * @name Alipay - * @description - * 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 . - * - * @usage - * ```typescript - * 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 - * }); - * - * } - * - * ``` - */ -@Plugin({ - pluginName: 'Alipay', - plugin: 'cordova-plugin-gubnoi-alipay', - pluginRef: 'cordova.plugins.alipay', - repo: 'https://github.com/jing-zhou/cordova-plugin-alipay', - install: 'ionic cordova plugin add cordova-plugin-gubnoi-alipay --variable APP_ID=your_app_id', - installVariables: ['APP_ID'], - platforms: ['Android', 'iOS'], -}) -@Injectable() -export class Alipay extends IonicNativePlugin { - /** - * Open Alipay to perform App pay - * @param {string} order alipay order string - * @returns {Promise<any>} Returns a Promise that resolves with the success return, or rejects with an error. - */ - @Cordova() - pay(order: string, success?: (res?: any) => void, error?: (err?: any) => void): Promise<any> { - return; - } -}