@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,11 @@
|
|
|
1
|
+
import type { StylesBaseVariant } from '@types';
|
|
2
|
+
|
|
3
|
+
const buildBaseStyleText = (style?: StylesBaseVariant) => {
|
|
4
|
+
return {
|
|
5
|
+
...(style?.base?.fontSize ? { fontSize: style?.base?.fontSize } : {}),
|
|
6
|
+
...(style?.base?.color ? { color: style?.base?.color } : {}),
|
|
7
|
+
...(style?.base?.fontWeight ? { fontWeight: style?.base?.fontWeight } : {}),
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { buildBaseStyleText };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
IEnrollment,
|
|
3
|
+
IEnrollmentOptions,
|
|
4
|
+
IEnrollmentState,
|
|
5
|
+
IInlineCheckoutOptions,
|
|
6
|
+
IInlineCheckoutState,
|
|
7
|
+
ILiteCheckoutOptions,
|
|
8
|
+
ILiteCheckoutState,
|
|
9
|
+
IPaymentInlineContainer,
|
|
10
|
+
IPaymentLiteContainer,
|
|
11
|
+
} from '@types';
|
|
12
|
+
import type TonderError from '@shared/utils/errors';
|
|
13
|
+
import type PaymentInlineContainer from '@core/PaymentInlineContainer';
|
|
14
|
+
import type PaymentLiteContainer from '@core/PaymentLiteContainer';
|
|
15
|
+
import type { EnrollmentContainer } from '@core/EnrollmentContainer';
|
|
16
|
+
|
|
17
|
+
export type Environment = 'production' | 'sandbox' | 'stage' | 'development';
|
|
18
|
+
|
|
19
|
+
export enum SDKType {
|
|
20
|
+
INLINE = 'inline',
|
|
21
|
+
LITE = 'lite',
|
|
22
|
+
ENROLLMENT = 'enrollment',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type IBaseResponse<T> =
|
|
26
|
+
| { response: T; error?: never }
|
|
27
|
+
| { response?: never; error: TonderError };
|
|
28
|
+
|
|
29
|
+
export type SDKsContainer =
|
|
30
|
+
| PaymentInlineContainer
|
|
31
|
+
| PaymentLiteContainer
|
|
32
|
+
| EnrollmentContainer;
|
|
33
|
+
export interface ISDKBaseConfig {
|
|
34
|
+
mode: Environment;
|
|
35
|
+
apiKey: string;
|
|
36
|
+
type: SDKType;
|
|
37
|
+
returnURL?: string;
|
|
38
|
+
sdkId?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IBaseState<T extends SDKType> {
|
|
42
|
+
secureToken: string;
|
|
43
|
+
isCreated: boolean;
|
|
44
|
+
isCreating: boolean;
|
|
45
|
+
isProcessing: boolean;
|
|
46
|
+
error: TonderError | Error | null;
|
|
47
|
+
config: ISDKBaseConfig;
|
|
48
|
+
options: SDKOptions<T>;
|
|
49
|
+
message: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface IBaseCreateOptions {
|
|
53
|
+
secureToken?: string;
|
|
54
|
+
}
|
|
55
|
+
export type SDKOptionsMap = {
|
|
56
|
+
[SDKType.INLINE]: IInlineCheckoutOptions;
|
|
57
|
+
[SDKType.LITE]: ILiteCheckoutOptions;
|
|
58
|
+
[SDKType.ENROLLMENT]: IEnrollmentOptions;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// Helper type to get options type based on SDK type
|
|
62
|
+
export type SDKOptions<T extends SDKType> = SDKOptionsMap[T];
|
|
63
|
+
|
|
64
|
+
// Helper type to get instance type based on SDK type
|
|
65
|
+
export type SDKInstance<T extends SDKType> = T extends SDKType.INLINE
|
|
66
|
+
? IPaymentInlineContainer
|
|
67
|
+
: T extends SDKType.LITE
|
|
68
|
+
? IPaymentLiteContainer
|
|
69
|
+
: T extends SDKType.ENROLLMENT
|
|
70
|
+
? IEnrollment
|
|
71
|
+
: never;
|
|
72
|
+
|
|
73
|
+
export type SDKStateInstance<T extends SDKType> = T extends SDKType.INLINE
|
|
74
|
+
? IInlineCheckoutState
|
|
75
|
+
: T extends SDKType.LITE
|
|
76
|
+
? ILiteCheckoutState
|
|
77
|
+
: T extends SDKType.ENROLLMENT
|
|
78
|
+
? IEnrollmentState
|
|
79
|
+
: never;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Business,
|
|
3
|
+
IBaseProcessPaymentRequest,
|
|
4
|
+
IBaseState,
|
|
5
|
+
ICustomerResponse,
|
|
6
|
+
IInlineCallbacks,
|
|
7
|
+
IInlineCustomizationOptions,
|
|
8
|
+
IInternalProcessPaymentRequest,
|
|
9
|
+
ILiteCallbacks,
|
|
10
|
+
ILiteCustomizationOptions,
|
|
11
|
+
IProcessPaymentRequest,
|
|
12
|
+
ITransaction,
|
|
13
|
+
} from '@types';
|
|
14
|
+
import type { IConfig } from 'skyflow-react-native';
|
|
15
|
+
import { SDKType } from '@types';
|
|
16
|
+
import type TonderError from '@shared/utils/errors';
|
|
17
|
+
|
|
18
|
+
export interface IBaseUIState {
|
|
19
|
+
card?: string;
|
|
20
|
+
payment_method?: string;
|
|
21
|
+
saveCard?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IBaseCheckoutState<T extends SDKType> extends IBaseState<T> {
|
|
24
|
+
paymentData: IBaseProcessPaymentRequest | IProcessPaymentRequest;
|
|
25
|
+
customerData?: ICustomerResponse;
|
|
26
|
+
merchantData?: Business;
|
|
27
|
+
skyflowConfig?: IConfig;
|
|
28
|
+
internalPaymentData?: IInternalProcessPaymentRequest;
|
|
29
|
+
customization?: IInlineCustomizationOptions | ILiteCustomizationOptions;
|
|
30
|
+
callbacks?: IInlineCallbacks | ILiteCallbacks;
|
|
31
|
+
deviceSessionIds?: {
|
|
32
|
+
openPay: string;
|
|
33
|
+
mercadoPago: string;
|
|
34
|
+
};
|
|
35
|
+
returnURL: string;
|
|
36
|
+
uiData: IBaseUIState;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface IBaseCallback {
|
|
40
|
+
beforePayment?: () => Promise<void>;
|
|
41
|
+
onFinishPayment?: (response: ITransaction | TonderError) => Promise<void>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Business,
|
|
3
|
+
IBaseState,
|
|
4
|
+
ICustomer,
|
|
5
|
+
ICustomerResponse,
|
|
6
|
+
IEnrollmentCallbacks,
|
|
7
|
+
} from '@types';
|
|
8
|
+
import type { IConfig } from 'skyflow-react-native';
|
|
9
|
+
import { SDKType } from '@types';
|
|
10
|
+
|
|
11
|
+
export interface IBaseEnrollmentState extends IBaseState<SDKType.ENROLLMENT> {
|
|
12
|
+
customer?: ICustomer;
|
|
13
|
+
customerData?: ICustomerResponse;
|
|
14
|
+
merchantData?: Business;
|
|
15
|
+
skyflowConfig?: IConfig;
|
|
16
|
+
callbacks?: IEnrollmentCallbacks;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Business, IBaseState, ICustomerResponse } from '@types';
|
|
2
|
+
import type { IConfig } from 'skyflow-react-native';
|
|
3
|
+
import { SDKType } from '@types';
|
|
4
|
+
|
|
5
|
+
export interface IBaseSDKState<T extends SDKType> extends IBaseState<T> {
|
|
6
|
+
customerData?: ICustomerResponse;
|
|
7
|
+
merchantData?: Business;
|
|
8
|
+
skyflowConfig?: IConfig;
|
|
9
|
+
skyflowContainer?: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface Business {
|
|
2
|
+
business: {
|
|
3
|
+
pk: number;
|
|
4
|
+
name: string;
|
|
5
|
+
categories: {
|
|
6
|
+
pk: number;
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
web: string;
|
|
10
|
+
logo: string;
|
|
11
|
+
full_logo_url: string;
|
|
12
|
+
background_color: string;
|
|
13
|
+
primary_color: string;
|
|
14
|
+
checkout_mode: boolean;
|
|
15
|
+
textCheckoutColor: string;
|
|
16
|
+
textDetailsColor: string;
|
|
17
|
+
checkout_logo: string;
|
|
18
|
+
};
|
|
19
|
+
openpay_keys: {
|
|
20
|
+
merchant_id: string;
|
|
21
|
+
public_key: string;
|
|
22
|
+
};
|
|
23
|
+
fintoc_keys: {
|
|
24
|
+
public_key: string;
|
|
25
|
+
};
|
|
26
|
+
mercado_pago: {
|
|
27
|
+
active: boolean;
|
|
28
|
+
};
|
|
29
|
+
vault_id: string;
|
|
30
|
+
vault_url: string;
|
|
31
|
+
reference: string;
|
|
32
|
+
is_installments_available: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface GetBusinessResponse extends Business {}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface ISaveCardsOptionsBase {
|
|
2
|
+
autoSave?: boolean;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface ISaveCardsOptions extends ISaveCardsOptionsBase {
|
|
6
|
+
showSaveCardOption?: boolean;
|
|
7
|
+
showSaved?: boolean;
|
|
8
|
+
autoSave?: boolean;
|
|
9
|
+
showDeleteOption?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ICard {
|
|
13
|
+
fields: ICardSkyflowFields;
|
|
14
|
+
icon?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ICardSkyflowFields {
|
|
18
|
+
card_number: string;
|
|
19
|
+
expiration_month: string;
|
|
20
|
+
expiration_year: string;
|
|
21
|
+
skyflow_id: string;
|
|
22
|
+
card_scheme: string;
|
|
23
|
+
cardholder_name: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface ICustomerCardsResponse {
|
|
27
|
+
user_id: number;
|
|
28
|
+
cards: ICard[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ISaveCardResponse {
|
|
32
|
+
skyflow_id: string;
|
|
33
|
+
user_id: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface ISaveCardSkyflowRequest {
|
|
37
|
+
skyflow_id: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { IBrowserInfo } from './common';
|
|
2
|
+
import type { IItem } from './payment';
|
|
3
|
+
|
|
4
|
+
export interface IStartCheckoutBase {
|
|
5
|
+
name: string;
|
|
6
|
+
last_name: string;
|
|
7
|
+
email_client: string;
|
|
8
|
+
phone_number?: string;
|
|
9
|
+
return_url?: string;
|
|
10
|
+
id_product: string;
|
|
11
|
+
quantity_product: number;
|
|
12
|
+
id_ship: string;
|
|
13
|
+
instance_id_ship: string;
|
|
14
|
+
amount: number;
|
|
15
|
+
title_ship: string;
|
|
16
|
+
description: string;
|
|
17
|
+
device_session_id: string | null;
|
|
18
|
+
token_id: string;
|
|
19
|
+
order_id: string | number;
|
|
20
|
+
business_id: string | number;
|
|
21
|
+
payment_id: string | number;
|
|
22
|
+
source: string;
|
|
23
|
+
browser_info?: IBrowserInfo;
|
|
24
|
+
metadata: any;
|
|
25
|
+
currency: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type IStartCheckoutRequest = IStartCheckoutBase &
|
|
29
|
+
(
|
|
30
|
+
| { card: any; payment_method?: any }
|
|
31
|
+
| { card?: any; payment_method: string }
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
export interface IStartCheckoutIdRequest {
|
|
35
|
+
checkout_id: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface INextAction {
|
|
39
|
+
redirect_to_url?: {
|
|
40
|
+
url: string;
|
|
41
|
+
return_url: string;
|
|
42
|
+
verify_transaction_status_url: string;
|
|
43
|
+
};
|
|
44
|
+
iframe_resources?: {
|
|
45
|
+
iframe: string;
|
|
46
|
+
verify_transaction_status_url: string;
|
|
47
|
+
};
|
|
48
|
+
three_ds_challenge?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ICheckoutResponse {
|
|
52
|
+
status: string;
|
|
53
|
+
message: string;
|
|
54
|
+
psp_response: Record<string, any>;
|
|
55
|
+
checkout_id: string;
|
|
56
|
+
is_route_finished: boolean;
|
|
57
|
+
transaction_status: string;
|
|
58
|
+
transaction_id: number;
|
|
59
|
+
payment_id: number;
|
|
60
|
+
provider: string;
|
|
61
|
+
next_action?: INextAction;
|
|
62
|
+
actions: ICheckoutAction[];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface ICheckoutAction {
|
|
66
|
+
name: string;
|
|
67
|
+
url: string;
|
|
68
|
+
method: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface ICreateOrderResponse {
|
|
72
|
+
id: number | string;
|
|
73
|
+
created: string;
|
|
74
|
+
amount: string;
|
|
75
|
+
status: string;
|
|
76
|
+
payment_method?: string;
|
|
77
|
+
reference?: string;
|
|
78
|
+
is_oneclick: boolean;
|
|
79
|
+
items: IItem[];
|
|
80
|
+
billing_address?: string;
|
|
81
|
+
shipping_address?: string;
|
|
82
|
+
client: {
|
|
83
|
+
email: string;
|
|
84
|
+
name: string;
|
|
85
|
+
first_name: string;
|
|
86
|
+
last_name: string;
|
|
87
|
+
client_profile: {
|
|
88
|
+
gender: string;
|
|
89
|
+
date_birth?: string;
|
|
90
|
+
terms: boolean;
|
|
91
|
+
phone: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface ICreatePaymentResponse {
|
|
97
|
+
pk: number | string;
|
|
98
|
+
order?: string;
|
|
99
|
+
amount: string;
|
|
100
|
+
status: string;
|
|
101
|
+
date: string;
|
|
102
|
+
paid_date?: string;
|
|
103
|
+
shipping_address: {
|
|
104
|
+
street: string;
|
|
105
|
+
number: string;
|
|
106
|
+
suburb: string;
|
|
107
|
+
city: {
|
|
108
|
+
name: string;
|
|
109
|
+
};
|
|
110
|
+
state: {
|
|
111
|
+
name: string;
|
|
112
|
+
country: {
|
|
113
|
+
name: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
zip_code: string;
|
|
117
|
+
};
|
|
118
|
+
shipping_address_id?: string;
|
|
119
|
+
billing_address: {
|
|
120
|
+
street: string;
|
|
121
|
+
number: string;
|
|
122
|
+
suburb: string;
|
|
123
|
+
city: {
|
|
124
|
+
name: string;
|
|
125
|
+
};
|
|
126
|
+
state: {
|
|
127
|
+
name: string;
|
|
128
|
+
country: {
|
|
129
|
+
name: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
zip_code: string;
|
|
133
|
+
};
|
|
134
|
+
billing_address_id?: string;
|
|
135
|
+
client?: string;
|
|
136
|
+
customer_order_reference?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type ICreatePaymentRequest = {
|
|
140
|
+
business_pk: string | number;
|
|
141
|
+
amount: number;
|
|
142
|
+
date: string;
|
|
143
|
+
order_id: string | number;
|
|
144
|
+
client_id: string | number;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export interface ICreateOrderRequest {
|
|
148
|
+
business: string;
|
|
149
|
+
client: string;
|
|
150
|
+
billing_address_id?: number | null;
|
|
151
|
+
shipping_address_id?: number | null;
|
|
152
|
+
amount: number;
|
|
153
|
+
status?: string;
|
|
154
|
+
reference: string | number;
|
|
155
|
+
is_oneclick: boolean;
|
|
156
|
+
items: IItem[];
|
|
157
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { IUIWrapper } from '@ui/providers/TonderProvider/uiWrapper';
|
|
2
|
+
import type { Environment, SDKInstance } from './base';
|
|
3
|
+
import type { IElementStyle } from './input';
|
|
4
|
+
import { SDKType } from './base';
|
|
5
|
+
|
|
6
|
+
export interface StylesBaseVariant {
|
|
7
|
+
base?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface StylesSelectVariant {
|
|
11
|
+
base?: Record<string, any>;
|
|
12
|
+
radioBase?: Record<string, any>;
|
|
13
|
+
radioInner?: Record<string, any>;
|
|
14
|
+
radioSelected?: Record<string, any>;
|
|
15
|
+
cardIcon?: Record<string, any>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface StylesSavedCardsVariant extends StylesSelectVariant {
|
|
19
|
+
deleteButton?: Record<string, any>;
|
|
20
|
+
deleteIcon?: Record<string, any>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IApiConfig {
|
|
24
|
+
apiKey: string;
|
|
25
|
+
mode: Environment;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IBrowserInfo {
|
|
29
|
+
language: string;
|
|
30
|
+
time_zone: number;
|
|
31
|
+
user_agent: string;
|
|
32
|
+
color_depth: number | null;
|
|
33
|
+
screen_width: number | null;
|
|
34
|
+
screen_height: number | null;
|
|
35
|
+
javascript_enabled: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface IFormLabels {
|
|
39
|
+
name?: string;
|
|
40
|
+
cardNumber?: string;
|
|
41
|
+
cvv?: string;
|
|
42
|
+
expiryDate?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface IFormPlaceholder {
|
|
46
|
+
name?: string;
|
|
47
|
+
cardNumber?: string;
|
|
48
|
+
cvv?: string;
|
|
49
|
+
expiryMonth?: string;
|
|
50
|
+
expiryYear?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface IStyles {
|
|
54
|
+
sdkCard?: StylesBaseVariant;
|
|
55
|
+
cardForm?: StylesBaseVariant & IElementStyle;
|
|
56
|
+
paymentMethods?: StylesSelectVariant;
|
|
57
|
+
savedCards?: StylesSavedCardsVariant;
|
|
58
|
+
paymentRadio?: StylesSelectVariant;
|
|
59
|
+
paymentButton?: StylesBaseVariant;
|
|
60
|
+
errorMessage?: StylesBaseVariant;
|
|
61
|
+
successMessage?: StylesBaseVariant;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ITonderContext<T extends SDKType> {
|
|
65
|
+
uiWrapper: IUIWrapper;
|
|
66
|
+
sdk: SDKInstance<T>;
|
|
67
|
+
state: any;
|
|
68
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface ICustomer {
|
|
2
|
+
email: string;
|
|
3
|
+
firstName?: string;
|
|
4
|
+
lastName?: string;
|
|
5
|
+
country?: string;
|
|
6
|
+
street?: string;
|
|
7
|
+
city?: string;
|
|
8
|
+
state?: string;
|
|
9
|
+
postCode?: string;
|
|
10
|
+
phone?: string;
|
|
11
|
+
address?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface ICustomerProfile {
|
|
15
|
+
gender?: string;
|
|
16
|
+
date_birth?: string;
|
|
17
|
+
terms: boolean;
|
|
18
|
+
phone: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ICustomerResponse {
|
|
22
|
+
id: number | string;
|
|
23
|
+
email: string;
|
|
24
|
+
auth_token?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
first_name?: string;
|
|
27
|
+
last_name?: string;
|
|
28
|
+
client_profile?: ICustomerProfile;
|
|
29
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { IBaseCreateOptions, IBaseResponse, SDKOptions } from './base';
|
|
2
|
+
import type { IBaseEnrollmentState } from './baseEnrollment';
|
|
3
|
+
import { SDKType } from './base';
|
|
4
|
+
import type { ISaveCardResponse } from './card';
|
|
5
|
+
import type { IFormLabels, IFormPlaceholder, IStyles } from './common';
|
|
6
|
+
import type { ICustomer } from './customer';
|
|
7
|
+
import TonderError from '@shared/utils/errors';
|
|
8
|
+
|
|
9
|
+
export interface IEnrollmentOptions extends IBaseCreateOptions {
|
|
10
|
+
customer?: ICustomer;
|
|
11
|
+
customization?: IEnrollmentCustomizationOptions;
|
|
12
|
+
callbacks?: IEnrollmentCallbacks;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IEnrollmentCallbacks {
|
|
16
|
+
beforeSave?: () => Promise<void>;
|
|
17
|
+
onFinishSave?: (response: IBaseResponse<ISaveCardResponse>) => Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IEnrollmentCustomizationOptions {
|
|
21
|
+
saveButton?: {
|
|
22
|
+
show?: boolean;
|
|
23
|
+
text?: string;
|
|
24
|
+
};
|
|
25
|
+
showMessages?: boolean;
|
|
26
|
+
labels?: IFormLabels;
|
|
27
|
+
placeholders?: IFormPlaceholder;
|
|
28
|
+
styles?: IStyles;
|
|
29
|
+
}
|
|
30
|
+
export interface IEnrollmentState extends IBaseEnrollmentState {
|
|
31
|
+
customization?: IEnrollmentCustomizationOptions;
|
|
32
|
+
callbacks?: IEnrollmentCallbacks;
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IEnrollment {
|
|
36
|
+
/**
|
|
37
|
+
* Creates an SDK instance and initializes necessary configurations.
|
|
38
|
+
* @param {SDKOptions<SDKType.ENROLLMENT>} data - Configuration and initialization data for the SDK.
|
|
39
|
+
* @returns {Promise<{ error?: TonderError }>} A promise that resolves to an object containing
|
|
40
|
+
* an error if one occurred during initialization.
|
|
41
|
+
*
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
create(
|
|
45
|
+
data: SDKOptions<SDKType.ENROLLMENT>
|
|
46
|
+
): Promise<{ error?: TonderError }>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Saves a card to a customer's account. This method can be used to add a new card
|
|
50
|
+
* or update an existing one.
|
|
51
|
+
* @returns {Promise<IBaseResponse<ISaveCardResponse>>} A promise that resolves with the saved card data.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
saveCustomerCard(): Promise<IBaseResponse<ISaveCardResponse>>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Resets the SDK state, clearing all subscribers and event listeners.
|
|
59
|
+
* This method is used to reinitialize the SDK with the current configuration.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* This method should be called when you need to completely reset the SDK state.
|
|
63
|
+
* For example, if a user logs out or the configuration needs to be refreshed.
|
|
64
|
+
*
|
|
65
|
+
* @returns {void} Does not return a value.
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
reset(): void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './base';
|
|
2
|
+
export * from './card';
|
|
3
|
+
export * from './checkout';
|
|
4
|
+
export * from './customer';
|
|
5
|
+
export * from './payment';
|
|
6
|
+
export * from './transaction';
|
|
7
|
+
export * from './business';
|
|
8
|
+
export * from './secure';
|
|
9
|
+
export * from './openpay';
|
|
10
|
+
export * from './common';
|
|
11
|
+
export * from './liteCheckout';
|
|
12
|
+
export * from './inlineCheckout';
|
|
13
|
+
export * from './enrollment';
|
|
14
|
+
export * from './input';
|
|
15
|
+
export * from './baseCheckout';
|
|
16
|
+
export * from './baseEnrollment';
|
|
17
|
+
export * from './threeDSHandler';
|
|
18
|
+
export * from './baseSDK';
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
IBaseCheckoutState,
|
|
3
|
+
IBaseCreateOptions,
|
|
4
|
+
ICustomerCardsResponse,
|
|
5
|
+
IPaymentMethod,
|
|
6
|
+
ISaveCardsOptions,
|
|
7
|
+
IFormLabels,
|
|
8
|
+
IFormPlaceholder,
|
|
9
|
+
IStyles,
|
|
10
|
+
ITransaction,
|
|
11
|
+
IBaseProcessPaymentRequest,
|
|
12
|
+
IBaseCallback,
|
|
13
|
+
IBaseResponse,
|
|
14
|
+
} from '@tonder.io/rn-sdk';
|
|
15
|
+
import { SDKType } from '@tonder.io/rn-sdk';
|
|
16
|
+
import TonderError from '@shared/utils/errors';
|
|
17
|
+
|
|
18
|
+
export interface IInlineCheckoutOptions extends IBaseCreateOptions {
|
|
19
|
+
tdsIframeId?: string;
|
|
20
|
+
paymentData: IBaseProcessPaymentRequest;
|
|
21
|
+
customization?: IInlineCustomizationOptions;
|
|
22
|
+
callbacks?: IInlineCallbacks;
|
|
23
|
+
returnURL?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface IInlineCheckoutState
|
|
27
|
+
extends IBaseCheckoutState<SDKType.INLINE> {
|
|
28
|
+
deviceSessionIds?: {
|
|
29
|
+
openPay: string;
|
|
30
|
+
mercadoPago: string;
|
|
31
|
+
};
|
|
32
|
+
customization?: IInlineCustomizationOptions;
|
|
33
|
+
callbacks?: IInlineCallbacks;
|
|
34
|
+
message: string;
|
|
35
|
+
customerCards: ICustomerCardsResponse;
|
|
36
|
+
payment_methods: IPaymentMethod[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface IInlineCustomizationOptions {
|
|
40
|
+
saveCards?: ISaveCardsOptions;
|
|
41
|
+
paymentButton?: {
|
|
42
|
+
show?: boolean;
|
|
43
|
+
text?: string;
|
|
44
|
+
showAmount?: boolean;
|
|
45
|
+
};
|
|
46
|
+
paymentMethods?: {
|
|
47
|
+
show?: boolean;
|
|
48
|
+
};
|
|
49
|
+
cardForm?: {
|
|
50
|
+
show?: boolean;
|
|
51
|
+
};
|
|
52
|
+
showMessages?: boolean;
|
|
53
|
+
labels?: IFormLabels;
|
|
54
|
+
placeholders?: IFormPlaceholder;
|
|
55
|
+
styles?: IStyles;
|
|
56
|
+
}
|
|
57
|
+
export interface IInlineCallbacks extends IBaseCallback {
|
|
58
|
+
beforeDeleteCard?: () => Promise<void>;
|
|
59
|
+
onFinishDeleteCard?: (id: string) => Promise<void>;
|
|
60
|
+
}
|
|
61
|
+
export interface IPaymentInlineContainer {
|
|
62
|
+
/**
|
|
63
|
+
* Creates an SDK instance and initializes necessary configurations.
|
|
64
|
+
* @param {IInlineCheckoutOptions} data - Configuration and initialization data for the SDK.
|
|
65
|
+
* @returns {Promise<{ error?: TonderError }>} A promise that resolves to an object containing
|
|
66
|
+
* an error if one occurred during initialization.
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
create(data: IInlineCheckoutOptions): Promise<{ error?: TonderError }>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Processes a payment.
|
|
74
|
+
* @param {IBaseProcessPaymentRequest} data - (Optional) Payment data including customer, cart, and other relevant information (Useful in case you need to update payment information).
|
|
75
|
+
* @returns {Promise<IBaseResponse<ITransaction>>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
payment(
|
|
80
|
+
data?: IBaseProcessPaymentRequest
|
|
81
|
+
): Promise<IBaseResponse<ITransaction>>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Resets the SDK state, clearing all subscribers and event listeners.
|
|
85
|
+
* This method is used to reinitialize the SDK with the current configuration.
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* This method should be called when you need to completely reset the SDK state.
|
|
89
|
+
* For example, if a user logs out or the configuration needs to be refreshed.
|
|
90
|
+
*
|
|
91
|
+
* @returns {void} Does not return a value.
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
reset(): void;
|
|
96
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
CollectInputStylesVariant,
|
|
3
|
+
CollectLabelStylesVariant,
|
|
4
|
+
} from 'skyflow-react-native';
|
|
5
|
+
import type { StylesBaseVariant } from './common';
|
|
6
|
+
|
|
7
|
+
export interface InputProps {
|
|
8
|
+
label?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
style?: IElementStyle;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IElementStyle {
|
|
14
|
+
inputStyles?: CollectInputStylesVariant;
|
|
15
|
+
labelStyles?: CollectLabelStylesVariant;
|
|
16
|
+
errorStyles?: StylesBaseVariant;
|
|
17
|
+
}
|