UNPKG

capacitor-plugin-cashfree-pg

Version:

A modern Capacitor plugin for Cashfree Payment Gateway with official API contract support

35 lines (28 loc) 1.45 kB
var capacitorCFPaymentGateway = (function (exports, core) { 'use strict'; class CFPaymentGatewayWeb extends core.WebPlugin { async doWebCheckoutPayment(webCheckoutPaymentObject) { console.log('DO_WEB_PAYMENT', webCheckoutPaymentObject); throw new Error('Cashfree Payment Gateway is not supported on web platform. Use it on mobile devices only.'); } async doUPIPayment(upiCheckoutPaymentObjections) { console.log('DO_UPI_PAYMENT', upiCheckoutPaymentObjections); throw new Error('UPI Payment is not supported on web platform. Use it on mobile devices only.'); } async doSubscriptionPayment(subscriptionCheckoutPaymentObject) { console.log('DO_SUBSCRIPTION_PAYMENT', subscriptionCheckoutPaymentObject); throw new Error('Subscription Payment is not supported on web platform. Use it on mobile devices only.'); } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, CFPaymentGatewayWeb: CFPaymentGatewayWeb }); const CFPaymentGateway = core.registerPlugin('CFPaymentGateway', { web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.CFPaymentGatewayWeb()), }); exports.CFPaymentGateway = CFPaymentGateway; exports.CFPaymentGatewayWeb = CFPaymentGatewayWeb; return exports; })({}, capacitorExports); //# sourceMappingURL=plugin.js.map