{ "version": 3, "sources": ["src/@omnial/_payments/paypal.service.ts", "src/@omnial/_payments/securepay.service.ts", "src/@omnial/_models/external/stripe-intent.model.ts", "src/@omnial/_payments/stripe.service.ts"], "sourcesContent": ["import { Injectable } from '@angular/core';\r\nimport { MatSnackBar } from '@angular/material/snack-bar';\r\nimport { Observable } from 'rxjs';\r\nimport { Customer } from 'src/@omnial/_models/customer/customer.model';\r\nimport { PayPalConfig } from 'src/@omnial/_models/external/paypal.config.model';\r\nimport { PaymentResult } from 'src/@omnial/_models/order/payment-result.model';\r\nimport { CustomerService } from 'src/@omnial/_services/customer/customer.service';\r\nimport { KlaviyoService } from 'src/@omnial/_services/external/klaviyo.service';\r\nimport { RepositoryService } from 'src/@omnial/_services/repository.service';\r\n\r\n@Injectable()\r\nexport class PayPalService {\r\n private customer: Customer;\r\n\r\n payPalClientConfig = new Observable((observer) => {\r\n this.repoService.getData(`PaymentPayPal/Config/${this.customer.customerGuid}`).subscribe({\r\n next: (res) => {\r\n const config = res as PayPalConfig;\r\n observer.next(config);\r\n observer.complete();\r\n },\r\n error: (e) => {\r\n const errMessage = 'Sorry PayPal is unavailable. Please try again later';\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 3000 });\r\n observer.error(e);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n\r\n constructor(\r\n public repoService: RepositoryService,\r\n public customerService: CustomerService,\r\n public snackBar: MatSnackBar,\r\n public klaviyoService: KlaviyoService) {\r\n this.customerService.customer.subscribe({ next: (res) => { this.customer = res as Customer; } });\r\n }\r\n\r\n public payPalCapture(customerGuid: string, payPalOrderId: string): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.create(`PaymentPayPal/Capture/${customerGuid}`, JSON.stringify(payPalOrderId)).subscribe({\r\n next: (res) => {\r\n const result = res as PaymentResult;\r\n if (result.success && result.order) {\r\n this.klaviyoService.placedOrder(result.order);\r\n }\r\n observer.next(result);\r\n observer.complete();\r\n },\r\n error: (err) => {\r\n let errMessage = 'Sorry PayPal failed when capturing. ';\r\n if (err && err.msg) {\r\n errMessage += err.msg;\r\n }\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 8000 });\r\n observer.error(err);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public payPalAuthorise(customerGuid: string, payPalOrderId: string): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.create(`PaymentPayPal/Authorise/${customerGuid}`, JSON.stringify(payPalOrderId)).subscribe({\r\n next: (res) => {\r\n observer.next(res as PaymentResult);\r\n observer.complete();\r\n },\r\n error: (err) => {\r\n let errMessage = 'Sorry PayPal failed when Authorising. ';\r\n if (err && err.msg) {\r\n errMessage += err.msg;\r\n }\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 8000 });\r\n observer.error(err);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n}\r\n", "import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { RepositoryService } from 'src/@omnial/_services/repository.service';\r\nimport { MatSnackBar } from '@angular/material/snack-bar';\r\nimport { Customer } from 'src/@omnial/_models/customer/customer.model';\r\nimport { PaymentResult } from 'src/@omnial/_models/order/payment-result.model';\r\nimport { CustomerService } from 'src/@omnial/_services/customer/customer.service';\r\nimport { KlaviyoService } from 'src/@omnial/_services/external/klaviyo.service';\r\nimport { SecurePayConfig, SecurePayInitiatePaymentOrderResponse } from '../_models/external/securepay.model';\r\n\r\n@Injectable()\r\nexport class SecurePayService {\r\n private customer: Customer;\r\n\r\n constructor(\r\n public repoService: RepositoryService,\r\n public customerService: CustomerService,\r\n public snackBar: MatSnackBar,\r\n public klaviyoService: KlaviyoService) {\r\n this.customerService.customer.subscribe({ next: (res) => { this.customer = res as Customer; } });\r\n }\r\n\r\n public config(): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.getData(`PaymentSecurePay/Config/${this.customer.customerGuid}`).subscribe({\r\n next: (res) => {\r\n observer.next(res);\r\n observer.complete();\r\n },\r\n error: (msg) => {\r\n const errMessage = `Sorry SecurePay is not configured for this store. ${msg}`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 8000 });\r\n observer.error(msg);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public initiatePaymentOrder(): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.getData(`PaymentSecurePay/InitiatePaymentOrder/${this.customer.customerGuid}`).subscribe({\r\n next: (res) => {\r\n observer.next(res);\r\n observer.complete();\r\n },\r\n error: (msg) => {\r\n const errMessage = `Sorry SecurePay Payment failed when establishing additional Fraud Check Details. ${msg}`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 8000 });\r\n observer.error(msg);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public payment(paymentRequest: any): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.create(`PaymentSecurePay/CreatePayment/${this.customer.customerGuid}`, paymentRequest).subscribe({\r\n next: (res) => {\r\n const result = res as PaymentResult;\r\n if (result.success && result.order) {\r\n this.klaviyoService.placedOrder(result.order);\r\n }\r\n observer.next(result);\r\n observer.complete();\r\n },\r\n error: (msg) => {\r\n const errMessage = `Sorry SecurePay Payment failed when capturing. ${msg}`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 8000 });\r\n observer.error(msg);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n}\r\n", "import { PaymentIntent } from \"@stripe/stripe-js\";\r\n\r\n// Used to Create an Intent from the front end and pass back to capture or confirm\r\nexport class StripeIntent {\r\n publicKey: string;\r\n method: string;\r\n paymentIntent: PaymentIntent;\r\n}\r\n\r\n// Used to accept the return querystring parameters and process them\r\nexport class StripeRedirectReturn {\r\n action: string;\r\n intent: string;\r\n payment_intent: string;\r\n payment_intent_client_secret: string;\r\n redirect_status: string;\r\n}\r\n", "import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable } from 'rxjs';\r\nimport { RepositoryService } from 'src/@omnial/_services/repository.service';\r\nimport { MatSnackBar } from '@angular/material/snack-bar';\r\nimport { RepositoryStaticService } from 'src/@omnial/_services/repository-static.service';\r\nimport { Customer } from 'src/@omnial/_models/customer/customer.model';\r\nimport { PaymentResult } from 'src/@omnial/_models/order/payment-result.model';\r\nimport { CustomerService } from 'src/@omnial/_services/customer/customer.service';\r\nimport { KlaviyoService } from 'src/@omnial/_services/external/klaviyo.service';\r\nimport { PaymentIntent, StripeError } from '@stripe/stripe-js';\r\nimport { StripePaymentOptions } from 'src/@omnial/_models/external/stripe-config.model';\r\nimport { StripeIntent, StripeRedirectReturn } from '../_models/external/stripe-intent.model';\r\n\r\n@Injectable()\r\nexport class StripeServiceOmnial {\r\n private customer: Customer;\r\n public redirectReturn: BehaviorSubject = new BehaviorSubject(false);\r\n public redirectReturnResult: BehaviorSubject = new BehaviorSubject('');\r\n\r\n constructor(\r\n public staticService: RepositoryStaticService,\r\n public repoService: RepositoryService,\r\n public customerService: CustomerService,\r\n public snackBar: MatSnackBar,\r\n public klaviyoService: KlaviyoService) {\r\n this.customerService.customer.subscribe({ next: (res) => { this.customer = res as Customer; } });\r\n }\r\n\r\n public setRedirectReturnResult(result: string) {\r\n this.redirectReturnResult.next(result);\r\n }\r\n public setRedirectReturn(isReturn: boolean) {\r\n this.redirectReturn.next(isReturn);\r\n }\r\n\r\n public paymentOptions(): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.getData(`PaymentStripe/Options/${this.customer.customerGuid}`).subscribe({\r\n next: (res) => {\r\n const paymentOptions = res as StripePaymentOptions;\r\n if (paymentOptions) {\r\n observer.next(paymentOptions);\r\n observer.complete();\r\n } else {\r\n const errMessage = `Sorry Stripe Payment is unavailable.`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 3000 });\r\n observer.error(null);\r\n observer.complete();\r\n }\r\n },\r\n error: (msg) => {\r\n const errMessage = `Sorry Stripe Payment is unavailable. ${msg}`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 3000 });\r\n observer.error(msg);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public logButtonPayment(method: string): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.getData(`PaymentStripe/LogButtonPayment/${this.customer.customerGuid}/${method}`).subscribe({\r\n next: () => {\r\n observer.next(true);\r\n observer.complete();\r\n },\r\n error: () => {\r\n observer.next(true);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public intent(): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.getData(`PaymentStripe/Intent/${this.customer.customerGuid}`).subscribe({\r\n next: (res) => {\r\n const paymentIntent = res as StripeIntent;\r\n if (paymentIntent) {\r\n observer.next(paymentIntent);\r\n observer.complete();\r\n } else {\r\n const errMessage = `Sorry Stripe Payment is unavailable.`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 3000 });\r\n observer.error(null);\r\n observer.complete();\r\n }\r\n },\r\n error: (msg) => {\r\n const errMessage = `Sorry Stripe Payment is unavailable. ${msg}`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 3000 });\r\n observer.error(msg);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public capture(intent: PaymentIntent, method: string): Observable {\r\n return new Observable((observer) => {\r\n const stripeIntent = new StripeIntent();\r\n stripeIntent.paymentIntent = intent;\r\n stripeIntent.method = method;\r\n this.repoService.create(`PaymentStripe/Capture/${this.customer.customerGuid}`, stripeIntent).subscribe({\r\n next: (res) => {\r\n const result = res as PaymentResult;\r\n if (result.success && result.order) {\r\n this.klaviyoService.placedOrder(result.order);\r\n }\r\n observer.next(result);\r\n observer.complete();\r\n },\r\n error: (msg) => {\r\n const errMessage = `Sorry Stripe Payment failed when capturing. ${msg}`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 8000 });\r\n observer.error(msg);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public completeRedirect(stripeReturn: StripeRedirectReturn): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.create(`PaymentStripe/CompleteRedirect/${this.customer.customerGuid}`, stripeReturn).subscribe({\r\n next: (res) => {\r\n const result = res as PaymentResult;\r\n if (result.success && result.order) {\r\n this.klaviyoService.placedOrder(result.order);\r\n }\r\n observer.next(result);\r\n observer.complete();\r\n },\r\n error: (msg) => {\r\n const errMessage = `Sorry Stripe Payment failed when capturing. ${msg}`;\r\n this.snackBar.open(errMessage, 'X', { panelClass: ['error'], verticalPosition: 'top', duration: 8000 });\r\n observer.error(msg);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public error(error: string): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.create(`PaymentStripe/Error/${this.customer.customerGuid}`, error).subscribe({\r\n next: (res) => {\r\n observer.next(res as boolean);\r\n observer.complete();\r\n },\r\n error: () => {\r\n observer.next(false);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n\r\n public stripeError(error: StripeError): Observable {\r\n return new Observable((observer) => {\r\n this.repoService.create(`PaymentStripe/StripeError/${this.customer.customerGuid}`, error).subscribe({\r\n next: (res) => {\r\n observer.next(res as boolean);\r\n observer.complete();\r\n },\r\n error: () => {\r\n observer.next(false);\r\n observer.complete();\r\n }\r\n });\r\n });\r\n }\r\n}\r\n"], "mappings": "+HAWA,IAAaA,GAAa,IAAA,CAApB,MAAOA,CAAa,CAmBxBC,YACSC,EACAC,EACAC,EACAC,EAA8B,CAH9B,KAAAH,YAAAA,EACA,KAAAC,gBAAAA,EACA,KAAAC,SAAAA,EACA,KAAAC,eAAAA,EApBT,KAAAC,mBAAqB,IAAIC,EAA0BC,GAAY,CAC7D,KAAKN,YAAYO,QAAQ,wBAAwB,KA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,CACVR,EAASR,KAAK,EAAK,EACnBQ,EAASG,SAAQ,CACnB,EACD,CACH,CAAC,CACH,iDA/JWvB,GAAmB6C,EAAAC,CAAA,EAAAD,EAAAE,CAAA,EAAAF,EAAAG,CAAA,EAAAH,EAAAI,CAAA,EAAAJ,EAAAK,CAAA,CAAA,CAAA,CAAA,iCAAnBlD,EAAmBmD,QAAnBnD,EAAmBoD,SAAA,CAAA,CAAA,SAAnBpD,CAAmB,GAAA", "names": ["PayPalService", "constructor", "repoService", "customerService", "snackBar", "klaviyoService", "payPalClientConfig", "Observable", "observer", "getData", "customer", "customerGuid", "subscribe", "next", "res", "config", "complete", "error", "e", "open", "panelClass", "verticalPosition", "duration", "payPalCapture", "payPalOrderId", "create", "JSON", "stringify", "result", "success", "order", "placedOrder", "err", "errMessage", "msg", "payPalAuthorise", "\u0275\u0275inject", "RepositoryService", "CustomerService", "MatSnackBar", "KlaviyoService", "factory", "\u0275fac", "SecurePayService", "constructor", "repoService", "customerService", "snackBar", "klaviyoService", "customer", "subscribe", "next", "res", "config", "Observable", "observer", "getData", "customerGuid", "complete", "error", "msg", "errMessage", "open", "panelClass", "verticalPosition", "duration", "initiatePaymentOrder", "payment", "paymentRequest", "create", "result", "success", "order", "placedOrder", "\u0275\u0275inject", "RepositoryService", "CustomerService", "MatSnackBar", "KlaviyoService", "factory", "\u0275fac", "StripeIntent", "StripeRedirectReturn", "StripeServiceOmnial", "constructor", "staticService", "repoService", "customerService", "snackBar", "klaviyoService", "redirectReturn", "BehaviorSubject", "redirectReturnResult", "customer", "subscribe", "next", "res", "setRedirectReturnResult", "result", "setRedirectReturn", "isReturn", "paymentOptions", "Observable", "observer", "getData", "customerGuid", "complete", "open", "panelClass", "verticalPosition", "duration", "error", "msg", "errMessage", "logButtonPayment", "method", "intent", "paymentIntent", "capture", "stripeIntent", "StripeIntent", "create", "success", "order", "placedOrder", "completeRedirect", "stripeReturn", "stripeError", "\u0275\u0275inject", "RepositoryStaticService", "RepositoryService", "CustomerService", "MatSnackBar", "KlaviyoService", "factory", "\u0275fac"] }