@tonder.io/rn-sdk 0.1.0-beta.DEV1355.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +33 -0
- package/lib/commonjs/core/3DSHandler.js +108 -0
- package/lib/commonjs/core/3DSHandler.js.map +1 -0
- package/lib/commonjs/core/BaseCheckout/index.js +337 -0
- package/lib/commonjs/core/BaseCheckout/index.js.map +1 -0
- package/lib/commonjs/core/BaseEnrollment/index.js +86 -0
- package/lib/commonjs/core/BaseEnrollment/index.js.map +1 -0
- package/lib/commonjs/core/BaseSDK/index.js +75 -0
- package/lib/commonjs/core/BaseSDK/index.js.map +1 -0
- package/lib/commonjs/core/EnrollmentContainer/index.js +87 -0
- package/lib/commonjs/core/EnrollmentContainer/index.js.map +1 -0
- package/lib/commonjs/core/PaymentInlineContainer/index.js +111 -0
- package/lib/commonjs/core/PaymentInlineContainer/index.js.map +1 -0
- package/lib/commonjs/core/PaymentLiteContainer/index.js +158 -0
- package/lib/commonjs/core/PaymentLiteContainer/index.js.map +1 -0
- package/lib/commonjs/core/Tonder/index.js +134 -0
- package/lib/commonjs/core/Tonder/index.js.map +1 -0
- package/lib/commonjs/hooks/useTonder/index-old.js +37 -0
- package/lib/commonjs/hooks/useTonder/index-old.js.map +1 -0
- package/lib/commonjs/hooks/useTonder/index.js +16 -0
- package/lib/commonjs/hooks/useTonder/index.js.map +1 -0
- package/lib/commonjs/index.js +121 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/infrastructure/HttpClient.js +108 -0
- package/lib/commonjs/infrastructure/HttpClient.js.map +1 -0
- package/lib/commonjs/infrastructure/ServiceManager.js +32 -0
- package/lib/commonjs/infrastructure/ServiceManager.js.map +1 -0
- package/lib/commonjs/infrastructure/index.js +28 -0
- package/lib/commonjs/infrastructure/index.js.map +1 -0
- package/lib/commonjs/services/BusinessService.js +36 -0
- package/lib/commonjs/services/BusinessService.js.map +1 -0
- package/lib/commonjs/services/CardService.js +89 -0
- package/lib/commonjs/services/CardService.js.map +1 -0
- package/lib/commonjs/services/CheckoutService.js +121 -0
- package/lib/commonjs/services/CheckoutService.js.map +1 -0
- package/lib/commonjs/services/CustomerService.js +62 -0
- package/lib/commonjs/services/CustomerService.js.map +1 -0
- package/lib/commonjs/services/MercadoPagoService.js +27 -0
- package/lib/commonjs/services/MercadoPagoService.js.map +1 -0
- package/lib/commonjs/services/OpenPayService.js +25 -0
- package/lib/commonjs/services/OpenPayService.js.map +1 -0
- package/lib/commonjs/services/PaymentMethodService.js +37 -0
- package/lib/commonjs/services/PaymentMethodService.js.map +1 -0
- package/lib/commonjs/services/SkyflowService.js +53 -0
- package/lib/commonjs/services/SkyflowService.js.map +1 -0
- package/lib/commonjs/services/StorageService.js +49 -0
- package/lib/commonjs/services/StorageService.js.map +1 -0
- package/lib/commonjs/services/TokenService.js +46 -0
- package/lib/commonjs/services/TokenService.js.map +1 -0
- package/lib/commonjs/services/TransactionService.js +26 -0
- package/lib/commonjs/services/TransactionService.js.map +1 -0
- package/lib/commonjs/services/index.js +127 -0
- package/lib/commonjs/services/index.js.map +1 -0
- package/lib/commonjs/shared/catalog/cardBrandCatalog.js +19 -0
- package/lib/commonjs/shared/catalog/cardBrandCatalog.js.map +1 -0
- package/lib/commonjs/shared/catalog/paymentMethodsCatalog.js +252 -0
- package/lib/commonjs/shared/catalog/paymentMethodsCatalog.js.map +1 -0
- package/lib/commonjs/shared/constants/environments.js +13 -0
- package/lib/commonjs/shared/constants/environments.js.map +1 -0
- package/lib/commonjs/shared/constants/index.js +28 -0
- package/lib/commonjs/shared/constants/index.js.map +1 -0
- package/lib/commonjs/shared/constants/messages.js +101 -0
- package/lib/commonjs/shared/constants/messages.js.map +1 -0
- package/lib/commonjs/shared/constants/paymentMethods.js +68 -0
- package/lib/commonjs/shared/constants/paymentMethods.js.map +1 -0
- package/lib/commonjs/shared/constants/skyflow.js +47 -0
- package/lib/commonjs/shared/constants/skyflow.js.map +1 -0
- package/lib/commonjs/shared/enum/ErrorKeyEnum.js +55 -0
- package/lib/commonjs/shared/enum/ErrorKeyEnum.js.map +1 -0
- package/lib/commonjs/shared/enum/index.js +17 -0
- package/lib/commonjs/shared/enum/index.js.map +1 -0
- package/lib/commonjs/shared/index.js +39 -0
- package/lib/commonjs/shared/index.js.map +1 -0
- package/lib/commonjs/shared/utils/common.js +47 -0
- package/lib/commonjs/shared/utils/common.js.map +1 -0
- package/lib/commonjs/shared/utils/errors.js +21 -0
- package/lib/commonjs/shared/utils/errors.js.map +1 -0
- package/lib/commonjs/shared/utils/numberUtils.js +17 -0
- package/lib/commonjs/shared/utils/numberUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/paymentMethodUtils.js +21 -0
- package/lib/commonjs/shared/utils/paymentMethodUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/stringUtils.js +11 -0
- package/lib/commonjs/shared/utils/stringUtils.js.map +1 -0
- package/lib/commonjs/shared/utils/styleUtils.js +21 -0
- package/lib/commonjs/shared/utils/styleUtils.js.map +1 -0
- package/lib/commonjs/types/base.js +14 -0
- package/lib/commonjs/types/base.js.map +1 -0
- package/lib/commonjs/types/baseCheckout.js +6 -0
- package/lib/commonjs/types/baseCheckout.js.map +1 -0
- package/lib/commonjs/types/baseEnrollment.js +6 -0
- package/lib/commonjs/types/baseEnrollment.js.map +1 -0
- package/lib/commonjs/types/baseSDK.js +6 -0
- package/lib/commonjs/types/baseSDK.js.map +1 -0
- package/lib/commonjs/types/business.js +2 -0
- package/lib/commonjs/types/business.js.map +1 -0
- package/lib/commonjs/types/card.js +2 -0
- package/lib/commonjs/types/card.js.map +1 -0
- package/lib/commonjs/types/checkout.js +6 -0
- package/lib/commonjs/types/checkout.js.map +1 -0
- package/lib/commonjs/types/common.js +6 -0
- package/lib/commonjs/types/common.js.map +1 -0
- package/lib/commonjs/types/customer.js +2 -0
- package/lib/commonjs/types/customer.js.map +1 -0
- package/lib/commonjs/types/enrollment.js +6 -0
- package/lib/commonjs/types/enrollment.js.map +1 -0
- package/lib/commonjs/types/index.js +204 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/inlineCheckout.js +6 -0
- package/lib/commonjs/types/inlineCheckout.js.map +1 -0
- package/lib/commonjs/types/input.js +6 -0
- package/lib/commonjs/types/input.js.map +1 -0
- package/lib/commonjs/types/liteCheckout.js +6 -0
- package/lib/commonjs/types/liteCheckout.js.map +1 -0
- package/lib/commonjs/types/openpay-react-native.d.js +2 -0
- package/lib/commonjs/types/openpay-react-native.d.js.map +1 -0
- package/lib/commonjs/types/openpay.js +2 -0
- package/lib/commonjs/types/openpay.js.map +1 -0
- package/lib/commonjs/types/payment.js +6 -0
- package/lib/commonjs/types/payment.js.map +1 -0
- package/lib/commonjs/types/secure.js +2 -0
- package/lib/commonjs/types/secure.js.map +1 -0
- package/lib/commonjs/types/skyflow-react-native.d.js +2 -0
- package/lib/commonjs/types/skyflow-react-native.d.js.map +1 -0
- package/lib/commonjs/types/threeDSHandler.js +6 -0
- package/lib/commonjs/types/threeDSHandler.js.map +1 -0
- package/lib/commonjs/types/transaction.js +2 -0
- package/lib/commonjs/types/transaction.js.map +1 -0
- package/lib/commonjs/ui/components/Button/ProcessButton.js +50 -0
- package/lib/commonjs/ui/components/Button/ProcessButton.js.map +1 -0
- package/lib/commonjs/ui/components/CardForm/index.js +80 -0
- package/lib/commonjs/ui/components/CardForm/index.js.map +1 -0
- package/lib/commonjs/ui/components/Checkbox/Checkbox.js +62 -0
- package/lib/commonjs/ui/components/Checkbox/Checkbox.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardCVVInput.js +83 -0
- package/lib/commonjs/ui/components/Input/CardCVVInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js +91 -0
- package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js +84 -0
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js +84 -0
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardHolderInput.js +83 -0
- package/lib/commonjs/ui/components/Input/CardHolderInput.js.map +1 -0
- package/lib/commonjs/ui/components/Input/CardNumberInput.js +83 -0
- package/lib/commonjs/ui/components/Input/CardNumberInput.js.map +1 -0
- package/lib/commonjs/ui/components/PaymentMethodsList/index.js +105 -0
- package/lib/commonjs/ui/components/PaymentMethodsList/index.js.map +1 -0
- package/lib/commonjs/ui/components/RadioButton/index.js +57 -0
- package/lib/commonjs/ui/components/RadioButton/index.js.map +1 -0
- package/lib/commonjs/ui/components/SavedCardsList/index.js +126 -0
- package/lib/commonjs/ui/components/SavedCardsList/index.js.map +1 -0
- package/lib/commonjs/ui/components/Skeleton/CardFormSkeleton.js +102 -0
- package/lib/commonjs/ui/components/Skeleton/CardFormSkeleton.js.map +1 -0
- package/lib/commonjs/ui/components/WebView/ThreeDSWebView.js +105 -0
- package/lib/commonjs/ui/components/WebView/ThreeDSWebView.js.map +1 -0
- package/lib/commonjs/ui/features/TonderEnrollment/index.js +119 -0
- package/lib/commonjs/ui/features/TonderEnrollment/index.js.map +1 -0
- package/lib/commonjs/ui/features/TonderPayment/index.js +195 -0
- package/lib/commonjs/ui/features/TonderPayment/index.js.map +1 -0
- package/lib/commonjs/ui/providers/InnerProvider/index.js +25 -0
- package/lib/commonjs/ui/providers/InnerProvider/index.js.map +1 -0
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js +31 -0
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js.map +1 -0
- package/lib/commonjs/ui/providers/TonderProvider/context.js +16 -0
- package/lib/commonjs/ui/providers/TonderProvider/context.js.map +1 -0
- package/lib/commonjs/ui/providers/TonderProvider/hook.js +15 -0
- package/lib/commonjs/ui/providers/TonderProvider/hook.js.map +1 -0
- package/lib/commonjs/ui/providers/TonderProvider/index.js +96 -0
- package/lib/commonjs/ui/providers/TonderProvider/index.js.map +1 -0
- package/lib/commonjs/ui/providers/TonderProvider/uiWrapper.js +61 -0
- package/lib/commonjs/ui/providers/TonderProvider/uiWrapper.js.map +1 -0
- package/lib/commonjs/ui/styles/payment.js +27 -0
- package/lib/commonjs/ui/styles/payment.js.map +1 -0
- package/lib/commonjs/ui/styles/skyflow.js +54 -0
- package/lib/commonjs/ui/styles/skyflow.js.map +1 -0
- package/lib/module/core/3DSHandler.js +102 -0
- package/lib/module/core/3DSHandler.js.map +1 -0
- package/lib/module/core/BaseCheckout/index.js +332 -0
- package/lib/module/core/BaseCheckout/index.js.map +1 -0
- package/lib/module/core/BaseEnrollment/index.js +81 -0
- package/lib/module/core/BaseEnrollment/index.js.map +1 -0
- package/lib/module/core/BaseSDK/index.js +70 -0
- package/lib/module/core/BaseSDK/index.js.map +1 -0
- package/lib/module/core/EnrollmentContainer/index.js +81 -0
- package/lib/module/core/EnrollmentContainer/index.js.map +1 -0
- package/lib/module/core/PaymentInlineContainer/index.js +106 -0
- package/lib/module/core/PaymentInlineContainer/index.js.map +1 -0
- package/lib/module/core/PaymentLiteContainer/index.js +153 -0
- package/lib/module/core/PaymentLiteContainer/index.js.map +1 -0
- package/lib/module/core/Tonder/index.js +129 -0
- package/lib/module/core/Tonder/index.js.map +1 -0
- package/lib/module/hooks/useTonder/index-old.js +37 -0
- package/lib/module/hooks/useTonder/index-old.js.map +1 -0
- package/lib/module/hooks/useTonder/index.js +11 -0
- package/lib/module/hooks/useTonder/index.js.map +1 -0
- package/lib/module/index.js +14 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/infrastructure/HttpClient.js +102 -0
- package/lib/module/infrastructure/HttpClient.js.map +1 -0
- package/lib/module/infrastructure/ServiceManager.js +27 -0
- package/lib/module/infrastructure/ServiceManager.js.map +1 -0
- package/lib/module/infrastructure/index.js +5 -0
- package/lib/module/infrastructure/index.js.map +1 -0
- package/lib/module/services/BusinessService.js +30 -0
- package/lib/module/services/BusinessService.js.map +1 -0
- package/lib/module/services/CardService.js +83 -0
- package/lib/module/services/CardService.js.map +1 -0
- package/lib/module/services/CheckoutService.js +115 -0
- package/lib/module/services/CheckoutService.js.map +1 -0
- package/lib/module/services/CustomerService.js +56 -0
- package/lib/module/services/CustomerService.js.map +1 -0
- package/lib/module/services/MercadoPagoService.js +22 -0
- package/lib/module/services/MercadoPagoService.js.map +1 -0
- package/lib/module/services/OpenPayService.js +20 -0
- package/lib/module/services/OpenPayService.js.map +1 -0
- package/lib/module/services/PaymentMethodService.js +31 -0
- package/lib/module/services/PaymentMethodService.js.map +1 -0
- package/lib/module/services/SkyflowService.js +47 -0
- package/lib/module/services/SkyflowService.js.map +1 -0
- package/lib/module/services/StorageService.js +43 -0
- package/lib/module/services/StorageService.js.map +1 -0
- package/lib/module/services/TokenService.js +40 -0
- package/lib/module/services/TokenService.js.map +1 -0
- package/lib/module/services/TransactionService.js +20 -0
- package/lib/module/services/TransactionService.js.map +1 -0
- package/lib/module/services/index.js +15 -0
- package/lib/module/services/index.js.map +1 -0
- package/lib/module/shared/catalog/cardBrandCatalog.js +14 -0
- package/lib/module/shared/catalog/cardBrandCatalog.js.map +1 -0
- package/lib/module/shared/catalog/paymentMethodsCatalog.js +247 -0
- package/lib/module/shared/catalog/paymentMethodsCatalog.js.map +1 -0
- package/lib/module/shared/constants/environments.js +10 -0
- package/lib/module/shared/constants/environments.js.map +1 -0
- package/lib/module/shared/constants/index.js +5 -0
- package/lib/module/shared/constants/index.js.map +1 -0
- package/lib/module/shared/constants/messages.js +97 -0
- package/lib/module/shared/constants/messages.js.map +1 -0
- package/lib/module/shared/constants/paymentMethods.js +65 -0
- package/lib/module/shared/constants/paymentMethods.js.map +1 -0
- package/lib/module/shared/constants/skyflow.js +43 -0
- package/lib/module/shared/constants/skyflow.js.map +1 -0
- package/lib/module/shared/enum/ErrorKeyEnum.js +51 -0
- package/lib/module/shared/enum/ErrorKeyEnum.js.map +1 -0
- package/lib/module/shared/enum/index.js +4 -0
- package/lib/module/shared/enum/index.js.map +1 -0
- package/lib/module/shared/index.js +6 -0
- package/lib/module/shared/index.js.map +1 -0
- package/lib/module/shared/utils/common.js +41 -0
- package/lib/module/shared/utils/common.js.map +1 -0
- package/lib/module/shared/utils/errors.js +17 -0
- package/lib/module/shared/utils/errors.js.map +1 -0
- package/lib/module/shared/utils/numberUtils.js +13 -0
- package/lib/module/shared/utils/numberUtils.js.map +1 -0
- package/lib/module/shared/utils/paymentMethodUtils.js +16 -0
- package/lib/module/shared/utils/paymentMethodUtils.js.map +1 -0
- package/lib/module/shared/utils/stringUtils.js +6 -0
- package/lib/module/shared/utils/stringUtils.js.map +1 -0
- package/lib/module/shared/utils/styleUtils.js +17 -0
- package/lib/module/shared/utils/styleUtils.js.map +1 -0
- package/lib/module/types/base.js +13 -0
- package/lib/module/types/base.js.map +1 -0
- package/lib/module/types/baseCheckout.js +4 -0
- package/lib/module/types/baseCheckout.js.map +1 -0
- package/lib/module/types/baseEnrollment.js +4 -0
- package/lib/module/types/baseEnrollment.js.map +1 -0
- package/lib/module/types/baseSDK.js +4 -0
- package/lib/module/types/baseSDK.js.map +1 -0
- package/lib/module/types/business.js +2 -0
- package/lib/module/types/business.js.map +1 -0
- package/lib/module/types/card.js +2 -0
- package/lib/module/types/card.js.map +1 -0
- package/lib/module/types/checkout.js +4 -0
- package/lib/module/types/checkout.js.map +1 -0
- package/lib/module/types/common.js +4 -0
- package/lib/module/types/common.js.map +1 -0
- package/lib/module/types/customer.js +2 -0
- package/lib/module/types/customer.js.map +1 -0
- package/lib/module/types/enrollment.js +4 -0
- package/lib/module/types/enrollment.js.map +1 -0
- package/lib/module/types/index.js +21 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/inlineCheckout.js +4 -0
- package/lib/module/types/inlineCheckout.js.map +1 -0
- package/lib/module/types/input.js +4 -0
- package/lib/module/types/input.js.map +1 -0
- package/lib/module/types/liteCheckout.js +4 -0
- package/lib/module/types/liteCheckout.js.map +1 -0
- package/lib/module/types/openpay-react-native.d.js +2 -0
- package/lib/module/types/openpay-react-native.d.js.map +1 -0
- package/lib/module/types/openpay.js +2 -0
- package/lib/module/types/openpay.js.map +1 -0
- package/lib/module/types/payment.js +4 -0
- package/lib/module/types/payment.js.map +1 -0
- package/lib/module/types/secure.js +2 -0
- package/lib/module/types/secure.js.map +1 -0
- package/lib/module/types/skyflow-react-native.d.js +2 -0
- package/lib/module/types/skyflow-react-native.d.js.map +1 -0
- package/lib/module/types/threeDSHandler.js +4 -0
- package/lib/module/types/threeDSHandler.js.map +1 -0
- package/lib/module/types/transaction.js +2 -0
- package/lib/module/types/transaction.js.map +1 -0
- package/lib/module/ui/components/Button/ProcessButton.js +44 -0
- package/lib/module/ui/components/Button/ProcessButton.js.map +1 -0
- package/lib/module/ui/components/CardForm/index.js +74 -0
- package/lib/module/ui/components/CardForm/index.js.map +1 -0
- package/lib/module/ui/components/Checkbox/Checkbox.js +56 -0
- package/lib/module/ui/components/Checkbox/Checkbox.js.map +1 -0
- package/lib/module/ui/components/Input/CardCVVInput.js +75 -0
- package/lib/module/ui/components/Input/CardCVVInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardExpirationDateInput.js +84 -0
- package/lib/module/ui/components/Input/CardExpirationDateInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js +77 -0
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardExpirationYearInput.js +76 -0
- package/lib/module/ui/components/Input/CardExpirationYearInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardHolderInput.js +75 -0
- package/lib/module/ui/components/Input/CardHolderInput.js.map +1 -0
- package/lib/module/ui/components/Input/CardNumberInput.js +75 -0
- package/lib/module/ui/components/Input/CardNumberInput.js.map +1 -0
- package/lib/module/ui/components/PaymentMethodsList/index.js +100 -0
- package/lib/module/ui/components/PaymentMethodsList/index.js.map +1 -0
- package/lib/module/ui/components/RadioButton/index.js +50 -0
- package/lib/module/ui/components/RadioButton/index.js.map +1 -0
- package/lib/module/ui/components/SavedCardsList/index.js +121 -0
- package/lib/module/ui/components/SavedCardsList/index.js.map +1 -0
- package/lib/module/ui/components/Skeleton/CardFormSkeleton.js +97 -0
- package/lib/module/ui/components/Skeleton/CardFormSkeleton.js.map +1 -0
- package/lib/module/ui/components/WebView/ThreeDSWebView.js +96 -0
- package/lib/module/ui/components/WebView/ThreeDSWebView.js.map +1 -0
- package/lib/module/ui/features/TonderEnrollment/index.js +114 -0
- package/lib/module/ui/features/TonderEnrollment/index.js.map +1 -0
- package/lib/module/ui/features/TonderPayment/index.js +188 -0
- package/lib/module/ui/features/TonderPayment/index.js.map +1 -0
- package/lib/module/ui/providers/InnerProvider/index.js +19 -0
- package/lib/module/ui/providers/InnerProvider/index.js.map +1 -0
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js +24 -0
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js.map +1 -0
- package/lib/module/ui/providers/TonderProvider/context.js +10 -0
- package/lib/module/ui/providers/TonderProvider/context.js.map +1 -0
- package/lib/module/ui/providers/TonderProvider/hook.js +10 -0
- package/lib/module/ui/providers/TonderProvider/hook.js.map +1 -0
- package/lib/module/ui/providers/TonderProvider/index.js +88 -0
- package/lib/module/ui/providers/TonderProvider/index.js.map +1 -0
- package/lib/module/ui/providers/TonderProvider/uiWrapper.js +57 -0
- package/lib/module/ui/providers/TonderProvider/uiWrapper.js.map +1 -0
- package/lib/module/ui/styles/payment.js +25 -0
- package/lib/module/ui/styles/payment.js.map +1 -0
- package/lib/module/ui/styles/skyflow.js +52 -0
- package/lib/module/ui/styles/skyflow.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/core/3DSHandler.d.ts +23 -0
- package/lib/typescript/commonjs/src/core/3DSHandler.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts +28 -0
- package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts +16 -0
- package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts +19 -0
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/Tonder/index.d.ts +33 -0
- package/lib/typescript/commonjs/src/core/Tonder/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useTonder/index-old.d.ts +1 -0
- package/lib/typescript/commonjs/src/hooks/useTonder/index-old.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/useTonder/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/hooks/useTonder/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +12 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts +20 -0
- package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/infrastructure/ServiceManager.d.ts +19 -0
- package/lib/typescript/commonjs/src/infrastructure/ServiceManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/infrastructure/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/infrastructure/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/BusinessService.d.ts +15 -0
- package/lib/typescript/commonjs/src/services/BusinessService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/CardService.d.ts +28 -0
- package/lib/typescript/commonjs/src/services/CardService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/CheckoutService.d.ts +37 -0
- package/lib/typescript/commonjs/src/services/CheckoutService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/CustomerService.d.ts +24 -0
- package/lib/typescript/commonjs/src/services/CustomerService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/MercadoPagoService.d.ts +4 -0
- package/lib/typescript/commonjs/src/services/MercadoPagoService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/OpenPayService.d.ts +4 -0
- package/lib/typescript/commonjs/src/services/OpenPayService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/PaymentMethodService.d.ts +15 -0
- package/lib/typescript/commonjs/src/services/PaymentMethodService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts +15 -0
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/StorageService.d.ts +7 -0
- package/lib/typescript/commonjs/src/services/StorageService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/TokenService.d.ts +16 -0
- package/lib/typescript/commonjs/src/services/TokenService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/TransactionService.d.ts +8 -0
- package/lib/typescript/commonjs/src/services/TransactionService.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/services/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/services/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/catalog/cardBrandCatalog.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/catalog/cardBrandCatalog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/catalog/paymentMethodsCatalog.d.ts +5 -0
- package/lib/typescript/commonjs/src/shared/catalog/paymentMethodsCatalog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/environments.d.ts +8 -0
- package/lib/typescript/commonjs/src/shared/constants/environments.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/shared/constants/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/messages.d.ts +94 -0
- package/lib/typescript/commonjs/src/shared/constants/messages.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/paymentMethods.d.ts +63 -0
- package/lib/typescript/commonjs/src/shared/constants/paymentMethods.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/constants/skyflow.d.ts +38 -0
- package/lib/typescript/commonjs/src/shared/constants/skyflow.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/enum/ErrorKeyEnum.d.ts +48 -0
- package/lib/typescript/commonjs/src/shared/enum/ErrorKeyEnum.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/enum/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/enum/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/shared/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/common.d.ts +9 -0
- package/lib/typescript/commonjs/src/shared/utils/common.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/errors.d.ts +16 -0
- package/lib/typescript/commonjs/src/shared/utils/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/numberUtils.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/utils/numberUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/paymentMethodUtils.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/utils/paymentMethodUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/stringUtils.d.ts +2 -0
- package/lib/typescript/commonjs/src/shared/utils/stringUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/shared/utils/styleUtils.d.ts +8 -0
- package/lib/typescript/commonjs/src/shared/utils/styleUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/base.d.ts +48 -0
- package/lib/typescript/commonjs/src/types/base.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts +29 -0
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts +11 -0
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts +10 -0
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/business.d.ts +36 -0
- package/lib/typescript/commonjs/src/types/business.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/card.d.ts +33 -0
- package/lib/typescript/commonjs/src/types/card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/checkout.d.ts +150 -0
- package/lib/typescript/commonjs/src/types/checkout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/common.d.ts +60 -0
- package/lib/typescript/commonjs/src/types/common.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/customer.d.ts +28 -0
- package/lib/typescript/commonjs/src/types/customer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/enrollment.d.ts +66 -0
- package/lib/typescript/commonjs/src/types/enrollment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/index.d.ts +19 -0
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/inlineCheckout.d.ts +78 -0
- package/lib/typescript/commonjs/src/types/inlineCheckout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/input.d.ts +13 -0
- package/lib/typescript/commonjs/src/types/input.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts +90 -0
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/openpay.d.ts +11 -0
- package/lib/typescript/commonjs/src/types/openpay.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/payment.d.ts +59 -0
- package/lib/typescript/commonjs/src/types/payment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/secure.d.ts +4 -0
- package/lib/typescript/commonjs/src/types/secure.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/threeDSHandler.d.ts +7 -0
- package/lib/typescript/commonjs/src/types/threeDSHandler.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/transaction.d.ts +103 -0
- package/lib/typescript/commonjs/src/types/transaction.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Button/ProcessButton.d.ts +11 -0
- package/lib/typescript/commonjs/src/ui/components/Button/ProcessButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Checkbox/Checkbox.d.ts +9 -0
- package/lib/typescript/commonjs/src/ui/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/RadioButton/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/ui/components/RadioButton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/Skeleton/CardFormSkeleton.d.ts +5 -0
- package/lib/typescript/commonjs/src/ui/components/Skeleton/CardFormSkeleton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/components/WebView/ThreeDSWebView.d.ts +9 -0
- package/lib/typescript/commonjs/src/ui/components/WebView/ThreeDSWebView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/features/TonderEnrollment/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/ui/features/TonderEnrollment/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/features/TonderPayment/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/ui/features/TonderPayment/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/context.d.ts +5 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/hook.d.ts +4 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/hook.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/uiWrapper.d.ts +10 -0
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/uiWrapper.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/styles/payment.d.ts +20 -0
- package/lib/typescript/commonjs/src/ui/styles/payment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ui/styles/skyflow.d.ts +44 -0
- package/lib/typescript/commonjs/src/ui/styles/skyflow.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/core/3DSHandler.d.ts +23 -0
- package/lib/typescript/module/src/core/3DSHandler.d.ts.map +1 -0
- package/lib/typescript/module/src/core/BaseCheckout/index.d.ts +28 -0
- package/lib/typescript/module/src/core/BaseCheckout/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts +16 -0
- package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts +19 -0
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts +15 -0
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts +17 -0
- package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts +21 -0
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/Tonder/index.d.ts +33 -0
- package/lib/typescript/module/src/core/Tonder/index.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useTonder/index-old.d.ts +1 -0
- package/lib/typescript/module/src/hooks/useTonder/index-old.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/useTonder/index.d.ts +4 -0
- package/lib/typescript/module/src/hooks/useTonder/index.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +12 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/infrastructure/HttpClient.d.ts +20 -0
- package/lib/typescript/module/src/infrastructure/HttpClient.d.ts.map +1 -0
- package/lib/typescript/module/src/infrastructure/ServiceManager.d.ts +19 -0
- package/lib/typescript/module/src/infrastructure/ServiceManager.d.ts.map +1 -0
- package/lib/typescript/module/src/infrastructure/index.d.ts +3 -0
- package/lib/typescript/module/src/infrastructure/index.d.ts.map +1 -0
- package/lib/typescript/module/src/services/BusinessService.d.ts +15 -0
- package/lib/typescript/module/src/services/BusinessService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/CardService.d.ts +28 -0
- package/lib/typescript/module/src/services/CardService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/CheckoutService.d.ts +37 -0
- package/lib/typescript/module/src/services/CheckoutService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/CustomerService.d.ts +24 -0
- package/lib/typescript/module/src/services/CustomerService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/MercadoPagoService.d.ts +4 -0
- package/lib/typescript/module/src/services/MercadoPagoService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/OpenPayService.d.ts +4 -0
- package/lib/typescript/module/src/services/OpenPayService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/PaymentMethodService.d.ts +15 -0
- package/lib/typescript/module/src/services/PaymentMethodService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/SkyflowService.d.ts +15 -0
- package/lib/typescript/module/src/services/SkyflowService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/StorageService.d.ts +7 -0
- package/lib/typescript/module/src/services/StorageService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/TokenService.d.ts +16 -0
- package/lib/typescript/module/src/services/TokenService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/TransactionService.d.ts +8 -0
- package/lib/typescript/module/src/services/TransactionService.d.ts.map +1 -0
- package/lib/typescript/module/src/services/index.d.ts +13 -0
- package/lib/typescript/module/src/services/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/catalog/cardBrandCatalog.d.ts +2 -0
- package/lib/typescript/module/src/shared/catalog/cardBrandCatalog.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/catalog/paymentMethodsCatalog.d.ts +5 -0
- package/lib/typescript/module/src/shared/catalog/paymentMethodsCatalog.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/environments.d.ts +8 -0
- package/lib/typescript/module/src/shared/constants/environments.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/index.d.ts +3 -0
- package/lib/typescript/module/src/shared/constants/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/messages.d.ts +94 -0
- package/lib/typescript/module/src/shared/constants/messages.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/paymentMethods.d.ts +63 -0
- package/lib/typescript/module/src/shared/constants/paymentMethods.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/constants/skyflow.d.ts +38 -0
- package/lib/typescript/module/src/shared/constants/skyflow.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/enum/ErrorKeyEnum.d.ts +48 -0
- package/lib/typescript/module/src/shared/enum/ErrorKeyEnum.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/enum/index.d.ts +2 -0
- package/lib/typescript/module/src/shared/enum/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/index.d.ts +4 -0
- package/lib/typescript/module/src/shared/index.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/common.d.ts +9 -0
- package/lib/typescript/module/src/shared/utils/common.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/errors.d.ts +16 -0
- package/lib/typescript/module/src/shared/utils/errors.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/numberUtils.d.ts +2 -0
- package/lib/typescript/module/src/shared/utils/numberUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/paymentMethodUtils.d.ts +2 -0
- package/lib/typescript/module/src/shared/utils/paymentMethodUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/stringUtils.d.ts +2 -0
- package/lib/typescript/module/src/shared/utils/stringUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/shared/utils/styleUtils.d.ts +8 -0
- package/lib/typescript/module/src/shared/utils/styleUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/types/base.d.ts +48 -0
- package/lib/typescript/module/src/types/base.d.ts.map +1 -0
- package/lib/typescript/module/src/types/baseCheckout.d.ts +29 -0
- package/lib/typescript/module/src/types/baseCheckout.d.ts.map +1 -0
- package/lib/typescript/module/src/types/baseEnrollment.d.ts +11 -0
- package/lib/typescript/module/src/types/baseEnrollment.d.ts.map +1 -0
- package/lib/typescript/module/src/types/baseSDK.d.ts +10 -0
- package/lib/typescript/module/src/types/baseSDK.d.ts.map +1 -0
- package/lib/typescript/module/src/types/business.d.ts +36 -0
- package/lib/typescript/module/src/types/business.d.ts.map +1 -0
- package/lib/typescript/module/src/types/card.d.ts +33 -0
- package/lib/typescript/module/src/types/card.d.ts.map +1 -0
- package/lib/typescript/module/src/types/checkout.d.ts +150 -0
- package/lib/typescript/module/src/types/checkout.d.ts.map +1 -0
- package/lib/typescript/module/src/types/common.d.ts +60 -0
- package/lib/typescript/module/src/types/common.d.ts.map +1 -0
- package/lib/typescript/module/src/types/customer.d.ts +28 -0
- package/lib/typescript/module/src/types/customer.d.ts.map +1 -0
- package/lib/typescript/module/src/types/enrollment.d.ts +66 -0
- package/lib/typescript/module/src/types/enrollment.d.ts.map +1 -0
- package/lib/typescript/module/src/types/index.d.ts +19 -0
- package/lib/typescript/module/src/types/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types/inlineCheckout.d.ts +78 -0
- package/lib/typescript/module/src/types/inlineCheckout.d.ts.map +1 -0
- package/lib/typescript/module/src/types/input.d.ts +13 -0
- package/lib/typescript/module/src/types/input.d.ts.map +1 -0
- package/lib/typescript/module/src/types/liteCheckout.d.ts +90 -0
- package/lib/typescript/module/src/types/liteCheckout.d.ts.map +1 -0
- package/lib/typescript/module/src/types/openpay.d.ts +11 -0
- package/lib/typescript/module/src/types/openpay.d.ts.map +1 -0
- package/lib/typescript/module/src/types/payment.d.ts +59 -0
- package/lib/typescript/module/src/types/payment.d.ts.map +1 -0
- package/lib/typescript/module/src/types/secure.d.ts +4 -0
- package/lib/typescript/module/src/types/secure.d.ts.map +1 -0
- package/lib/typescript/module/src/types/threeDSHandler.d.ts +7 -0
- package/lib/typescript/module/src/types/threeDSHandler.d.ts.map +1 -0
- package/lib/typescript/module/src/types/transaction.d.ts +103 -0
- package/lib/typescript/module/src/types/transaction.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Button/ProcessButton.d.ts +11 -0
- package/lib/typescript/module/src/ui/components/Button/ProcessButton.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/CardForm/index.d.ts +13 -0
- package/lib/typescript/module/src/ui/components/CardForm/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Checkbox/Checkbox.d.ts +9 -0
- package/lib/typescript/module/src/ui/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts +10 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts +4 -0
- package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts +11 -0
- package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/RadioButton/index.d.ts +14 -0
- package/lib/typescript/module/src/ui/components/RadioButton/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts +14 -0
- package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/Skeleton/CardFormSkeleton.d.ts +5 -0
- package/lib/typescript/module/src/ui/components/Skeleton/CardFormSkeleton.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/components/WebView/ThreeDSWebView.d.ts +9 -0
- package/lib/typescript/module/src/ui/components/WebView/ThreeDSWebView.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/features/TonderEnrollment/index.d.ts +6 -0
- package/lib/typescript/module/src/ui/features/TonderEnrollment/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/features/TonderPayment/index.d.ts +6 -0
- package/lib/typescript/module/src/ui/features/TonderPayment/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts +10 -0
- package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts +10 -0
- package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/context.d.ts +5 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/context.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/hook.d.ts +4 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/hook.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts +8 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/uiWrapper.d.ts +10 -0
- package/lib/typescript/module/src/ui/providers/TonderProvider/uiWrapper.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/styles/payment.d.ts +20 -0
- package/lib/typescript/module/src/ui/styles/payment.d.ts.map +1 -0
- package/lib/typescript/module/src/ui/styles/skyflow.d.ts +44 -0
- package/lib/typescript/module/src/ui/styles/skyflow.d.ts.map +1 -0
- package/package.json +206 -0
- package/src/core/3DSHandler.ts +140 -0
- package/src/core/BaseCheckout/index.ts +420 -0
- package/src/core/BaseEnrollment/index.ts +99 -0
- package/src/core/BaseSDK/index.ts +93 -0
- package/src/core/EnrollmentContainer/index.ts +105 -0
- package/src/core/PaymentInlineContainer/index.ts +127 -0
- package/src/core/PaymentLiteContainer/index.ts +201 -0
- package/src/core/Tonder/index.ts +147 -0
- package/src/hooks/useTonder/index-old.ts +35 -0
- package/src/hooks/useTonder/index.ts +10 -0
- package/src/index.tsx +11 -0
- package/src/infrastructure/HttpClient.ts +121 -0
- package/src/infrastructure/ServiceManager.ts +54 -0
- package/src/infrastructure/index.ts +2 -0
- package/src/services/BusinessService.ts +33 -0
- package/src/services/CardService.ts +118 -0
- package/src/services/CheckoutService.ts +135 -0
- package/src/services/CustomerService.ts +59 -0
- package/src/services/MercadoPagoService.ts +19 -0
- package/src/services/OpenPayService.ts +22 -0
- package/src/services/PaymentMethodService.ts +38 -0
- package/src/services/SkyflowService.ts +50 -0
- package/src/services/StorageService.ts +56 -0
- package/src/services/TokenService.ts +45 -0
- package/src/services/TransactionService.ts +23 -0
- package/src/services/index.ts +12 -0
- package/src/shared/catalog/cardBrandCatalog.ts +16 -0
- package/src/shared/catalog/paymentMethodsCatalog.ts +252 -0
- package/src/shared/constants/environments.ts +8 -0
- package/src/shared/constants/index.ts +2 -0
- package/src/shared/constants/messages.ts +119 -0
- package/src/shared/constants/paymentMethods.ts +63 -0
- package/src/shared/constants/skyflow.ts +60 -0
- package/src/shared/enum/ErrorKeyEnum.ts +47 -0
- package/src/shared/enum/index.ts +1 -0
- package/src/shared/index.ts +3 -0
- package/src/shared/utils/common.ts +46 -0
- package/src/shared/utils/errors.ts +25 -0
- package/src/shared/utils/numberUtils.ts +10 -0
- package/src/shared/utils/paymentMethodUtils.ts +17 -0
- package/src/shared/utils/stringUtils.ts +3 -0
- package/src/shared/utils/styleUtils.ts +11 -0
- package/src/types/base.ts +79 -0
- package/src/types/baseCheckout.ts +42 -0
- package/src/types/baseEnrollment.ts +17 -0
- package/src/types/baseSDK.ts +10 -0
- package/src/types/business.ts +34 -0
- package/src/types/card.ts +38 -0
- package/src/types/checkout.ts +157 -0
- package/src/types/common.ts +68 -0
- package/src/types/customer.ts +29 -0
- package/src/types/enrollment.ts +70 -0
- package/src/types/index.ts +18 -0
- package/src/types/inlineCheckout.ts +96 -0
- package/src/types/input.ts +17 -0
- package/src/types/liteCheckout.ts +108 -0
- package/src/types/openpay-react-native.d.ts +3 -0
- package/src/types/openpay.ts +8 -0
- package/src/types/payment.ts +66 -0
- package/src/types/secure.ts +3 -0
- package/src/types/skyflow-react-native.d.ts +81 -0
- package/src/types/threeDSHandler.ts +10 -0
- package/src/types/transaction.ts +106 -0
- package/src/ui/components/Button/ProcessButton.tsx +57 -0
- package/src/ui/components/CardForm/index.tsx +91 -0
- package/src/ui/components/Checkbox/Checkbox.tsx +56 -0
- package/src/ui/components/Input/CardCVVInput.tsx +91 -0
- package/src/ui/components/Input/CardExpirationDateInput.tsx +95 -0
- package/src/ui/components/Input/CardExpirationMonthInput.tsx +90 -0
- package/src/ui/components/Input/CardExpirationYearInput.tsx +91 -0
- package/src/ui/components/Input/CardHolderInput.tsx +91 -0
- package/src/ui/components/Input/CardNumberInput.tsx +90 -0
- package/src/ui/components/PaymentMethodsList/index.tsx +103 -0
- package/src/ui/components/RadioButton/index.tsx +57 -0
- package/src/ui/components/SavedCardsList/index.tsx +137 -0
- package/src/ui/components/Skeleton/CardFormSkeleton.tsx +109 -0
- package/src/ui/components/WebView/ThreeDSWebView.tsx +110 -0
- package/src/ui/features/TonderEnrollment/index.tsx +141 -0
- package/src/ui/features/TonderPayment/index.tsx +243 -0
- package/src/ui/providers/InnerProvider/index.tsx +24 -0
- package/src/ui/providers/SkyflowContainerWrapper/index.tsx +35 -0
- package/src/ui/providers/TonderProvider/context.tsx +11 -0
- package/src/ui/providers/TonderProvider/hook.ts +10 -0
- package/src/ui/providers/TonderProvider/index.tsx +110 -0
- package/src/ui/providers/TonderProvider/uiWrapper.ts +67 -0
- package/src/ui/styles/payment.ts +23 -0
- package/src/ui/styles/skyflow.ts +58 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { PAYMENT_METHODS } from '@shared/constants/paymentMethods';
|
|
2
|
+
import { clearSpace } from '@shared/utils/stringUtils';
|
|
3
|
+
|
|
4
|
+
const PAYMENT_METHODS_CATALOG: {
|
|
5
|
+
[key: string]: { label: string; icon: string };
|
|
6
|
+
} = {
|
|
7
|
+
[PAYMENT_METHODS.SORIANA]: {
|
|
8
|
+
label: 'Soriana',
|
|
9
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/soriana.png',
|
|
10
|
+
},
|
|
11
|
+
[PAYMENT_METHODS.OXXO]: {
|
|
12
|
+
label: 'Oxxo',
|
|
13
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/oxxo.png',
|
|
14
|
+
},
|
|
15
|
+
[PAYMENT_METHODS.CODI]: {
|
|
16
|
+
label: 'CoDi',
|
|
17
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/codi.png',
|
|
18
|
+
},
|
|
19
|
+
[PAYMENT_METHODS.SPEI]: {
|
|
20
|
+
label: 'SPEI',
|
|
21
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/spei.png',
|
|
22
|
+
},
|
|
23
|
+
[PAYMENT_METHODS.PAYPAL]: {
|
|
24
|
+
label: 'Paypal',
|
|
25
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/paypal.png',
|
|
26
|
+
},
|
|
27
|
+
[PAYMENT_METHODS.COMERCIALMEXICANA]: {
|
|
28
|
+
label: 'Comercial Mexicana',
|
|
29
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/comercial_exicana.png',
|
|
30
|
+
},
|
|
31
|
+
[PAYMENT_METHODS.BANCOMER]: {
|
|
32
|
+
label: 'Bancomer',
|
|
33
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/bancomer.png',
|
|
34
|
+
},
|
|
35
|
+
[PAYMENT_METHODS.WALMART]: {
|
|
36
|
+
label: 'Walmart',
|
|
37
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/walmart.png',
|
|
38
|
+
},
|
|
39
|
+
[PAYMENT_METHODS.BODEGA]: {
|
|
40
|
+
label: 'Bodega Aurrera',
|
|
41
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/bodega_aurrera.png',
|
|
42
|
+
},
|
|
43
|
+
[PAYMENT_METHODS.SAMSCLUB]: {
|
|
44
|
+
label: 'Sam´s Club',
|
|
45
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/sams_club.png',
|
|
46
|
+
},
|
|
47
|
+
[PAYMENT_METHODS.SUPERAMA]: {
|
|
48
|
+
label: 'Superama',
|
|
49
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/superama.png',
|
|
50
|
+
},
|
|
51
|
+
[PAYMENT_METHODS.CALIMAX]: {
|
|
52
|
+
label: 'Calimax',
|
|
53
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/calimax.png',
|
|
54
|
+
},
|
|
55
|
+
[PAYMENT_METHODS.EXTRA]: {
|
|
56
|
+
label: 'Tiendas Extra',
|
|
57
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/tiendas_extra.png',
|
|
58
|
+
},
|
|
59
|
+
[PAYMENT_METHODS.CIRCULOK]: {
|
|
60
|
+
label: 'Círculo K',
|
|
61
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/circulo_k.png',
|
|
62
|
+
},
|
|
63
|
+
[PAYMENT_METHODS.SEVEN11]: {
|
|
64
|
+
label: '7 Eleven',
|
|
65
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/7_eleven.png',
|
|
66
|
+
},
|
|
67
|
+
[PAYMENT_METHODS.TELECOMM]: {
|
|
68
|
+
label: 'Telecomm',
|
|
69
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/telecomm.png',
|
|
70
|
+
},
|
|
71
|
+
[PAYMENT_METHODS.BANORTE]: {
|
|
72
|
+
label: 'Banorte',
|
|
73
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/banorte.png',
|
|
74
|
+
},
|
|
75
|
+
[PAYMENT_METHODS.BENAVIDES]: {
|
|
76
|
+
label: 'Farmacias Benavides',
|
|
77
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_benavides.png',
|
|
78
|
+
},
|
|
79
|
+
[PAYMENT_METHODS.DELAHORRO]: {
|
|
80
|
+
label: 'Farmacias del Ahorro',
|
|
81
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_ahorro.png',
|
|
82
|
+
},
|
|
83
|
+
[PAYMENT_METHODS.ELASTURIANO]: {
|
|
84
|
+
label: 'El Asturiano',
|
|
85
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/asturiano.png',
|
|
86
|
+
},
|
|
87
|
+
[PAYMENT_METHODS.WALDOS]: {
|
|
88
|
+
label: 'Waldos',
|
|
89
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/waldos.png',
|
|
90
|
+
},
|
|
91
|
+
[PAYMENT_METHODS.ALSUPER]: {
|
|
92
|
+
label: 'Alsuper',
|
|
93
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/al_super.png',
|
|
94
|
+
},
|
|
95
|
+
[PAYMENT_METHODS.KIOSKO]: {
|
|
96
|
+
label: 'Kiosko',
|
|
97
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/kiosko.png',
|
|
98
|
+
},
|
|
99
|
+
[PAYMENT_METHODS.STAMARIA]: {
|
|
100
|
+
label: 'Farmacias Santa María',
|
|
101
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_santa_maria.png',
|
|
102
|
+
},
|
|
103
|
+
[PAYMENT_METHODS.LAMASBARATA]: {
|
|
104
|
+
label: 'Farmacias la más barata',
|
|
105
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_barata.png',
|
|
106
|
+
},
|
|
107
|
+
[PAYMENT_METHODS.FARMROMA]: {
|
|
108
|
+
label: 'Farmacias Roma',
|
|
109
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_roma.png',
|
|
110
|
+
},
|
|
111
|
+
[PAYMENT_METHODS.FARMUNION]: {
|
|
112
|
+
label: 'Pago en Farmacias Unión',
|
|
113
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_union.png',
|
|
114
|
+
},
|
|
115
|
+
[PAYMENT_METHODS.FARMATODO]: {
|
|
116
|
+
label: 'Pago en Farmacias Farmatodo',
|
|
117
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_farmatodo.png ',
|
|
118
|
+
},
|
|
119
|
+
[PAYMENT_METHODS.SFDEASIS]: {
|
|
120
|
+
label: 'Pago en Farmacias San Francisco de Asís',
|
|
121
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/farmacias_san_francisco.png',
|
|
122
|
+
},
|
|
123
|
+
[PAYMENT_METHODS.FARM911]: {
|
|
124
|
+
label: 'Farmacias 911',
|
|
125
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
126
|
+
},
|
|
127
|
+
[PAYMENT_METHODS.FARMECONOMICAS]: {
|
|
128
|
+
label: 'Farmacias Economicas',
|
|
129
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
130
|
+
},
|
|
131
|
+
[PAYMENT_METHODS.FARMMEDICITY]: {
|
|
132
|
+
label: 'Farmacias Medicity',
|
|
133
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
134
|
+
},
|
|
135
|
+
[PAYMENT_METHODS.RIANXEIRA]: {
|
|
136
|
+
label: 'Rianxeira',
|
|
137
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
138
|
+
},
|
|
139
|
+
[PAYMENT_METHODS.WESTERNUNION]: {
|
|
140
|
+
label: 'Western Union',
|
|
141
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
142
|
+
},
|
|
143
|
+
[PAYMENT_METHODS.ZONAPAGO]: {
|
|
144
|
+
label: 'Zona Pago',
|
|
145
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
146
|
+
},
|
|
147
|
+
[PAYMENT_METHODS.CAJALOSANDES]: {
|
|
148
|
+
label: 'Caja Los Andes',
|
|
149
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
150
|
+
},
|
|
151
|
+
[PAYMENT_METHODS.CAJAPAITA]: {
|
|
152
|
+
label: 'Caja Paita',
|
|
153
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
154
|
+
},
|
|
155
|
+
[PAYMENT_METHODS.CAJASANTA]: {
|
|
156
|
+
label: 'Caja Santa',
|
|
157
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
158
|
+
},
|
|
159
|
+
[PAYMENT_METHODS.CAJASULLANA]: {
|
|
160
|
+
label: 'Caja Sullana',
|
|
161
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
162
|
+
},
|
|
163
|
+
[PAYMENT_METHODS.CAJATRUJILLO]: {
|
|
164
|
+
label: 'Caja Trujillo',
|
|
165
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
166
|
+
},
|
|
167
|
+
[PAYMENT_METHODS.EDPYME]: {
|
|
168
|
+
label: 'Edpyme',
|
|
169
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
170
|
+
},
|
|
171
|
+
[PAYMENT_METHODS.KASNET]: {
|
|
172
|
+
label: 'KasNet',
|
|
173
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
174
|
+
},
|
|
175
|
+
[PAYMENT_METHODS.NORANDINO]: {
|
|
176
|
+
label: 'Norandino',
|
|
177
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
178
|
+
},
|
|
179
|
+
[PAYMENT_METHODS.QAPAQ]: {
|
|
180
|
+
label: 'Qapaq',
|
|
181
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
182
|
+
},
|
|
183
|
+
[PAYMENT_METHODS.RAIZ]: {
|
|
184
|
+
label: 'Raiz',
|
|
185
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
186
|
+
},
|
|
187
|
+
[PAYMENT_METHODS.PAYSER]: {
|
|
188
|
+
label: 'Paysera',
|
|
189
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
190
|
+
},
|
|
191
|
+
[PAYMENT_METHODS.WUNION]: {
|
|
192
|
+
label: 'Western Union',
|
|
193
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
194
|
+
},
|
|
195
|
+
[PAYMENT_METHODS.BANCOCONTINENTAL]: {
|
|
196
|
+
label: 'Banco Continental',
|
|
197
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
198
|
+
},
|
|
199
|
+
[PAYMENT_METHODS.GMONEY]: {
|
|
200
|
+
label: 'Go money',
|
|
201
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
202
|
+
},
|
|
203
|
+
[PAYMENT_METHODS.GOPAY]: {
|
|
204
|
+
label: 'Go pay',
|
|
205
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
206
|
+
},
|
|
207
|
+
[PAYMENT_METHODS.WU]: {
|
|
208
|
+
label: 'Western Union',
|
|
209
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
210
|
+
},
|
|
211
|
+
[PAYMENT_METHODS.PUNTOSHEY]: {
|
|
212
|
+
label: 'Puntoshey',
|
|
213
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
214
|
+
},
|
|
215
|
+
[PAYMENT_METHODS.AMPM]: {
|
|
216
|
+
label: 'Ampm',
|
|
217
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
218
|
+
},
|
|
219
|
+
[PAYMENT_METHODS.JUMBOMARKET]: {
|
|
220
|
+
label: 'Jumbomarket',
|
|
221
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
222
|
+
},
|
|
223
|
+
[PAYMENT_METHODS.SMELPUEBLO]: {
|
|
224
|
+
label: 'Smelpueblo',
|
|
225
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
226
|
+
},
|
|
227
|
+
[PAYMENT_METHODS.BAM]: {
|
|
228
|
+
label: 'Bam',
|
|
229
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
230
|
+
},
|
|
231
|
+
[PAYMENT_METHODS.REFACIL]: {
|
|
232
|
+
label: 'Refacil',
|
|
233
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
234
|
+
},
|
|
235
|
+
[PAYMENT_METHODS.ACYVALORES]: {
|
|
236
|
+
label: 'Acyvalores',
|
|
237
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
type PaymentMethodKey = keyof typeof PAYMENT_METHODS_CATALOG;
|
|
242
|
+
|
|
243
|
+
export const getPaymentMethodDetails = (
|
|
244
|
+
scheme_data: string
|
|
245
|
+
): { label: string; icon: string } => {
|
|
246
|
+
const scheme: PaymentMethodKey = clearSpace(scheme_data.toUpperCase());
|
|
247
|
+
const _default = {
|
|
248
|
+
icon: 'https://d35a75syrgujp0.cloudfront.net/payment_methods/store.png',
|
|
249
|
+
label: '',
|
|
250
|
+
};
|
|
251
|
+
return PAYMENT_METHODS_CATALOG[scheme] || _default;
|
|
252
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { ErrorKeyEnum } from '@shared/enum';
|
|
2
|
+
|
|
3
|
+
export const MESSAGES_EN = {
|
|
4
|
+
[ErrorKeyEnum.INIT_ERROR]: 'Error initializing the SDK.',
|
|
5
|
+
[ErrorKeyEnum.INVALID_TYPE]: 'SDK Type invalid.',
|
|
6
|
+
[ErrorKeyEnum.STATE_ERROR]: 'Error updating SDK state.',
|
|
7
|
+
[ErrorKeyEnum.FETCH_BUSINESS_ERROR]: 'Error retrieving merchant information.',
|
|
8
|
+
[ErrorKeyEnum.INVALID_CONFIG]: 'Required configuration options.',
|
|
9
|
+
[ErrorKeyEnum.MERCHANT_CREDENTIAL_REQUIRED]: 'Merchant credential required.',
|
|
10
|
+
[ErrorKeyEnum.INVALID_PAYMENT_REQUEST]:
|
|
11
|
+
'The payment data must be of type: :::interface:::.',
|
|
12
|
+
[ErrorKeyEnum.INVALID_PAYMENT_REQUEST_CARD_PM]:
|
|
13
|
+
'The fields card and payment_method cannot be provided together.',
|
|
14
|
+
[ErrorKeyEnum.TYPE_SDK_REQUIRED]: 'SDK type required.',
|
|
15
|
+
[ErrorKeyEnum.ENVIRONMENT_REQUIRED]: 'Environment required.',
|
|
16
|
+
[ErrorKeyEnum.FETCH_CARDS_ERROR]: 'Error retrieving cards.',
|
|
17
|
+
[ErrorKeyEnum.CUSTOMER_AUTH_TOKEN_NOT_VALID]:
|
|
18
|
+
"The customer's auth token is invalid. Please verify that the customer's data was provided when creating the SDK (sdk.create) and try again.",
|
|
19
|
+
[ErrorKeyEnum.SAVE_CARD_ERROR]: 'Error saving the card.',
|
|
20
|
+
[ErrorKeyEnum.REMOVE_CARD_ERROR]: 'Error deleting the card.',
|
|
21
|
+
[ErrorKeyEnum.CREATE_PAYMENT_ERROR]: 'Error creating the payment.',
|
|
22
|
+
[ErrorKeyEnum.PAYMENT_PROCESS_ERROR]:
|
|
23
|
+
'There was an issue processing the payment.',
|
|
24
|
+
[ErrorKeyEnum.CARD_SAVED_SUCCESSFULLY]: 'Card saved successfully.',
|
|
25
|
+
[ErrorKeyEnum.CARD_REMOVED_SUCCESSFULLY]: 'Card deleted successfully.',
|
|
26
|
+
[ErrorKeyEnum.SAVE_CARD_PROCESS_ERROR]: 'Error processing card data.',
|
|
27
|
+
[ErrorKeyEnum.START_CHECKOUT_ERROR]: 'Error processing the payment.',
|
|
28
|
+
[ErrorKeyEnum.CREATE_ORDER_ERROR]: 'Error creating the order.',
|
|
29
|
+
[ErrorKeyEnum.BUSINESS_ID_REQUIRED]: 'Business ID is required.',
|
|
30
|
+
[ErrorKeyEnum.CLIENT_ID_REQUIRED]: 'Client ID is required.',
|
|
31
|
+
[ErrorKeyEnum.INVALID_AMOUNT]: 'Invalid amount.',
|
|
32
|
+
[ErrorKeyEnum.INVALID_ITEMS]: 'Invalid items.',
|
|
33
|
+
[ErrorKeyEnum.CUSTOMER_OPERATION_ERROR]:
|
|
34
|
+
'Error registering or fetching customer',
|
|
35
|
+
[ErrorKeyEnum.INVALID_EMAIL]: 'Invalid email.',
|
|
36
|
+
[ErrorKeyEnum.FETCH_PAYMENT_METHODS_ERROR]:
|
|
37
|
+
'Error retrieving active payment methods.',
|
|
38
|
+
[ErrorKeyEnum.INVALID_VAULT_TOKEN]:
|
|
39
|
+
'An invalid vault token response was received.',
|
|
40
|
+
[ErrorKeyEnum.VAULT_TOKEN_ERROR]: 'Error retrieving the vault token.',
|
|
41
|
+
[ErrorKeyEnum.SECURE_TOKEN_ERROR]: 'Error getting secure token.',
|
|
42
|
+
[ErrorKeyEnum.SECURE_TOKEN_INVALID]: 'Invalid secure token.',
|
|
43
|
+
[ErrorKeyEnum.INVALID_SECRET_API_KEY]: 'SECRET API KEY is required.',
|
|
44
|
+
[ErrorKeyEnum.REMOVE_CARD]: 'Card deleted successfully',
|
|
45
|
+
[ErrorKeyEnum.SKYFLOW_NOT_INITIALIZED]: 'Skyflow not initialized.',
|
|
46
|
+
[ErrorKeyEnum.ERROR_LOAD_PAYMENT_FORM]:
|
|
47
|
+
'There was an issue loading the payment form.',
|
|
48
|
+
[ErrorKeyEnum.INVALID_CARD_DATA]: 'Invalid card data.',
|
|
49
|
+
[ErrorKeyEnum.ERROR_LOAD_ENROLLMENT_FORM]:
|
|
50
|
+
'There was an issue loading the card form.',
|
|
51
|
+
[ErrorKeyEnum.REQUEST_ABORTED]: 'Requests canceled.',
|
|
52
|
+
[ErrorKeyEnum.REQUEST_FAILED]: 'Request failed.',
|
|
53
|
+
[ErrorKeyEnum.UNKNOWN_ERROR]: 'An unexpected error occurred.',
|
|
54
|
+
[ErrorKeyEnum.CREATE_ERROR]: 'Error creating the SDK.',
|
|
55
|
+
[ErrorKeyEnum.FETCH_TRANSACTION_ERROR]: 'Error retrieving the transaction.',
|
|
56
|
+
[ErrorKeyEnum.THREEDS_REDIRECTION_ERROR]:
|
|
57
|
+
'Ocurrió un error durante la redirección de 3DS.',
|
|
58
|
+
[ErrorKeyEnum.REMOVE_SDK_ERROR]:
|
|
59
|
+
'Ocurrió un error removiendo la instancia del SDK.',
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const MESSAGES_ES = {
|
|
63
|
+
[ErrorKeyEnum.INIT_ERROR]: 'Error inicializando el SDK',
|
|
64
|
+
[ErrorKeyEnum.STATE_ERROR]: 'Error actualizando el estado del SDK.',
|
|
65
|
+
[ErrorKeyEnum.FETCH_BUSINESS_ERROR]:
|
|
66
|
+
'Error obteniendo información del comercio',
|
|
67
|
+
[ErrorKeyEnum.INVALID_CONFIG]: 'Opciones de configuración requeridas',
|
|
68
|
+
[ErrorKeyEnum.TYPE_SDK_REQUIRED]: 'Tipo de SDK requerido',
|
|
69
|
+
[ErrorKeyEnum.ENVIRONMENT_REQUIRED]: 'Ambiente requerido',
|
|
70
|
+
[ErrorKeyEnum.FETCH_CARDS_ERROR]: 'Error obteniendo las tarjetas.',
|
|
71
|
+
[ErrorKeyEnum.SAVE_CARD_ERROR]: 'Error guardando la tarjeta',
|
|
72
|
+
[ErrorKeyEnum.REMOVE_CARD_ERROR]: 'Error eliminando la tarjeta.',
|
|
73
|
+
[ErrorKeyEnum.CREATE_PAYMENT_ERROR]: 'Error creando el pago.',
|
|
74
|
+
[ErrorKeyEnum.START_CHECKOUT_ERROR]: 'Error al procesar el pago.',
|
|
75
|
+
[ErrorKeyEnum.CREATE_ORDER_ERROR]: 'Error creando la orden.',
|
|
76
|
+
[ErrorKeyEnum.BUSINESS_ID_REQUIRED]: 'ID de Comercio es requerido',
|
|
77
|
+
[ErrorKeyEnum.CLIENT_ID_REQUIRED]: 'ID de Cliente es requerido.',
|
|
78
|
+
[ErrorKeyEnum.INVALID_AMOUNT]: 'Monto no válido.',
|
|
79
|
+
[ErrorKeyEnum.INVALID_ITEMS]: 'Artículos no válidos.',
|
|
80
|
+
[ErrorKeyEnum.CUSTOMER_OPERATION_ERROR]:
|
|
81
|
+
'Error registrando u obteniendo el cliente.',
|
|
82
|
+
[ErrorKeyEnum.INVALID_EMAIL]: 'Correo electrónico no válido.',
|
|
83
|
+
[ErrorKeyEnum.FETCH_PAYMENT_METHODS_ERROR]:
|
|
84
|
+
'Error obteniendo los métodos de pago activos.',
|
|
85
|
+
[ErrorKeyEnum.INVALID_VAULT_TOKEN]:
|
|
86
|
+
'Se recibió una respuesta de token de bóveda no válida.',
|
|
87
|
+
[ErrorKeyEnum.VAULT_TOKEN_ERROR]: 'Error al obtener el token de la bóveda.',
|
|
88
|
+
[ErrorKeyEnum.SECURE_TOKEN_ERROR]: 'Error obteniendo el token seguro.',
|
|
89
|
+
[ErrorKeyEnum.INVALID_SECRET_API_KEY]: 'SECRET API KEY es requerido.',
|
|
90
|
+
[ErrorKeyEnum.CUSTOMER_AUTH_TOKEN_NOT_VALID]:
|
|
91
|
+
'El token del cliente no es valido, por favor verifica que se haya proporcionado los datos del cliente al crear el sdk (sdk.create) e intenta nuevamente.',
|
|
92
|
+
[ErrorKeyEnum.SECURE_TOKEN_INVALID]: 'Token de seguridad inválido.',
|
|
93
|
+
[ErrorKeyEnum.REMOVE_CARD]: 'Tarjeta eliminada exitosamente.',
|
|
94
|
+
[ErrorKeyEnum.SKYFLOW_NOT_INITIALIZED]: 'Skyflow no inicializado.',
|
|
95
|
+
[ErrorKeyEnum.INVALID_TYPE]: 'Tipo de SDK inválido.',
|
|
96
|
+
[ErrorKeyEnum.PAYMENT_PROCESS_ERROR]: 'Hubo un problema al procesar el pago.',
|
|
97
|
+
[ErrorKeyEnum.INVALID_PAYMENT_REQUEST]:
|
|
98
|
+
'Los datos de pago deben ser del tipo: :::interface:::}}.',
|
|
99
|
+
[ErrorKeyEnum.INVALID_PAYMENT_REQUEST_CARD_PM]:
|
|
100
|
+
'Los datos card y payment_method no se pueden proporcionar juntos.',
|
|
101
|
+
[ErrorKeyEnum.SAVE_CARD_PROCESS_ERROR]:
|
|
102
|
+
'Error procesando los datos de la tarjeta.',
|
|
103
|
+
[ErrorKeyEnum.ERROR_LOAD_PAYMENT_FORM]:
|
|
104
|
+
'Hubo un problema cargando el formulario de pago.',
|
|
105
|
+
[ErrorKeyEnum.INVALID_CARD_DATA]: 'Datos de tarjeta no válidos.',
|
|
106
|
+
[ErrorKeyEnum.ERROR_LOAD_ENROLLMENT_FORM]:
|
|
107
|
+
'Hubo un problema cargando el formulario de tarjeta.',
|
|
108
|
+
[ErrorKeyEnum.CARD_SAVED_SUCCESSFULLY]: 'Tarjeta registrada con éxito.',
|
|
109
|
+
[ErrorKeyEnum.CARD_REMOVED_SUCCESSFULLY]: 'Tarjeta eliminada con éxito.',
|
|
110
|
+
[ErrorKeyEnum.REQUEST_ABORTED]: 'Peticiones canceladas.',
|
|
111
|
+
[ErrorKeyEnum.REQUEST_FAILED]: 'Petición fallida.',
|
|
112
|
+
[ErrorKeyEnum.UNKNOWN_ERROR]: 'Ocurrió un error inesperado.',
|
|
113
|
+
[ErrorKeyEnum.CREATE_ERROR]: 'Error creando el SDK.',
|
|
114
|
+
[ErrorKeyEnum.FETCH_TRANSACTION_ERROR]: 'Error obteniendo la transacción',
|
|
115
|
+
[ErrorKeyEnum.THREEDS_REDIRECTION_ERROR]:
|
|
116
|
+
'An error occurred during the 3DS redirection.',
|
|
117
|
+
[ErrorKeyEnum.REMOVE_SDK_ERROR]:
|
|
118
|
+
'An error occurred while removing the SDK instance.',
|
|
119
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const PAYMENT_METHODS = Object.freeze({
|
|
2
|
+
SORIANA: 'SORIANA',
|
|
3
|
+
OXXO: 'OXXO',
|
|
4
|
+
SPEI: 'SPEI',
|
|
5
|
+
CODI: 'CODI',
|
|
6
|
+
MERCADOPAGO: 'MERCADOPAGO',
|
|
7
|
+
PAYPAL: 'PAYPAL',
|
|
8
|
+
COMERCIALMEXICANA: 'COMERCIALMEXICANA',
|
|
9
|
+
BANCOMER: 'BANCOMER',
|
|
10
|
+
WALMART: 'WALMART',
|
|
11
|
+
BODEGA: 'BODEGA',
|
|
12
|
+
SAMSCLUB: 'SAMSCLUB',
|
|
13
|
+
SUPERAMA: 'SUPERAMA',
|
|
14
|
+
CALIMAX: 'CALIMAX',
|
|
15
|
+
EXTRA: 'EXTRA',
|
|
16
|
+
CIRCULOK: 'CIRCULOK',
|
|
17
|
+
SEVEN11: '7ELEVEN',
|
|
18
|
+
TELECOMM: 'TELECOMM',
|
|
19
|
+
BANORTE: 'BANORTE',
|
|
20
|
+
BENAVIDES: 'BENAVIDES',
|
|
21
|
+
DELAHORRO: 'DELAHORRO',
|
|
22
|
+
ELASTURIANO: 'ELASTURIANO',
|
|
23
|
+
WALDOS: 'WALDOS',
|
|
24
|
+
ALSUPER: 'ALSUPER',
|
|
25
|
+
KIOSKO: 'KIOSKO',
|
|
26
|
+
STAMARIA: 'STAMARIA',
|
|
27
|
+
LAMASBARATA: 'LAMASBARATA',
|
|
28
|
+
FARMROMA: 'FARMROMA',
|
|
29
|
+
FARMUNION: 'FARMUNION',
|
|
30
|
+
FARMATODO: 'FARMATODO',
|
|
31
|
+
SFDEASIS: 'SFDEASIS',
|
|
32
|
+
FARM911: 'FARM911',
|
|
33
|
+
FARMECONOMICAS: 'FARMECONOMICAS',
|
|
34
|
+
FARMMEDICITY: 'FARMMEDICITY',
|
|
35
|
+
RIANXEIRA: 'RIANXEIRA',
|
|
36
|
+
WESTERNUNION: 'WESTERNUNION',
|
|
37
|
+
ZONAPAGO: 'ZONAPAGO',
|
|
38
|
+
CAJALOSANDES: 'CAJALOSANDES',
|
|
39
|
+
CAJAPAITA: 'CAJAPAITA',
|
|
40
|
+
CAJASANTA: 'CAJASANTA',
|
|
41
|
+
CAJASULLANA: 'CAJASULLANA',
|
|
42
|
+
CAJATRUJILLO: 'CAJATRUJILLO',
|
|
43
|
+
EDPYME: 'EDPYME',
|
|
44
|
+
KASNET: 'KASNET',
|
|
45
|
+
NORANDINO: 'NORANDINO',
|
|
46
|
+
QAPAQ: 'QAPAQ',
|
|
47
|
+
RAIZ: 'RAIZ',
|
|
48
|
+
PAYSER: 'PAYSER',
|
|
49
|
+
WUNION: 'WUNION',
|
|
50
|
+
BANCOCONTINENTAL: 'BANCOCONTINENTAL',
|
|
51
|
+
GMONEY: 'GMONEY',
|
|
52
|
+
GOPAY: 'GOPAY',
|
|
53
|
+
WU: 'WU',
|
|
54
|
+
PUNTOSHEY: 'PUNTOSHEY',
|
|
55
|
+
AMPM: 'AMPM',
|
|
56
|
+
JUMBOMARKET: 'JUMBOMARKET',
|
|
57
|
+
SMELPUEBLO: 'SMELPUEBLO',
|
|
58
|
+
BAM: 'BAM',
|
|
59
|
+
REFACIL: 'REFACIL',
|
|
60
|
+
ACYVALORES: 'ACYVALORES',
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export { PAYMENT_METHODS };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ValidationRuleType } from 'skyflow-react-native';
|
|
2
|
+
const lengthMatchRule = {
|
|
3
|
+
type: ValidationRuleType.LENGTH_MATCH_RULE,
|
|
4
|
+
params: {
|
|
5
|
+
max: 70,
|
|
6
|
+
},
|
|
7
|
+
};
|
|
8
|
+
const regexEmpty = RegExp('^(?!s*$).+');
|
|
9
|
+
|
|
10
|
+
const regexMatchRule = {
|
|
11
|
+
type: ValidationRuleType.REGEX_MATCH_RULE,
|
|
12
|
+
params: {
|
|
13
|
+
regex: regexEmpty,
|
|
14
|
+
error: 'El campo es requerido', // Optional, default error is 'VALIDATION FAILED'.
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const getErrorField = (
|
|
19
|
+
event: {
|
|
20
|
+
elementType?: string;
|
|
21
|
+
isEmpty?: boolean;
|
|
22
|
+
isFocused?: boolean;
|
|
23
|
+
isValid?: boolean;
|
|
24
|
+
value?: string;
|
|
25
|
+
},
|
|
26
|
+
field: string
|
|
27
|
+
) => {
|
|
28
|
+
if (event.isEmpty) {
|
|
29
|
+
return 'El campo es requerido';
|
|
30
|
+
} else if (!event.isValid && !event.isEmpty) {
|
|
31
|
+
return `El campo ${field} es inválido`;
|
|
32
|
+
} else {
|
|
33
|
+
return '';
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const DEFAULT_SKYFLOW_lABELS = {
|
|
38
|
+
nameLabel: 'Titular de la tarjeta',
|
|
39
|
+
cardLabel: 'Número de tarjeta',
|
|
40
|
+
cvvLabel: 'CVC/CVV',
|
|
41
|
+
expiryMonthLabel: 'Mes',
|
|
42
|
+
expiryYearLabel: 'Año',
|
|
43
|
+
expiryDateLabel: 'Fecha de expiración',
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const DEFAULT_SKYFLOW_PLACEHOLDERS = {
|
|
47
|
+
namePlaceholder: 'Nombre como aparece en la tarjeta',
|
|
48
|
+
cardPlaceholder: '1234 1234 1234 1234',
|
|
49
|
+
cvvPlaceholder: '3-4 dígitos',
|
|
50
|
+
expiryMonthPlaceholder: 'MM',
|
|
51
|
+
expiryYearPlaceholder: 'AA',
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
lengthMatchRule,
|
|
56
|
+
regexMatchRule,
|
|
57
|
+
getErrorField,
|
|
58
|
+
DEFAULT_SKYFLOW_lABELS,
|
|
59
|
+
DEFAULT_SKYFLOW_PLACEHOLDERS,
|
|
60
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export enum ErrorKeyEnum {
|
|
2
|
+
INIT_ERROR = 'INIT_ERROR',
|
|
3
|
+
CREATE_ERROR = 'CREATE_ERROR',
|
|
4
|
+
REMOVE_SDK_ERROR = 'REMOVE_SDK_ERROR',
|
|
5
|
+
INVALID_TYPE = 'INVALID_TYPE',
|
|
6
|
+
STATE_ERROR = 'STATE_ERROR',
|
|
7
|
+
FETCH_BUSINESS_ERROR = 'FETCH_BUSINESS_ERROR',
|
|
8
|
+
INVALID_CONFIG = 'INVALID_CONFIG',
|
|
9
|
+
MERCHANT_CREDENTIAL_REQUIRED = 'MERCHANT_CREDENTIAL_REQUIRED',
|
|
10
|
+
INVALID_PAYMENT_REQUEST = 'INVALID_PAYMENT_REQUEST',
|
|
11
|
+
INVALID_PAYMENT_REQUEST_CARD_PM = 'INVALID_PAYMENT_REQUEST_CARD_PM',
|
|
12
|
+
TYPE_SDK_REQUIRED = 'TYPE_SDK_REQUIRED',
|
|
13
|
+
ENVIRONMENT_REQUIRED = 'ENVIRONMENT_REQUIRED',
|
|
14
|
+
FETCH_CARDS_ERROR = 'FETCH_CARDS_ERROR',
|
|
15
|
+
FETCH_TRANSACTION_ERROR = 'FETCH_TRANSACTION_ERROR',
|
|
16
|
+
CUSTOMER_AUTH_TOKEN_NOT_VALID = 'CUSTOMER_AUTH_TOKEN_NOT_VALID',
|
|
17
|
+
SAVE_CARD_ERROR = 'SAVE_CARD_ERROR',
|
|
18
|
+
REMOVE_CARD_ERROR = 'REMOVE_CARD_ERROR',
|
|
19
|
+
CREATE_PAYMENT_ERROR = 'CREATE_PAYMENT_ERROR',
|
|
20
|
+
PAYMENT_PROCESS_ERROR = 'PAYMENT_PROCESS_ERROR',
|
|
21
|
+
INVALID_CARD_DATA = 'INVALID_CARD_DATA',
|
|
22
|
+
SAVE_CARD_PROCESS_ERROR = 'SAVE_CARD_PROCESS_ERROR',
|
|
23
|
+
START_CHECKOUT_ERROR = 'START_CHECKOUT_ERROR',
|
|
24
|
+
CREATE_ORDER_ERROR = 'CREATE_ORDER_ERROR',
|
|
25
|
+
BUSINESS_ID_REQUIRED = 'BUSINESS_ID_REQUIRED',
|
|
26
|
+
CLIENT_ID_REQUIRED = 'CLIENT_ID_REQUIRED',
|
|
27
|
+
INVALID_AMOUNT = 'INVALID_AMOUNT',
|
|
28
|
+
INVALID_ITEMS = 'INVALID_ITEMS',
|
|
29
|
+
CUSTOMER_OPERATION_ERROR = 'CUSTOMER_OPERATION_ERROR',
|
|
30
|
+
INVALID_EMAIL = 'INVALID_EMAIL',
|
|
31
|
+
FETCH_PAYMENT_METHODS_ERROR = 'FETCH_PAYMENT_METHODS_ERROR',
|
|
32
|
+
INVALID_VAULT_TOKEN = 'INVALID_VAULT_TOKEN',
|
|
33
|
+
VAULT_TOKEN_ERROR = 'VAULT_TOKEN_ERROR',
|
|
34
|
+
SECURE_TOKEN_ERROR = 'SECURE_TOKEN_ERROR',
|
|
35
|
+
SECURE_TOKEN_INVALID = 'SECURE_TOKEN_INVALID',
|
|
36
|
+
INVALID_SECRET_API_KEY = 'INVALID_SECRET_API_KEY',
|
|
37
|
+
REMOVE_CARD = 'REMOVE_CARD',
|
|
38
|
+
SKYFLOW_NOT_INITIALIZED = 'SKYFLOW_NOT_INITIALIZED',
|
|
39
|
+
ERROR_LOAD_PAYMENT_FORM = 'ERROR_LOAD_PAYMENT_FORM',
|
|
40
|
+
ERROR_LOAD_ENROLLMENT_FORM = 'ERROR_LOAD_ENROLLMENT_FORM',
|
|
41
|
+
CARD_SAVED_SUCCESSFULLY = 'CARD_SAVED_SUCCESSFULLY',
|
|
42
|
+
CARD_REMOVED_SUCCESSFULLY = 'CARD_REMOVED_SUCCESSFULLY',
|
|
43
|
+
REQUEST_ABORTED = 'REQUEST_ABORTED',
|
|
44
|
+
REQUEST_FAILED = 'REQUEST_FAILED',
|
|
45
|
+
UNKNOWN_ERROR = 'UNKNOWN_ERROR',
|
|
46
|
+
THREEDS_REDIRECTION_ERROR = 'THREEDS_REDIRECTION_ERROR',
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorKeyEnum';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { IBrowserInfo } from '@types';
|
|
2
|
+
|
|
3
|
+
export const getAppInfo = (): IBrowserInfo => {
|
|
4
|
+
// TODO: IMPLEMENT getAppInfo IBrowserInfo
|
|
5
|
+
return {} as IBrowserInfo;
|
|
6
|
+
// return {
|
|
7
|
+
// javascript_enabled: true, // Assumed since JavaScript is running
|
|
8
|
+
// time_zone: new Date().getTimezoneOffset(),
|
|
9
|
+
// language: navigator.language || 'en-US', // Fallback to 'en-US'
|
|
10
|
+
// color_depth: window.screen ? window.screen.colorDepth : null,
|
|
11
|
+
// screen_width: window.screen
|
|
12
|
+
// ? window.screen.width * window.devicePixelRatio || window.screen.width
|
|
13
|
+
// : null,
|
|
14
|
+
// screen_height: window.screen
|
|
15
|
+
// ? window.screen.height * window.devicePixelRatio || window.screen.height
|
|
16
|
+
// : null,
|
|
17
|
+
// user_agent: navigator.userAgent,
|
|
18
|
+
// };
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const executeCallback = async ({
|
|
22
|
+
callbacks,
|
|
23
|
+
callback,
|
|
24
|
+
data = null,
|
|
25
|
+
throwError = false,
|
|
26
|
+
}: {
|
|
27
|
+
callbacks?: any;
|
|
28
|
+
callback: string;
|
|
29
|
+
data?: any;
|
|
30
|
+
throwError?: boolean;
|
|
31
|
+
}) => {
|
|
32
|
+
try {
|
|
33
|
+
if (callbacks && callback in callbacks) {
|
|
34
|
+
if (data) {
|
|
35
|
+
await callbacks[callback](data);
|
|
36
|
+
} else {
|
|
37
|
+
await callbacks[callback]();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
} catch (e) {
|
|
41
|
+
console.error(e);
|
|
42
|
+
if (throwError) {
|
|
43
|
+
throw e;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MESSAGES_EN } from '@shared/constants';
|
|
2
|
+
|
|
3
|
+
export interface IParamsTonderError {
|
|
4
|
+
code: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
details?: any;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class TonderError extends Error {
|
|
10
|
+
public details: { code: string; message: string; [key: string]: any };
|
|
11
|
+
public code: string;
|
|
12
|
+
constructor(params: IParamsTonderError) {
|
|
13
|
+
const resolvedMessage =
|
|
14
|
+
params.message || MESSAGES_EN[params.code] || 'Unknown error';
|
|
15
|
+
super(resolvedMessage);
|
|
16
|
+
this.name = 'TonderError';
|
|
17
|
+
this.code = params.code;
|
|
18
|
+
this.details = {
|
|
19
|
+
code: params.details?.code || params.code,
|
|
20
|
+
message: params.details?.message || resolvedMessage,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default TonderError;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defaultTo, get } from 'lodash';
|
|
2
|
+
import { getPaymentMethodDetails } from '@shared/catalog/paymentMethodsCatalog';
|
|
3
|
+
|
|
4
|
+
export const getPaymentMethodsWithDetails = (response) => {
|
|
5
|
+
return defaultTo(get(response, 'results'), [])
|
|
6
|
+
.filter((pmItem) => pmItem.category.toLowerCase() !== 'cards')
|
|
7
|
+
.map((pmItem) => {
|
|
8
|
+
return {
|
|
9
|
+
id: pmItem.pk,
|
|
10
|
+
payment_method: pmItem.payment_method,
|
|
11
|
+
priority: pmItem.priority,
|
|
12
|
+
category: pmItem.category,
|
|
13
|
+
...getPaymentMethodDetails(pmItem.payment_method),
|
|
14
|
+
};
|
|
15
|
+
})
|
|
16
|
+
.sort((a, b) => a.priority - b.priority);
|
|
17
|
+
};
|