UNPKG

@sergdudko/stripe-js

Version:

Supercharge Your Stripe Integration with Enhanced Methods for stripe-js: Take Full Control of Customer Card Management Right from Your Frontend! Elevate Your Payment Processing Capabilities with Ease and Efficiency.

37 lines (36 loc) 2.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StripeExtension = void 0; const confirmPaymentIntentByCard_js_1 = require("./confirmPaymentIntentByCard.js"); const confirmPaymentIntentByPaymentMethod_js_1 = require("./confirmPaymentIntentByPaymentMethod.js"); const addSourceToCustomer_js_1 = require("./addSourceToCustomer.js"); const deleteSourceFromCustomer_js_1 = require("./deleteSourceFromCustomer.js"); const getAllCards_js_1 = require("./getAllCards.js"); const getCustomer_js_1 = require("./getCustomer.js"); const setDefaultCard_js_1 = require("./setDefaultCard.js"); const getDefaultCard_js_1 = require("./getDefaultCard.js"); const addPaymentMethodToCustomer_js_1 = require("./addPaymentMethodToCustomer.js"); const deletePaymentMethodFromCustomer_js_1 = require("./deletePaymentMethodFromCustomer.js"); const getAllPaymentMethods_js_1 = require("./getAllPaymentMethods.js"); const setDefaultPaymentMethod_js_1 = require("./setDefaultPaymentMethod.js"); /** * additional stripe methods */ class StripeExtension { constructor(apiKey) { this.confirmPaymentIntentByCard = confirmPaymentIntentByCard_js_1.confirmPaymentIntentByCard; this.confirmPaymentIntentByPaymentMethod = confirmPaymentIntentByPaymentMethod_js_1.confirmPaymentIntentByPaymentMethod; this.addSourceToCustomer = addSourceToCustomer_js_1.addSourceToCustomer; this.deleteSourceFromCustomer = deleteSourceFromCustomer_js_1.deleteSourceFromCustomer; this.getAllCards = getAllCards_js_1.getAllCards; this.getCustomer = getCustomer_js_1.getCustomer; this.setDefaultCard = setDefaultCard_js_1.setDefaultCard; this.getDefaultCard = getDefaultCard_js_1.getDefaultCard; this.addPaymentMethodToCustomer = addPaymentMethodToCustomer_js_1.addPaymentMethodToCustomer; this.deletePaymentMethodFromCustomer = deletePaymentMethodFromCustomer_js_1.deletePaymentMethodFromCustomer; this.getAllPaymentMethods = getAllPaymentMethods_js_1.getAllPaymentMethods; this.setDefaultPaymentMethod = setDefaultPaymentMethod_js_1.setDefaultPaymentMethod; this._apiKey = apiKey; } } exports.StripeExtension = StripeExtension;