{"version":3,"sources":["webpack:///./tsScripts/PaymentMethods/stripeCardOrSubPaymentRequest.ts"],"names":["StripeCardOrSubPaymentRequest","config","key","getPayAmount","readCookie","isOrderFulfilled","document","getElementById","addEventListener","openPaymentModal","emailInputElement","validateEmail","clearEmailValidation","modal","clearPaymentMessage","cancelButton","currentStep","modalClose","nextButton","e","getOrCreateCustomer","customerId","mountPaymentElement","submitPayment","showStep","this","querySelector","modalOverlay","paymentMessage","bind","spinner","paymentForm","modalTitle","currentAmount","addEvents","isBlank","str","test","general","stripeConnectId","trim","stripe","window","Stripe","stripeAccount","classList","toggle","remove","add","pages","querySelectorAll","i","len","length","parseInt","getAttribute","textContent","preventDefault","emailValidationMessageElement","isValid","value","setLoading","createCustomerRequest","companyId","demo","demoMode","email","fetch","method","headers","body","JSON","stringify","emailResponse","json","customerEmail","createPaymentIntentRequest","currencyCode","isoCurrencySymbol","toLowerCase","amount","unitValue","interactionId","goalType","goalTypeInt","version","description","paymentDescription","meta","isSubscription","subscriptionPlanId","planID","response","clientSecretKey","paymentIntentId","appearance","theme","elements","clientSecret","create","wallets","applePay","googlePay","mount","confirmPayment","confirmParams","return_url","stripeRedirectUrl","error","type","showPaymentMessage","message","URLSearchParams","location","search","get","retrievePaymentIntent","paymentIntent","status","messageText","isLoading","disabled"],"mappings":"geACA,60O,OAAA,IADMA,EAA6B,WAuB/B,WAAYC,EAAaC,EAAaC,EAAwBC,EAAsBC,GAA4B,YAtBpH,4FAsBoH,4kBAwCpG,WACUC,SAASC,eAAe,gBAEhCC,iBAAiB,QAAS,EAAKC,kBAEzC,IAAMC,EAAoBJ,SAASC,eAAe,SAClDG,EAAkBF,iBAAiB,YAAY,WAC3C,EAAKG,cAAcD,MAEvBA,EAAkBF,iBAAiB,SAAS,WACxC,EAAKI,qBAAqBF,MAG9B,EAAKG,MAAML,iBAAiB,SAAS,WACjC,EAAKM,yBAGT,EAAKC,aAAaP,iBAAiB,SAAS,WAExC,OADA,EAAKQ,YAAc,EACZ,EA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ED,WACI9F,KAAKG,eAAeiB,UAAUG,IAAI,UAClCvB,KAAKG,eAAe4B,YAAc,KAGtC,wBACA,SAAWgE,GACHA,GAEA/F,KAAKP,WAAWuG,UAAW,EAC3BhG,KAAKV,aAAa0G,UAAW,EAC7BhG,KAAKK,QAAQe,UAAUE,OAAO,UAC9BtB,KAAKM,YAAYc,UAAUG,IAAI,YAE/BvB,KAAKP,WAAWuG,UAAW,EAC3BhG,KAAKV,aAAa0G,UAAW,EAC7BhG,KAAKK,QAAQe,UAAUG,IAAI,UAC3BvB,KAAKM,YAAYc,UAAUE,OAAO,gBAtU9C,8EAwUK,EAzU8B,GA4UpB/C","file":"stripeCardOrSubPaymentRequest.267988cd0f0144282b8e.js","sourcesContent":["class StripeCardOrSubPaymentRequest {\r\n\r\n config: any;\r\n key: string;\r\n currentAmount: Function;\r\n readCookie: Function;\r\n isBlank: Function;\r\n isOrderFulfilled: Function;\r\n elements: any;\r\n stripe: any;\r\n paymentIntentId: string;\r\n modal: HTMLElement;\r\n modalOverlay: HTMLElement;\r\n paymentMessage: HTMLElement;\r\n nextButton: HTMLButtonElement;\r\n cancelButton: HTMLButtonElement;\r\n customerId: string;\r\n spinner: HTMLElement;\r\n paymentForm: HTMLElement;\r\n currentStep: number;\r\n modalTitle: HTMLElement;\r\n customerEmail: string;\r\n\r\n constructor(config: any, key: string, getPayAmount: Function, readCookie: Function, isOrderFulfilled: Function) {\r\n this.config = config;\r\n this.key = key;\r\n\r\n this.modal = document.querySelector(\"#stripe-modal\");\r\n this.modalOverlay = document.querySelector(\"#stripe-modal-overlay\");\r\n \r\n this.paymentMessage = document.querySelector(\"[data-payment-response-message]\");\r\n\r\n this.nextButton = document.querySelector(\"[data-button-next]\");\r\n this.cancelButton = document.querySelector(\"[data-button-cancel]\");\r\n\r\n this.openPaymentModal = this.openPaymentModal.bind(this);\r\n this.modalClose = this.modalClose.bind(this);\r\n\r\n this.spinner = document.querySelector(\".spinner-container\");\r\n this.paymentForm = document.querySelector(\"#payment-form\");\r\n this.modalTitle = document.querySelector(\".modal-header h4\");\r\n\r\n this.currentStep = 1;\r\n\r\n this.currentAmount = () => {\r\n return getPayAmount();\r\n }\r\n this.addEvents();\r\n this.readCookie = readCookie;\r\n this.isOrderFulfilled = isOrderFulfilled;\r\n this.isBlank = (str) => {\r\n return (!str || /^\\s*$/.test(str));\r\n }\r\n if (config.general.stripeConnectId && config.general.stripeConnectId.trim()) {\r\n this.stripe = (window).Stripe(key,\r\n {\r\n stripeAccount: config.general.stripeConnectId\r\n }) as any;\r\n } else {\r\n this.stripe = (window).Stripe(key) as any; // Get stripe from Global window.\r\n }\r\n }\r\n\r\n addEvents = () => {\r\n const stripeBtn = document.getElementById(\"stripeButton\") as HTMLButtonElement;\r\n\r\n stripeBtn.addEventListener(\"click\", this.openPaymentModal);\r\n\r\n const emailInputElement = document.getElementById(\"email\") as HTMLInputElement;\r\n emailInputElement.addEventListener(\"focusout\", () => {\r\n this.validateEmail(emailInputElement);\r\n });\r\n emailInputElement.addEventListener(\"input\", () => {\r\n this.clearEmailValidation(emailInputElement);\r\n });\r\n\r\n this.modal.addEventListener(\"click\", () => {\r\n this.clearPaymentMessage();\r\n });\r\n\r\n this.cancelButton.addEventListener(\"click\", () => {\r\n this.currentStep = 1;\r\n return this.modalClose();\r\n });\r\n\r\n this.nextButton.addEventListener(\"click\", async (e) => {\r\n \r\n if (this.currentStep === 1) {\r\n await this.getOrCreateCustomer(e);\r\n\r\n if (this.customerId == null)\r\n return;\r\n\r\n await this.mountPaymentElement();\r\n } else if (this.currentStep === 2) {\r\n const error = await this.submitPayment(e);\r\n\r\n if (error !== null)\r\n return;\r\n }\r\n\r\n this.currentStep++;\r\n this.showStep();\r\n });\r\n }\r\n\r\n modalClose() {\r\n this.modal.classList.toggle(\"closed\");\r\n this.modalOverlay.classList.toggle(\"closed\");\r\n this.modal.classList.remove(\"stripe-modal-full\");\r\n this.modal.classList.add(\"stripe-modal-compact\");\r\n }\r\n\r\n showStep() {\r\n const pages = document.querySelectorAll(\"[data-step]\");\r\n\r\n for (var i = 0, len = pages.length; i < len; i++) {\r\n const dataStep = parseInt(pages[i].getAttribute(\"data-step\"));\r\n\r\n if (dataStep === this.currentStep) {\r\n pages[i].classList.remove(\"hidden\");\r\n this.modalTitle.textContent = pages[i].getAttribute(\"data-step-title\");\r\n this.nextButton.textContent = pages[i].getAttribute(\"data-step-next-button\");\r\n } else {\r\n pages[i].classList.add(\"hidden\");\r\n }\r\n \r\n }\r\n }\r\n\r\n async openPaymentModal(e: Event) {\r\n\r\n await this.showStep();\r\n \r\n this.modal.classList.toggle(\"closed\");\r\n this.modalOverlay.classList.toggle(\"closed\");\r\n \r\n this.modal.classList.remove(\"stripe-modal-full\");\r\n this.modal.classList.add(\"stripe-modal-compact\");\r\n \r\n e.preventDefault();\r\n }\r\n \r\n clearEmailValidation(emailInputElement: HTMLInputElement) {\r\n const emailValidationMessageElement = document.querySelector(\"[data-email-validation-message]\") as HTMLSpanElement;\r\n\r\n // Reset validation element\r\n emailValidationMessageElement.textContent = \"\";\r\n emailValidationMessageElement.classList.remove(\"input__helper-text-error\");\r\n emailInputElement.classList.remove(\"input-invalid\");\r\n }\r\n\r\n validateEmail(emailInputElement: HTMLInputElement):boolean {\r\n let isValid = true;\r\n const emailValidationMessageElement = document.querySelector(\"[data-email-validation-message]\") as HTMLSpanElement;\r\n\r\n this.clearEmailValidation(emailInputElement);\r\n\r\n if (emailInputElement.value === \"\" || emailInputElement.value == null) {\r\n emailValidationMessageElement.textContent = \"Please enter an email address\";\r\n emailValidationMessageElement.classList.add(\"input__helper-text-error\");\r\n emailInputElement.classList.add(\"input-invalid\");\r\n isValid = false;\r\n }\r\n\r\n return isValid;\r\n }\r\n\r\n async getOrCreateCustomer(e) {\r\n e.preventDefault();\r\n\r\n this.setLoading(true);\r\n\r\n const emailInputElement = document.getElementById(\"email\") as HTMLInputElement;\r\n\r\n const isValid = this.validateEmail(emailInputElement);\r\n\r\n if (!isValid) {\r\n this.setLoading(false);\r\n return;\r\n }\r\n \r\n // Create customer\r\n const createCustomerRequest: object = {\r\n companyId: this.config.general.companyId,\r\n demo: this.config.general.demoMode,\r\n email: emailInputElement.value,\r\n };\r\n\r\n const emailResponse = await fetch(\"/Stripe/GetOrCreateCustomer\", {\r\n method: \"POST\",\r\n headers: { \"Content-Type\": \"application/json\" },\r\n body: JSON.stringify(createCustomerRequest),\r\n });\r\n\r\n const { customerId } = await emailResponse.json();\r\n\r\n this.customerId = customerId;\r\n this.customerEmail = emailInputElement.value;\r\n \r\n this.setLoading(false);\r\n }\r\n\r\n async mountPaymentElement() {\r\n\r\n this.setLoading(true);\r\n\r\n const createPaymentIntentRequest: object = {\r\n demo: this.config.general.demoMode,\r\n currencyCode: this.config.general.isoCurrencySymbol.toLowerCase(),\r\n amount: this.currentAmount().unitValue,\r\n interactionId: this.config.general.interactionId,\r\n goalType: this.config.general.goalTypeInt,\r\n version: this.config.general.version,\r\n description: this.config.general.paymentDescription,\r\n companyId: this.config.general.companyId,\r\n customerId: this.customerId,\r\n meta: this.config.general.meta,\r\n isSubscription: this.config.general.isSubscription,\r\n subscriptionPlanId: this.config.general.planID\r\n };\r\n\r\n const response = await fetch(\"/Stripe/CreatePaymentIntent\", {\r\n method: \"POST\",\r\n headers: { \"Content-Type\": \"application/json\" },\r\n body: JSON.stringify(createPaymentIntentRequest),\r\n });\r\n\r\n const { clientSecretKey, paymentIntentId } = await response.json();\r\n\r\n this.paymentIntentId = paymentIntentId;\r\n\r\n const appearance = {\r\n theme: 'stripe',\r\n };\r\n\r\n this.elements = this.stripe.elements({ appearance, clientSecret: clientSecretKey });\r\n\r\n this.setLoading(false);\r\n\r\n const paymentElement = this.elements.create(\"payment\", { wallets: { applePay: 'never', googlePay: 'never' } });\r\n paymentElement.mount(\"#payment-element\");\r\n }\r\n\r\n async submitPayment(e) {\r\n e.preventDefault();\r\n\r\n this.setLoading(true);\r\n \r\n const elements = this.elements;\r\n\r\n const { error } = await this.stripe.confirmPayment({\r\n elements,\r\n confirmParams: {\r\n // Make sure to change this to your payment completion page\r\n return_url: `${this.config.general.stripeRedirectUrl}&donationAmount=${this.currentAmount().value}&email=${this.customerEmail}`\r\n },\r\n });\r\n\r\n // This point will only be reached if there is an immediate error when\r\n // confirming the payment. Otherwise, your customer will be redirected to\r\n // your `return_url`. For some payment methods like iDEAL, your customer will\r\n // be redirected to an intermediate site first to authorize the payment, then\r\n // redirected to the `return_url`.\r\n if (error.type === \"card_error\" || error.type === \"validation_error\") {\r\n this.showPaymentMessage(error.message);\r\n } else {\r\n this.showPaymentMessage(\"An unexpected error occurred. Please try again later.\");\r\n }\r\n\r\n this.setLoading(false);\r\n\r\n return error;\r\n }\r\n \r\n // Fetches the payment intent status after payment submission\r\n async checkStatus() {\r\n const clientSecret = new URLSearchParams(window.location.search).get(\r\n \"payment_intent_client_secret\"\r\n );\r\n\r\n if (!clientSecret) {\r\n return;\r\n }\r\n\r\n const { paymentIntent } = await this.stripe.retrievePaymentIntent(clientSecret);\r\n \r\n switch (paymentIntent.status) {\r\n case \"succeeded\":\r\n this.showPaymentMessage(\"Payment succeeded!\");\r\n break;\r\n case \"processing\":\r\n this.showPaymentMessage(\"Your payment is processing.\");\r\n break;\r\n case \"requires_payment_method\":\r\n this.showPaymentMessage(\"Your payment was not successful, please try again.\");\r\n break;\r\n default:\r\n this.showPaymentMessage(\"Something went wrong.\");\r\n break;\r\n }\r\n }\r\n\r\n // ------- UI helpers -------\r\n\r\n showPaymentMessage(messageText) {\r\n this.paymentMessage.classList.remove(\"hidden\");\r\n this.paymentMessage.textContent = messageText;\r\n }\r\n\r\n clearPaymentMessage() {\r\n this.paymentMessage.classList.add(\"hidden\");\r\n this.paymentMessage.textContent = \"\";\r\n }\r\n\r\n // Show a spinner on payment submission\r\n setLoading(isLoading) {\r\n if (isLoading) {\r\n // Disable the button and show a spinner\r\n this.nextButton.disabled = true;\r\n this.cancelButton.disabled = true;\r\n this.spinner.classList.remove(\"hidden\");\r\n this.paymentForm.classList.add(\"hidden\");\r\n } else {\r\n this.nextButton.disabled = false;\r\n this.cancelButton.disabled = false;\r\n this.spinner.classList.add(\"hidden\");\r\n this.paymentForm.classList.remove(\"hidden\");\r\n }\r\n }\r\n}\r\n\r\nexport default StripeCardOrSubPaymentRequest;\r\n"],"sourceRoot":""}