@tonder.io/rn-sdk 0.1.0-beta.DEV1355.6 → 0.1.0-beta.DEV1355.7
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/README.md +4 -3
- package/android/build.gradle +99 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/tonderio/rnsdk/RnSdkModule.kt +25 -0
- package/android/src/main/java/com/tonderio/rnsdk/RnSdkPackage.kt +17 -0
- package/ios/RnSdk-Bridging-Header.h +2 -0
- package/ios/RnSdk.mm +14 -0
- package/ios/RnSdk.swift +8 -0
- package/lib/commonjs/core/3DSHandler.js +17 -12
- package/lib/commonjs/core/3DSHandler.js.map +1 -1
- package/lib/commonjs/core/BaseCheckout/index.js +21 -22
- package/lib/commonjs/core/BaseCheckout/index.js.map +1 -1
- package/lib/commonjs/core/BaseEnrollment/index.js +8 -9
- package/lib/commonjs/core/BaseEnrollment/index.js.map +1 -1
- package/lib/commonjs/core/BaseSDK/index.js +3 -3
- package/lib/commonjs/core/BaseSDK/index.js.map +1 -1
- package/lib/commonjs/core/EnrollmentContainer/index.js +9 -10
- package/lib/commonjs/core/EnrollmentContainer/index.js.map +1 -1
- package/lib/commonjs/core/PaymentInlineContainer/index.js +5 -5
- package/lib/commonjs/core/PaymentInlineContainer/index.js.map +1 -1
- package/lib/commonjs/core/PaymentLiteContainer/index.js +12 -12
- package/lib/commonjs/core/PaymentLiteContainer/index.js.map +1 -1
- package/lib/commonjs/core/Tonder/index.js +5 -5
- package/lib/commonjs/core/Tonder/index.js.map +1 -1
- package/lib/commonjs/hooks/useTonder/index.js +1 -1
- package/lib/commonjs/hooks/useTonder/index.js.map +1 -1
- package/lib/commonjs/index.js +15 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/infrastructure/HttpClient.js +7 -8
- package/lib/commonjs/infrastructure/HttpClient.js.map +1 -1
- package/lib/commonjs/infrastructure/ServiceManager.js +12 -13
- package/lib/commonjs/infrastructure/ServiceManager.js.map +1 -1
- package/lib/commonjs/services/BusinessService.js +3 -3
- package/lib/commonjs/services/BusinessService.js.map +1 -1
- package/lib/commonjs/services/CardService.js +7 -8
- package/lib/commonjs/services/CardService.js.map +1 -1
- package/lib/commonjs/services/CheckoutService.js +11 -11
- package/lib/commonjs/services/CheckoutService.js.map +1 -1
- package/lib/commonjs/services/CustomerService.js +5 -5
- package/lib/commonjs/services/CustomerService.js.map +1 -1
- package/lib/commonjs/services/PaymentMethodService.js +3 -3
- package/lib/commonjs/services/PaymentMethodService.js.map +1 -1
- package/lib/commonjs/services/SkyflowService.js +4 -4
- package/lib/commonjs/services/SkyflowService.js.map +1 -1
- package/lib/commonjs/services/TokenService.js +4 -4
- package/lib/commonjs/services/TokenService.js.map +1 -1
- package/lib/commonjs/services/TransactionService.js +3 -3
- package/lib/commonjs/services/TransactionService.js.map +1 -1
- package/lib/commonjs/services/index.js +0 -11
- package/lib/commonjs/services/index.js.map +1 -1
- package/lib/commonjs/shared/catalog/cardBrandCatalog.js +1 -1
- package/lib/commonjs/shared/catalog/paymentMethodsCatalog.js +2 -2
- package/lib/commonjs/shared/constants/messages.js +90 -90
- package/lib/commonjs/shared/constants/messages.js.map +1 -1
- package/lib/commonjs/shared/utils/errors.js +2 -2
- package/lib/commonjs/shared/utils/errors.js.map +1 -1
- package/lib/commonjs/shared/utils/paymentMethodUtils.js +3 -3
- package/lib/commonjs/shared/utils/paymentMethodUtils.js.map +1 -1
- package/lib/commonjs/shared/utils/stringUtils.js +17 -1
- package/lib/commonjs/shared/utils/stringUtils.js.map +1 -1
- package/lib/commonjs/types/srn-temp.d.js +2 -0
- package/lib/commonjs/types/srn-temp.d.js.map +1 -0
- package/lib/commonjs/ui/components/Button/ProcessButton.js +1 -1
- package/lib/commonjs/ui/components/Button/ProcessButton.js.map +1 -1
- package/lib/commonjs/ui/components/CardForm/index.js +5 -5
- package/lib/commonjs/ui/components/CardForm/index.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardCVVInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardCVVInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js +5 -5
- package/lib/commonjs/ui/components/Input/CardExpirationDateInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardHolderInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardHolderInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardNumberInput.js +6 -4
- package/lib/commonjs/ui/components/Input/CardNumberInput.js.map +1 -1
- package/lib/commonjs/ui/components/PaymentMethodsList/index.js +4 -4
- package/lib/commonjs/ui/components/PaymentMethodsList/index.js.map +1 -1
- package/lib/commonjs/ui/components/SavedCardsList/index.js +6 -4
- package/lib/commonjs/ui/components/SavedCardsList/index.js.map +1 -1
- package/lib/commonjs/ui/features/TonderEnrollment/index.js +7 -7
- package/lib/commonjs/ui/features/TonderEnrollment/index.js.map +1 -1
- package/lib/commonjs/ui/features/TonderPayment/index.js +15 -15
- package/lib/commonjs/ui/features/TonderPayment/index.js.map +1 -1
- package/lib/commonjs/ui/providers/InnerProvider/index.js +1 -1
- package/lib/commonjs/ui/providers/InnerProvider/index.js.map +1 -1
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js +2 -2
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js.map +1 -1
- package/lib/commonjs/ui/providers/TonderProvider/hook.js +1 -1
- package/lib/commonjs/ui/providers/TonderProvider/index.js +16 -16
- package/lib/commonjs/ui/providers/TonderProvider/index.js.map +1 -1
- package/lib/commonjs/ui/providers/TonderProvider/uiWrapper.js +3 -3
- package/lib/commonjs/ui/providers/TonderProvider/uiWrapper.js.map +1 -1
- package/lib/commonjs/ui/styles/skyflow.js +1 -1
- package/lib/module/core/3DSHandler.js +16 -11
- package/lib/module/core/3DSHandler.js.map +1 -1
- package/lib/module/core/BaseCheckout/index.js +8 -9
- package/lib/module/core/BaseCheckout/index.js.map +1 -1
- package/lib/module/core/BaseEnrollment/index.js +3 -4
- package/lib/module/core/BaseEnrollment/index.js.map +1 -1
- package/lib/module/core/BaseSDK/index.js +2 -2
- package/lib/module/core/BaseSDK/index.js.map +1 -1
- package/lib/module/core/EnrollmentContainer/index.js +4 -5
- package/lib/module/core/EnrollmentContainer/index.js.map +1 -1
- package/lib/module/core/PaymentInlineContainer/index.js +3 -3
- package/lib/module/core/PaymentInlineContainer/index.js.map +1 -1
- package/lib/module/core/PaymentLiteContainer/index.js +6 -6
- package/lib/module/core/PaymentLiteContainer/index.js.map +1 -1
- package/lib/module/core/Tonder/index.js +3 -3
- package/lib/module/core/Tonder/index.js.map +1 -1
- package/lib/module/hooks/useTonder/index.js +1 -1
- package/lib/module/hooks/useTonder/index.js.map +1 -1
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/infrastructure/HttpClient.js +2 -3
- package/lib/module/infrastructure/HttpClient.js.map +1 -1
- package/lib/module/infrastructure/ServiceManager.js +2 -3
- package/lib/module/infrastructure/ServiceManager.js.map +1 -1
- package/lib/module/services/BusinessService.js +2 -2
- package/lib/module/services/BusinessService.js.map +1 -1
- package/lib/module/services/CardService.js +2 -3
- package/lib/module/services/CardService.js.map +1 -1
- package/lib/module/services/CheckoutService.js +2 -2
- package/lib/module/services/CheckoutService.js.map +1 -1
- package/lib/module/services/CustomerService.js +2 -2
- package/lib/module/services/CustomerService.js.map +1 -1
- package/lib/module/services/PaymentMethodService.js +2 -2
- package/lib/module/services/PaymentMethodService.js.map +1 -1
- package/lib/module/services/SkyflowService.js +2 -2
- package/lib/module/services/SkyflowService.js.map +1 -1
- package/lib/module/services/TokenService.js +2 -2
- package/lib/module/services/TokenService.js.map +1 -1
- package/lib/module/services/TransactionService.js +2 -2
- package/lib/module/services/TransactionService.js.map +1 -1
- package/lib/module/services/index.js +0 -1
- package/lib/module/services/index.js.map +1 -1
- package/lib/module/shared/catalog/cardBrandCatalog.js +1 -1
- package/lib/module/shared/catalog/cardBrandCatalog.js.map +1 -1
- package/lib/module/shared/catalog/paymentMethodsCatalog.js +2 -2
- package/lib/module/shared/catalog/paymentMethodsCatalog.js.map +1 -1
- package/lib/module/shared/constants/messages.js +1 -1
- package/lib/module/shared/constants/messages.js.map +1 -1
- package/lib/module/shared/utils/errors.js +1 -1
- package/lib/module/shared/utils/errors.js.map +1 -1
- package/lib/module/shared/utils/paymentMethodUtils.js +2 -2
- package/lib/module/shared/utils/paymentMethodUtils.js.map +1 -1
- package/lib/module/shared/utils/stringUtils.js +15 -0
- package/lib/module/shared/utils/stringUtils.js.map +1 -1
- package/lib/module/types/srn-temp.d.js +2 -0
- package/lib/module/types/srn-temp.d.js.map +1 -0
- package/lib/module/ui/components/Button/ProcessButton.js +1 -1
- package/lib/module/ui/components/Button/ProcessButton.js.map +1 -1
- package/lib/module/ui/components/CardForm/index.js +5 -5
- package/lib/module/ui/components/CardForm/index.js.map +1 -1
- package/lib/module/ui/components/Input/CardCVVInput.js +5 -4
- package/lib/module/ui/components/Input/CardCVVInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardExpirationDateInput.js +5 -5
- package/lib/module/ui/components/Input/CardExpirationDateInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js +6 -5
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardExpirationYearInput.js +5 -4
- package/lib/module/ui/components/Input/CardExpirationYearInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardHolderInput.js +5 -4
- package/lib/module/ui/components/Input/CardHolderInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardNumberInput.js +5 -4
- package/lib/module/ui/components/Input/CardNumberInput.js.map +1 -1
- package/lib/module/ui/components/PaymentMethodsList/index.js +3 -3
- package/lib/module/ui/components/PaymentMethodsList/index.js.map +1 -1
- package/lib/module/ui/components/SavedCardsList/index.js +4 -3
- package/lib/module/ui/components/SavedCardsList/index.js.map +1 -1
- package/lib/module/ui/features/TonderEnrollment/index.js +6 -6
- package/lib/module/ui/features/TonderEnrollment/index.js.map +1 -1
- package/lib/module/ui/features/TonderPayment/index.js +11 -11
- package/lib/module/ui/features/TonderPayment/index.js.map +1 -1
- package/lib/module/ui/providers/InnerProvider/index.js +1 -1
- package/lib/module/ui/providers/InnerProvider/index.js.map +1 -1
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js +1 -1
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js.map +1 -1
- package/lib/module/ui/providers/TonderProvider/hook.js +1 -1
- package/lib/module/ui/providers/TonderProvider/hook.js.map +1 -1
- package/lib/module/ui/providers/TonderProvider/index.js +9 -9
- package/lib/module/ui/providers/TonderProvider/index.js.map +1 -1
- package/lib/module/ui/providers/TonderProvider/uiWrapper.js +2 -2
- package/lib/module/ui/providers/TonderProvider/uiWrapper.js.map +1 -1
- package/lib/module/ui/styles/skyflow.js +1 -1
- package/lib/typescript/commonjs/src/core/3DSHandler.d.ts +4 -4
- package/lib/typescript/commonjs/src/core/3DSHandler.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts +5 -5
- package/lib/typescript/commonjs/src/core/BaseCheckout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts +5 -5
- package/lib/typescript/commonjs/src/core/BaseEnrollment/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/core/BaseSDK/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/core/EnrollmentContainer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/core/PaymentInlineContainer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/core/PaymentLiteContainer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/Tonder/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/core/Tonder/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useTonder/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/hooks/useTonder/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts +1 -1
- package/lib/typescript/commonjs/src/infrastructure/HttpClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/infrastructure/ServiceManager.d.ts +2 -3
- package/lib/typescript/commonjs/src/infrastructure/ServiceManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/BusinessService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/BusinessService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/CardService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/CardService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/CheckoutService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/CheckoutService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/CustomerService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/CustomerService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/PaymentMethodService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/PaymentMethodService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts +1 -1
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/TokenService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/TokenService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/TransactionService.d.ts +2 -2
- package/lib/typescript/commonjs/src/services/TransactionService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/index.d.ts +0 -1
- package/lib/typescript/commonjs/src/services/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/shared/utils/common.d.ts +1 -1
- package/lib/typescript/commonjs/src/shared/utils/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/shared/utils/stringUtils.d.ts +3 -0
- package/lib/typescript/commonjs/src/shared/utils/stringUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/shared/utils/styleUtils.d.ts +1 -1
- package/lib/typescript/commonjs/src/shared/utils/styleUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/base.d.ts +5 -5
- package/lib/typescript/commonjs/src/types/base.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/common.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/enrollment.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/enrollment.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/inlineCheckout.d.ts +3 -3
- package/lib/typescript/commonjs/src/types/inlineCheckout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts +3 -3
- package/lib/typescript/commonjs/src/types/liteCheckout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/threeDSHandler.d.ts +2 -2
- package/lib/typescript/commonjs/src/types/threeDSHandler.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Button/ProcessButton.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Button/ProcessButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/CardForm/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardCVVInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardHolderInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/Input/CardNumberInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/RadioButton/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/RadioButton/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/components/SavedCardsList/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/providers/InnerProvider/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/context.d.ts +2 -2
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/hook.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/hook.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/uiWrapper.d.ts +1 -1
- package/lib/typescript/commonjs/src/ui/providers/TonderProvider/uiWrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/core/3DSHandler.d.ts +4 -4
- package/lib/typescript/module/src/core/3DSHandler.d.ts.map +1 -1
- package/lib/typescript/module/src/core/BaseCheckout/index.d.ts +5 -5
- package/lib/typescript/module/src/core/BaseCheckout/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts +5 -5
- package/lib/typescript/module/src/core/BaseEnrollment/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts +2 -2
- package/lib/typescript/module/src/core/BaseSDK/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts +4 -4
- package/lib/typescript/module/src/core/EnrollmentContainer/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts +4 -4
- package/lib/typescript/module/src/core/PaymentInlineContainer/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts +4 -4
- package/lib/typescript/module/src/core/PaymentLiteContainer/index.d.ts.map +1 -1
- package/lib/typescript/module/src/core/Tonder/index.d.ts +2 -2
- package/lib/typescript/module/src/core/Tonder/index.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useTonder/index.d.ts +2 -2
- package/lib/typescript/module/src/hooks/useTonder/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/infrastructure/HttpClient.d.ts +1 -1
- package/lib/typescript/module/src/infrastructure/HttpClient.d.ts.map +1 -1
- package/lib/typescript/module/src/infrastructure/ServiceManager.d.ts +2 -3
- package/lib/typescript/module/src/infrastructure/ServiceManager.d.ts.map +1 -1
- package/lib/typescript/module/src/services/BusinessService.d.ts +2 -2
- package/lib/typescript/module/src/services/BusinessService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/CardService.d.ts +2 -2
- package/lib/typescript/module/src/services/CardService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/CheckoutService.d.ts +2 -2
- package/lib/typescript/module/src/services/CheckoutService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/CustomerService.d.ts +2 -2
- package/lib/typescript/module/src/services/CustomerService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/PaymentMethodService.d.ts +2 -2
- package/lib/typescript/module/src/services/PaymentMethodService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/SkyflowService.d.ts +1 -1
- package/lib/typescript/module/src/services/SkyflowService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/TokenService.d.ts +2 -2
- package/lib/typescript/module/src/services/TokenService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/TransactionService.d.ts +2 -2
- package/lib/typescript/module/src/services/TransactionService.d.ts.map +1 -1
- package/lib/typescript/module/src/services/index.d.ts +0 -1
- package/lib/typescript/module/src/services/index.d.ts.map +1 -1
- package/lib/typescript/module/src/shared/utils/common.d.ts +1 -1
- package/lib/typescript/module/src/shared/utils/common.d.ts.map +1 -1
- package/lib/typescript/module/src/shared/utils/stringUtils.d.ts +3 -0
- package/lib/typescript/module/src/shared/utils/stringUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/shared/utils/styleUtils.d.ts +1 -1
- package/lib/typescript/module/src/shared/utils/styleUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/types/base.d.ts +5 -5
- package/lib/typescript/module/src/types/base.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseCheckout.d.ts +2 -2
- package/lib/typescript/module/src/types/baseCheckout.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseEnrollment.d.ts +2 -2
- package/lib/typescript/module/src/types/baseEnrollment.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseSDK.d.ts +2 -2
- package/lib/typescript/module/src/types/baseSDK.d.ts.map +1 -1
- package/lib/typescript/module/src/types/common.d.ts +1 -1
- package/lib/typescript/module/src/types/common.d.ts.map +1 -1
- package/lib/typescript/module/src/types/enrollment.d.ts +1 -1
- package/lib/typescript/module/src/types/enrollment.d.ts.map +1 -1
- package/lib/typescript/module/src/types/inlineCheckout.d.ts +3 -3
- package/lib/typescript/module/src/types/inlineCheckout.d.ts.map +1 -1
- package/lib/typescript/module/src/types/liteCheckout.d.ts +3 -3
- package/lib/typescript/module/src/types/liteCheckout.d.ts.map +1 -1
- package/lib/typescript/module/src/types/threeDSHandler.d.ts +2 -2
- package/lib/typescript/module/src/types/threeDSHandler.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Button/ProcessButton.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Button/ProcessButton.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/CardForm/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/CardForm/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardCVVInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationDateInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationMonthInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardExpirationYearInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardHolderInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/Input/CardNumberInput.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/PaymentMethodsList/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/RadioButton/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/RadioButton/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/components/SavedCardsList/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/providers/InnerProvider/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts +2 -2
- package/lib/typescript/module/src/ui/providers/SkyflowContainerWrapper/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/context.d.ts +2 -2
- package/lib/typescript/module/src/ui/providers/TonderProvider/context.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/hook.d.ts +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/hook.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/index.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/uiWrapper.d.ts +1 -1
- package/lib/typescript/module/src/ui/providers/TonderProvider/uiWrapper.d.ts.map +1 -1
- package/package.json +24 -30
- package/src/core/3DSHandler.ts +23 -17
- package/src/core/BaseCheckout/index.ts +10 -11
- package/src/core/BaseEnrollment/index.ts +6 -7
- package/src/core/BaseSDK/index.ts +4 -4
- package/src/core/EnrollmentContainer/index.ts +7 -8
- package/src/core/PaymentInlineContainer/index.ts +6 -6
- package/src/core/PaymentLiteContainer/index.ts +9 -9
- package/src/core/Tonder/index.ts +4 -5
- package/src/hooks/useTonder/index.ts +2 -2
- package/src/index.tsx +23 -0
- package/src/infrastructure/HttpClient.ts +3 -4
- package/src/infrastructure/ServiceManager.ts +3 -6
- package/src/services/BusinessService.ts +4 -4
- package/src/services/CardService.ts +4 -5
- package/src/services/CheckoutService.ts +4 -4
- package/src/services/CustomerService.ts +4 -4
- package/src/services/PaymentMethodService.ts +4 -4
- package/src/services/SkyflowService.ts +3 -3
- package/src/services/TokenService.ts +4 -4
- package/src/services/TransactionService.ts +4 -4
- package/src/services/index.ts +0 -1
- package/src/shared/catalog/cardBrandCatalog.ts +1 -1
- package/src/shared/catalog/paymentMethodsCatalog.ts +2 -2
- package/src/shared/constants/messages.ts +1 -1
- package/src/shared/utils/common.ts +1 -1
- package/src/shared/utils/errors.ts +1 -1
- package/src/shared/utils/paymentMethodUtils.ts +2 -2
- package/src/shared/utils/stringUtils.ts +24 -0
- package/src/shared/utils/styleUtils.ts +1 -1
- package/src/types/base.ts +5 -5
- package/src/types/baseCheckout.ts +2 -3
- package/src/types/baseEnrollment.ts +2 -2
- package/src/types/baseSDK.ts +2 -2
- package/src/types/common.ts +1 -1
- package/src/types/enrollment.ts +1 -1
- package/src/types/inlineCheckout.ts +3 -3
- package/src/types/liteCheckout.ts +3 -3
- package/src/types/{skyflow-react-native.d.ts → srn-temp.d.ts} +1 -1
- package/src/types/threeDSHandler.ts +2 -2
- package/src/ui/components/Button/ProcessButton.tsx +2 -2
- package/src/ui/components/CardForm/index.tsx +6 -6
- package/src/ui/components/Input/CardCVVInput.tsx +6 -5
- package/src/ui/components/Input/CardExpirationDateInput.tsx +6 -6
- package/src/ui/components/Input/CardExpirationMonthInput.tsx +10 -6
- package/src/ui/components/Input/CardExpirationYearInput.tsx +6 -5
- package/src/ui/components/Input/CardHolderInput.tsx +6 -5
- package/src/ui/components/Input/CardNumberInput.tsx +6 -5
- package/src/ui/components/PaymentMethodsList/index.tsx +4 -4
- package/src/ui/components/RadioButton/index.tsx +1 -1
- package/src/ui/components/SavedCardsList/index.tsx +5 -4
- package/src/ui/features/TonderEnrollment/index.tsx +7 -7
- package/src/ui/features/TonderPayment/index.tsx +12 -12
- package/src/ui/providers/InnerProvider/index.tsx +2 -2
- package/src/ui/providers/SkyflowContainerWrapper/index.tsx +3 -3
- package/src/ui/providers/TonderProvider/context.tsx +3 -3
- package/src/ui/providers/TonderProvider/hook.ts +2 -2
- package/src/ui/providers/TonderProvider/index.tsx +10 -10
- package/src/ui/providers/TonderProvider/uiWrapper.ts +3 -3
- package/src/ui/styles/skyflow.ts +1 -1
- package/tonder-io-rn-sdk.podspec +41 -0
- package/.yarn/patches/skyflow-react-native-npm-1.7.0-0841655e49.patch +0 -13
- package/lib/commonjs/services/StorageService.js +0 -49
- package/lib/commonjs/services/StorageService.js.map +0 -1
- package/lib/commonjs/types/skyflow-react-native.d.js +0 -2
- package/lib/commonjs/types/skyflow-react-native.d.js.map +0 -1
- package/lib/module/services/StorageService.js +0 -43
- package/lib/module/services/StorageService.js.map +0 -1
- package/lib/module/types/skyflow-react-native.d.js +0 -2
- package/lib/module/types/skyflow-react-native.d.js.map +0 -1
- package/lib/typescript/commonjs/src/services/StorageService.d.ts +0 -7
- package/lib/typescript/commonjs/src/services/StorageService.d.ts.map +0 -1
- package/lib/typescript/module/src/services/StorageService.d.ts +0 -7
- package/lib/typescript/module/src/services/StorageService.d.ts.map +0 -1
- package/src/services/StorageService.ts +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/RadioButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/RadioButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,iBAAiB,GAAG;QAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC7B,CAAC;CACH;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoBlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/SavedCardsList/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/SavedCardsList/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAIrE,UAAU,mBAAmB;IAC3B,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2EjD,CAAC;AAoCF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/InnerProvider/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/InnerProvider/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,EAAE,GAAG,CAAC;IACf,YAAY,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACvC;AAED,QAAA,MAAM,aAAa,+BAAgC,kBAAkB,4CAUpE,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ITonderContext } from '
|
|
3
|
-
import { SDKType } from '
|
|
2
|
+
import type { ITonderContext } from '../../../types';
|
|
3
|
+
import { SDKType } from '../../../types';
|
|
4
4
|
interface SkyflowContainerWrapperProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
contextValue: ITonderContext<SDKType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/SkyflowContainerWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/SkyflowContainerWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,UAAU,4BAA4B;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACvC;AAED,QAAA,MAAM,uBAAuB,gCAG1B,4BAA4B,4CAkB9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ITonderContext } from '
|
|
3
|
-
import { SDKType } from '
|
|
2
|
+
import type { ITonderContext } from '../../../types';
|
|
3
|
+
import { SDKType } from '../../../types';
|
|
4
4
|
export declare const tonderContext: React.Context<ITonderContext<SDKType>>;
|
|
5
5
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,eAAO,MAAM,aAAa,wCAIxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/hook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/hook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzD,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,OAAO,OAAK,cAAc,CAAC,CAAC,CAE/D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;AAWlE,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,cAAc,CAAC;CACxB;;AA6FD,wBAA0C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uiWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/uiWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"uiWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/providers/TonderProvider/uiWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAI/C,MAAM,WAAW,UAAU;IACzB,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,mBAAmB,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAC3C;AAED,QAAA,MAAM,SAAS,WAAY,MAAM,KAAG,UA4DlC,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonder.io/rn-sdk",
|
|
3
|
-
"version": "0.1.0-beta.DEV1355.
|
|
3
|
+
"version": "0.1.0-beta.DEV1355.7",
|
|
4
4
|
"description": "Tonder react native sdk",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"ios",
|
|
25
25
|
"cpp",
|
|
26
26
|
"*.podspec",
|
|
27
|
-
"react-native.config.
|
|
27
|
+
"react-native.config.js",
|
|
28
28
|
"!ios/build",
|
|
29
29
|
"!android/build",
|
|
30
30
|
"!android/gradle",
|
|
@@ -34,15 +34,14 @@
|
|
|
34
34
|
"!**/__tests__",
|
|
35
35
|
"!**/__fixtures__",
|
|
36
36
|
"!**/__mocks__",
|
|
37
|
-
"!**/.*"
|
|
38
|
-
".yarn/patches/"
|
|
37
|
+
"!**/.*"
|
|
39
38
|
],
|
|
40
39
|
"scripts": {
|
|
41
40
|
"example": "yarn workspace @tonder.io/rn-sdk-example",
|
|
42
41
|
"test": "jest",
|
|
43
42
|
"typecheck": "tsc",
|
|
44
43
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
45
|
-
"clean": "del-cli lib",
|
|
44
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
46
45
|
"prepare": "bob build",
|
|
47
46
|
"release": "release-it"
|
|
48
47
|
},
|
|
@@ -53,42 +52,39 @@
|
|
|
53
52
|
],
|
|
54
53
|
"repository": {
|
|
55
54
|
"type": "git",
|
|
56
|
-
"url": "git+https://github.com/tonderio/rn-sdk.git"
|
|
55
|
+
"url": "git+https://github.com/tonderio/rn-sdk.git.git/tonder.io-rn-sdk.git"
|
|
57
56
|
},
|
|
58
|
-
"author": "Tonder <davidh@tonder.io> (https://)",
|
|
57
|
+
"author": "Tonder <davidh@tonder.io> (https://github.com/tonderio/rn-sdk.git.git)",
|
|
59
58
|
"license": "MIT",
|
|
60
59
|
"bugs": {
|
|
61
|
-
"url": "https://github.com/tonderio/rn-sdk/issues"
|
|
60
|
+
"url": "https://github.com/tonderio/rn-sdk.git.git/tonder.io-rn-sdk/issues"
|
|
62
61
|
},
|
|
63
|
-
"homepage": "https://github.com/tonderio/rn-sdk#readme",
|
|
62
|
+
"homepage": "https://github.com/tonderio/rn-sdk.git.git/tonder.io-rn-sdk#readme",
|
|
64
63
|
"publishConfig": {
|
|
65
64
|
"registry": "https://registry.npmjs.org/"
|
|
66
65
|
},
|
|
67
66
|
"devDependencies": {
|
|
68
67
|
"@commitlint/config-conventional": "^17.0.2",
|
|
69
68
|
"@evilmartians/lefthook": "^1.5.0",
|
|
69
|
+
"@react-native-community/cli": "15.0.1",
|
|
70
70
|
"@react-native/eslint-config": "^0.73.1",
|
|
71
|
-
"@release-it/conventional-changelog": "^
|
|
72
|
-
"@
|
|
73
|
-
"@testing-library/react-native": "^12.8.1",
|
|
74
|
-
"@types/crypto-js": "^4.2.2",
|
|
75
|
-
"@types/jest": "^29.5.14",
|
|
76
|
-
"@types/lodash": "^4.17.13",
|
|
71
|
+
"@release-it/conventional-changelog": "^9.0.2",
|
|
72
|
+
"@types/jest": "^29.5.5",
|
|
77
73
|
"@types/react": "^18.2.44",
|
|
78
|
-
"babel-plugin-module-resolver": "^5.0.2",
|
|
79
74
|
"commitlint": "^17.0.2",
|
|
80
75
|
"del-cli": "^5.1.0",
|
|
81
76
|
"eslint": "^8.51.0",
|
|
82
77
|
"eslint-config-prettier": "^9.0.0",
|
|
83
78
|
"eslint-plugin-prettier": "^5.0.1",
|
|
84
79
|
"jest": "^29.7.0",
|
|
85
|
-
"jest-fetch-mock": "^3.0.3",
|
|
86
80
|
"prettier": "^3.0.3",
|
|
87
|
-
"react": "18.
|
|
88
|
-
"react-native": "0.
|
|
89
|
-
"react-native-builder-bob": "^0.
|
|
90
|
-
"
|
|
91
|
-
"
|
|
81
|
+
"react": "18.3.1",
|
|
82
|
+
"react-native": "0.76.3",
|
|
83
|
+
"react-native-builder-bob": "^0.33.1",
|
|
84
|
+
"react-native-svg": "^15.9.0",
|
|
85
|
+
"react-native-webview": "^13.12.4",
|
|
86
|
+
"release-it": "^17.10.0",
|
|
87
|
+
"turbo": "^1.10.7",
|
|
92
88
|
"typescript": "^5.2.2"
|
|
93
89
|
},
|
|
94
90
|
"resolutions": {
|
|
@@ -97,12 +93,13 @@
|
|
|
97
93
|
"peerDependencies": {
|
|
98
94
|
"react": "*",
|
|
99
95
|
"react-native": "*",
|
|
96
|
+
"react-native-svg": "*",
|
|
100
97
|
"react-native-webview": "*"
|
|
101
98
|
},
|
|
102
99
|
"workspaces": [
|
|
103
100
|
"example"
|
|
104
101
|
],
|
|
105
|
-
"packageManager": "yarn@
|
|
102
|
+
"packageManager": "yarn@3.6.1",
|
|
106
103
|
"jest": {
|
|
107
104
|
"preset": "react-native",
|
|
108
105
|
"modulePathIgnorePatterns": [
|
|
@@ -189,16 +186,13 @@
|
|
|
189
186
|
]
|
|
190
187
|
},
|
|
191
188
|
"create-react-native-library": {
|
|
192
|
-
"type": "
|
|
193
|
-
"
|
|
189
|
+
"type": "module-legacy",
|
|
190
|
+
"languages": "kotlin-swift",
|
|
191
|
+
"version": "0.44.2"
|
|
194
192
|
},
|
|
195
193
|
"dependencies": {
|
|
196
|
-
"
|
|
197
|
-
"lodash": "^4.17.21",
|
|
198
|
-
"lucide-react-native": "^0.456.0",
|
|
194
|
+
"lucide-react-native": "^0.461.0",
|
|
199
195
|
"openpay-react-native": "^2.0.10",
|
|
200
|
-
"react-native-svg": "^15.9.0",
|
|
201
|
-
"react-native-webview": "^13.11.1",
|
|
202
196
|
"skyflow-react-native": "https://github.com/davidhernandez-adm/srn-adl"
|
|
203
197
|
}
|
|
204
198
|
}
|
package/src/core/3DSHandler.ts
CHANGED
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
ICheckoutResponse,
|
|
4
4
|
ISDKBaseConfig,
|
|
5
|
-
ITransaction,
|
|
6
5
|
IThreeDSHandler,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
6
|
+
ITransaction,
|
|
7
|
+
} from '../types';
|
|
8
|
+
import { ServiceManager } from '../infrastructure';
|
|
9
|
+
import TonderError from '../shared/utils/errors';
|
|
10
|
+
import { ErrorKeyEnum } from '../shared';
|
|
11
|
+
import { get } from '../shared/utils/stringUtils';
|
|
11
12
|
|
|
12
13
|
export class ThreeDSHandler implements IThreeDSHandler {
|
|
13
14
|
protected readonly service: ServiceManager;
|
|
14
15
|
private payload?: ICheckoutResponse;
|
|
15
|
-
private readonly STORAGE_KEY = 'verify_transaction_status_url';
|
|
16
16
|
private onFinish: (response: ITransaction | TonderError) => Promise<void>;
|
|
17
17
|
emit3DS: (eventName: string, data: any) => void;
|
|
18
18
|
resumeCheckout: (checkoutId: string) => Promise<ICheckoutResponse>;
|
|
19
19
|
returnURL?: string;
|
|
20
|
+
private verifyURL: string;
|
|
20
21
|
constructor(
|
|
21
22
|
protected readonly config: ISDKBaseConfig,
|
|
22
23
|
service: ServiceManager,
|
|
@@ -26,15 +27,14 @@ export class ThreeDSHandler implements IThreeDSHandler {
|
|
|
26
27
|
this.service = service;
|
|
27
28
|
this.emit3DS = emit3DS;
|
|
28
29
|
this.resumeCheckout = resumeCheckout;
|
|
30
|
+
this.verifyURL = '';
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
public async verifyTransaction(): Promise<ITransaction> {
|
|
32
|
-
const verifyUrl = await this.service.storage.getItemWithExpires<string>(
|
|
33
|
-
this.STORAGE_KEY
|
|
34
|
-
);
|
|
35
|
-
|
|
36
34
|
try {
|
|
37
|
-
return await this.service.transaction.verifyTransactionStatus(
|
|
35
|
+
return await this.service.transaction.verifyTransactionStatus(
|
|
36
|
+
this.verifyURL!
|
|
37
|
+
);
|
|
38
38
|
} catch (error) {
|
|
39
39
|
throw error;
|
|
40
40
|
}
|
|
@@ -63,9 +63,13 @@ export class ThreeDSHandler implements IThreeDSHandler {
|
|
|
63
63
|
// } else {
|
|
64
64
|
// return await this.handleRedirect();
|
|
65
65
|
// }
|
|
66
|
-
|
|
67
|
-
await this.saveVerifyTransactionUrl();
|
|
68
66
|
const url = this.getRedirectUrl();
|
|
67
|
+
if(!url){
|
|
68
|
+
const url_verify = this.payload.actions.find((it) => it.name === 'verify_transaction_status')
|
|
69
|
+
await this.saveVerifyTransactionUrl(get(url_verify, 'url'));
|
|
70
|
+
}else{
|
|
71
|
+
this.saveVerifyTransactionUrl()
|
|
72
|
+
}
|
|
69
73
|
const trx_response = await this.verifyTransaction();
|
|
70
74
|
if (!url) {
|
|
71
75
|
this.emit3DS('hide3DS', {});
|
|
@@ -93,6 +97,8 @@ export class ThreeDSHandler implements IThreeDSHandler {
|
|
|
93
97
|
const retry_checkout = await this.resumeCheckout(
|
|
94
98
|
response?.checkout.id!
|
|
95
99
|
);
|
|
100
|
+
this.setPayload(retry_checkout);
|
|
101
|
+
|
|
96
102
|
await this.handle3DS(
|
|
97
103
|
retry_checkout,
|
|
98
104
|
this.returnURL,
|
|
@@ -125,20 +131,20 @@ export class ThreeDSHandler implements IThreeDSHandler {
|
|
|
125
131
|
private getRedirectUrl(): string | undefined {
|
|
126
132
|
return this.payload?.next_action?.redirect_to_url?.url;
|
|
127
133
|
}
|
|
128
|
-
private async saveVerifyTransactionUrl(): Promise<void> {
|
|
134
|
+
private async saveVerifyTransactionUrl(urlData?: string): Promise<void> {
|
|
129
135
|
const url =
|
|
130
|
-
|
|
136
|
+
urlData || this.payload?.next_action?.redirect_to_url
|
|
131
137
|
?.verify_transaction_status_url ||
|
|
132
138
|
this.payload?.next_action?.iframe_resources
|
|
133
139
|
?.verify_transaction_status_url;
|
|
134
140
|
|
|
135
141
|
if (url) {
|
|
136
|
-
|
|
142
|
+
this.verifyURL = url;
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
145
|
|
|
140
146
|
private async removeVerifyTransactionUrl(): Promise<void> {
|
|
141
|
-
|
|
147
|
+
this.verifyURL = '';
|
|
142
148
|
}
|
|
143
149
|
|
|
144
150
|
private async loadIframe() {}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type Tonder from '@core/Tonder';
|
|
2
|
-
import BaseSDK from '@core/BaseSDK';
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import BaseSDK from '../BaseSDK';
|
|
4
3
|
import type {
|
|
5
4
|
ICardPaymentFields,
|
|
6
5
|
ICheckoutResponse,
|
|
@@ -13,15 +12,15 @@ import type {
|
|
|
13
12
|
IThreeDSHandler,
|
|
14
13
|
ITransaction,
|
|
15
14
|
SDKOptions,
|
|
16
|
-
} from '
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
15
|
+
} from '../../types';
|
|
16
|
+
import Tonder from '../Tonder';
|
|
17
|
+
import { ThreeDSHandler } from '../3DSHandler';
|
|
18
|
+
import { SDKType } from '../../types';
|
|
19
|
+
import TonderError from '../../shared/utils/errors';
|
|
20
|
+
import { ErrorKeyEnum, MESSAGES_ES, TONDER_URL_BY_MODE } from '../../shared';
|
|
21
|
+
import { executeCallback, getAppInfo } from '../../shared/utils/common';
|
|
22
|
+
import { getPaymentMethodDetails } from '../../shared/catalog/paymentMethodsCatalog';
|
|
23
|
+
import { defaultTo, get } from '../../shared/utils/stringUtils';
|
|
25
24
|
|
|
26
25
|
class BaseCheckout extends BaseSDK {
|
|
27
26
|
#process3ds: IThreeDSHandler;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import TonderError from '
|
|
2
|
-
import { MESSAGES_ES } from '
|
|
1
|
+
import TonderError from '../../shared/utils/errors';
|
|
2
|
+
import { MESSAGES_ES, ErrorKeyEnum } from '../../shared';
|
|
3
3
|
import type {
|
|
4
4
|
ISaveCardResponse,
|
|
5
5
|
SDKOptions,
|
|
6
6
|
IEnrollmentCustomizationOptions,
|
|
7
|
-
} from '
|
|
8
|
-
import { SDKType } from '
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import type Tonder from '@core/Tonder';
|
|
7
|
+
} from '../../types';
|
|
8
|
+
import { SDKType } from '../../types';
|
|
9
|
+
import BaseSDK from '../../core/BaseSDK';
|
|
10
|
+
import type Tonder from '../../core/Tonder';
|
|
12
11
|
import React from 'react';
|
|
13
12
|
|
|
14
13
|
class BaseEnrollment extends BaseSDK {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type Tonder from '
|
|
2
|
-
import type { ICustomer, ICustomerResponse } from '
|
|
3
|
-
import TonderError from '
|
|
4
|
-
import { ErrorKeyEnum } from '
|
|
1
|
+
import type Tonder from '../Tonder';
|
|
2
|
+
import type { ICustomer, ICustomerResponse } from '../../types';
|
|
3
|
+
import TonderError from '../../shared/utils/errors';
|
|
4
|
+
import { ErrorKeyEnum } from '../../shared';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
class BaseSDK {
|
|
@@ -3,15 +3,14 @@ import type {
|
|
|
3
3
|
IEnrollment,
|
|
4
4
|
ISaveCardResponse,
|
|
5
5
|
SDKOptions,
|
|
6
|
-
} from '
|
|
7
|
-
import TonderError from '
|
|
8
|
-
import { ErrorKeyEnum } from '
|
|
9
|
-
import { MESSAGES_ES } from '@shared/constants';
|
|
6
|
+
} from '../../types';
|
|
7
|
+
import TonderError from '../../shared/utils/errors';
|
|
8
|
+
import { ErrorKeyEnum, MESSAGES_ES } from '../../shared';
|
|
10
9
|
import React from 'react';
|
|
11
|
-
import { executeCallback } from '
|
|
12
|
-
import BaseEnrollment from '
|
|
13
|
-
import { SDKType } from '
|
|
14
|
-
import Tonder from '
|
|
10
|
+
import { executeCallback } from '../../shared/utils/common';
|
|
11
|
+
import BaseEnrollment from '../../core/BaseEnrollment';
|
|
12
|
+
import { SDKType } from '../../types';
|
|
13
|
+
import Tonder from '../../core/Tonder';
|
|
15
14
|
|
|
16
15
|
export class EnrollmentContainer implements IEnrollment {
|
|
17
16
|
#tonderClient: Tonder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type Tonder from '
|
|
2
|
-
import TonderError from '
|
|
3
|
-
import { ErrorKeyEnum } from '
|
|
1
|
+
import type Tonder from '../../core/Tonder';
|
|
2
|
+
import TonderError from '../../shared/utils/errors';
|
|
3
|
+
import { ErrorKeyEnum } from '../../shared';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import type {
|
|
6
6
|
IBaseProcessPaymentRequest,
|
|
@@ -10,9 +10,9 @@ import type {
|
|
|
10
10
|
IProcessPaymentRequest,
|
|
11
11
|
ITransaction,
|
|
12
12
|
SDKOptions,
|
|
13
|
-
} from '
|
|
14
|
-
import BaseCheckout from '
|
|
15
|
-
import { SDKType } from '
|
|
13
|
+
} from '../../types';
|
|
14
|
+
import BaseCheckout from '../../core/BaseCheckout';
|
|
15
|
+
import { SDKType } from '../../types';
|
|
16
16
|
|
|
17
17
|
class PaymentInlineContainer implements IPaymentInlineContainer {
|
|
18
18
|
#tonderClient: Tonder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type Tonder from '
|
|
2
|
-
import TonderError from '
|
|
3
|
-
import { ErrorKeyEnum } from '
|
|
1
|
+
import type Tonder from '../../core/Tonder';
|
|
2
|
+
import TonderError from '../../shared/utils/errors';
|
|
3
|
+
import { ErrorKeyEnum } from '../../shared';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import type {
|
|
6
6
|
IBaseResponse,
|
|
@@ -12,12 +12,12 @@ import type {
|
|
|
12
12
|
ISaveCardResponse,
|
|
13
13
|
ITransaction,
|
|
14
14
|
SDKOptions,
|
|
15
|
-
} from '
|
|
16
|
-
import BaseCheckout from '
|
|
17
|
-
import { SDKType } from '
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
15
|
+
} from '../../types';
|
|
16
|
+
import BaseCheckout from '../../core/BaseCheckout';
|
|
17
|
+
import { SDKType } from '../../types';
|
|
18
|
+
import { getPaymentMethodsWithDetails } from '../../shared/utils/paymentMethodUtils';
|
|
19
|
+
import { getCardType } from '../../shared/catalog/cardBrandCatalog';
|
|
20
|
+
import { defaultTo } from '../../shared/utils/stringUtils';
|
|
21
21
|
|
|
22
22
|
class PaymentLiteContainer implements IPaymentLiteContainer {
|
|
23
23
|
#tonderClient: Tonder;
|
package/src/core/Tonder/index.ts
CHANGED
|
@@ -3,11 +3,10 @@ import type {
|
|
|
3
3
|
ICustomerResponse,
|
|
4
4
|
IPaymentMethod,
|
|
5
5
|
ISDKBaseConfig,
|
|
6
|
-
} from '
|
|
7
|
-
import { ServiceManager } from '
|
|
8
|
-
import TonderError from '
|
|
9
|
-
import { ErrorKeyEnum } from '
|
|
10
|
-
import { TONDER_URL_BY_MODE } from '@shared/constants';
|
|
6
|
+
} from '../../types';
|
|
7
|
+
import { ServiceManager } from '../../infrastructure';
|
|
8
|
+
import TonderError from '../../shared/utils/errors';
|
|
9
|
+
import { ErrorKeyEnum } from '../../shared';
|
|
11
10
|
|
|
12
11
|
class Tonder {
|
|
13
12
|
private config: ISDKBaseConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import useTonderContext from '
|
|
2
|
-
import { SDKType } from '
|
|
1
|
+
import useTonderContext from '../../ui/providers/TonderProvider/hook';
|
|
2
|
+
import { SDKType } from '../../types';
|
|
3
3
|
|
|
4
4
|
const useTonder = <T extends SDKType>() => {
|
|
5
5
|
const { sdk } = useTonderContext<T>();
|
package/src/index.tsx
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
const LINKING_ERROR =
|
|
4
|
+
`The package '@tonder.io/rn-sdk' doesn't seem to be linked. Make sure: \n\n` +
|
|
5
|
+
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
6
|
+
'- You rebuilt the app after installing the package\n' +
|
|
7
|
+
'- You are not using Expo Go\n';
|
|
8
|
+
|
|
9
|
+
const RnSdk = NativeModules.RnSdk
|
|
10
|
+
? NativeModules.RnSdk
|
|
11
|
+
: new Proxy(
|
|
12
|
+
{},
|
|
13
|
+
{
|
|
14
|
+
get() {
|
|
15
|
+
throw new Error(LINKING_ERROR);
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
export function multiply(a: number, b: number): Promise<number> {
|
|
21
|
+
return RnSdk.multiply(a, b);
|
|
22
|
+
}
|
|
23
|
+
|
|
1
24
|
export * from './ui/components/Input/CardHolderInput';
|
|
2
25
|
export * from './ui/components/Input/CardExpirationMonthInput';
|
|
3
26
|
export * from './ui/components/Input/CardExpirationYearInput';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { IApiConfig } from '
|
|
2
|
-
import TonderError from '
|
|
3
|
-
import { TONDER_URL_BY_MODE } from '
|
|
4
|
-
import { ErrorKeyEnum } from '@shared/enum';
|
|
1
|
+
import type { IApiConfig } from '../types';
|
|
2
|
+
import TonderError from '../shared/utils/errors';
|
|
3
|
+
import { TONDER_URL_BY_MODE, ErrorKeyEnum } from '../shared';
|
|
5
4
|
|
|
6
5
|
export class HttpClient {
|
|
7
6
|
private readonly baseUrl: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpClient } from '
|
|
2
|
-
import type { ISDKBaseConfig } from '
|
|
1
|
+
import { HttpClient } from './HttpClient';
|
|
2
|
+
import type { ISDKBaseConfig } from '../types';
|
|
3
3
|
import {
|
|
4
4
|
CardService,
|
|
5
5
|
CheckoutService,
|
|
@@ -11,8 +11,7 @@ import {
|
|
|
11
11
|
BusinessService,
|
|
12
12
|
MercadoPagoService,
|
|
13
13
|
TransactionService,
|
|
14
|
-
|
|
15
|
-
} from '@services';
|
|
14
|
+
} from '../services';
|
|
16
15
|
|
|
17
16
|
export class ServiceManager {
|
|
18
17
|
private readonly http: HttpClient;
|
|
@@ -26,7 +25,6 @@ export class ServiceManager {
|
|
|
26
25
|
readonly token: TokenService;
|
|
27
26
|
readonly openPay: OpenPayService;
|
|
28
27
|
readonly mercadoPago: MercadoPagoService;
|
|
29
|
-
readonly storage: StorageService;
|
|
30
28
|
readonly transaction: TransactionService;
|
|
31
29
|
|
|
32
30
|
constructor(config: ISDKBaseConfig) {
|
|
@@ -44,7 +42,6 @@ export class ServiceManager {
|
|
|
44
42
|
this.token = new TokenService(this.http);
|
|
45
43
|
this.openPay = new OpenPayService();
|
|
46
44
|
this.mercadoPago = new MercadoPagoService();
|
|
47
|
-
this.storage = new StorageService();
|
|
48
45
|
this.transaction = new TransactionService(this.http);
|
|
49
46
|
}
|
|
50
47
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { GetBusinessResponse } from '
|
|
2
|
-
import TonderError from '
|
|
3
|
-
import { HttpClient } from '
|
|
4
|
-
import { ErrorKeyEnum } from '
|
|
1
|
+
import type { GetBusinessResponse } from '../types';
|
|
2
|
+
import TonderError from '../shared/utils/errors';
|
|
3
|
+
import { HttpClient } from '../infrastructure';
|
|
4
|
+
import { ErrorKeyEnum } from '../shared';
|
|
5
5
|
|
|
6
6
|
export class BusinessService {
|
|
7
7
|
private readonly BASE_PATH = '/api/v1/payments/business';
|
|
@@ -2,11 +2,10 @@ import type {
|
|
|
2
2
|
ICustomerCardsResponse,
|
|
3
3
|
ISaveCardResponse,
|
|
4
4
|
ISaveCardSkyflowRequest,
|
|
5
|
-
} from '
|
|
6
|
-
import TonderError from '
|
|
7
|
-
import { HttpClient } from '
|
|
8
|
-
import { MESSAGES_EN } from '
|
|
9
|
-
import { ErrorKeyEnum } from '@shared/enum';
|
|
5
|
+
} from '../types';
|
|
6
|
+
import TonderError from '../shared/utils/errors';
|
|
7
|
+
import { HttpClient } from '../infrastructure';
|
|
8
|
+
import { MESSAGES_EN, ErrorKeyEnum } from '../shared';
|
|
10
9
|
|
|
11
10
|
export class CardService {
|
|
12
11
|
private readonly BASE_PATH = '/api/v1/business';
|
|
@@ -6,10 +6,10 @@ import type {
|
|
|
6
6
|
ICheckoutResponse,
|
|
7
7
|
ICreatePaymentRequest,
|
|
8
8
|
ICreateOrderRequest,
|
|
9
|
-
} from '
|
|
10
|
-
import TonderError from '
|
|
11
|
-
import { HttpClient } from '
|
|
12
|
-
import { ErrorKeyEnum } from '
|
|
9
|
+
} from '../types';
|
|
10
|
+
import TonderError from '../shared/utils/errors';
|
|
11
|
+
import { HttpClient } from '../infrastructure';
|
|
12
|
+
import { ErrorKeyEnum } from '../shared';
|
|
13
13
|
|
|
14
14
|
export class CheckoutService {
|
|
15
15
|
private readonly BASE_PATHS = {
|