@sumup/react-native-checkout 0.0.0-alpha.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 +201 -0
- package/README.md +354 -0
- package/android/build.gradle +78 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/com/sumupreactnative/PaymentUtil.java +111 -0
- package/android/src/main/java/com/sumupreactnative/SumupReactNativeModule.java +187 -0
- package/android/src/main/java/com/sumupreactnative/SumupReactNativePackage.java +28 -0
- package/ios/SumupReactNative-Bridging-Header.h +2 -0
- package/ios/SumupReactNative.m +18 -0
- package/ios/SumupReactNative.swift +164 -0
- package/ios/SumupReactNative.xcodeproj/project.pbxproj +283 -0
- package/lib/commonjs/assets/fonts/AktivGrotesk/AktivGrotesk-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/SFProText/SFProText-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/SFProText/SFProText-Regular.ttf +0 -0
- package/lib/commonjs/assets/icons/americanExpress/americanExpress@2x.png +0 -0
- package/lib/commonjs/assets/icons/americanExpress/americanExpress@3x.png +0 -0
- package/lib/commonjs/assets/icons/applePay/applePay@2x.png +0 -0
- package/lib/commonjs/assets/icons/applePay/applePay@3x.png +0 -0
- package/lib/commonjs/assets/icons/back/back@2x.png +0 -0
- package/lib/commonjs/assets/icons/back/back@3x.png +0 -0
- package/lib/commonjs/assets/icons/cardPlaceholder/cardPlaceholder@2x.png +0 -0
- package/lib/commonjs/assets/icons/cardPlaceholder/cardPlaceholder@3x.png +0 -0
- package/lib/commonjs/assets/icons/checkbox/checkbox@2x.png +0 -0
- package/lib/commonjs/assets/icons/checkbox/checkbox@3x.png +0 -0
- package/lib/commonjs/assets/icons/cross/cross@2x.png +0 -0
- package/lib/commonjs/assets/icons/cross/cross@3x.png +0 -0
- package/lib/commonjs/assets/icons/googlePay/googlePay@2x.png +0 -0
- package/lib/commonjs/assets/icons/googlePay/googlePay@3x.png +0 -0
- package/lib/commonjs/assets/icons/lock/lock@2x.png +0 -0
- package/lib/commonjs/assets/icons/lock/lock@3x.png +0 -0
- package/lib/commonjs/assets/icons/mastercard/mastercard@2x.png +0 -0
- package/lib/commonjs/assets/icons/mastercard/mastercard@3x.png +0 -0
- package/lib/commonjs/assets/icons/more/more@2x.png +0 -0
- package/lib/commonjs/assets/icons/more/more@3x.png +0 -0
- package/lib/commonjs/assets/icons/rightArrow/rightArrow@2x.png +0 -0
- package/lib/commonjs/assets/icons/rightArrow/rightArrow@3x.png +0 -0
- package/lib/commonjs/assets/icons/visa/visa@2x.png +0 -0
- package/lib/commonjs/assets/icons/visa/visa@3x.png +0 -0
- package/lib/commonjs/assets/icons/whiteCheckmark/whiteCheckmark@2x.png +0 -0
- package/lib/commonjs/assets/icons/whiteCheckmark/whiteCheckmark@3x.png +0 -0
- package/lib/commonjs/components/3DSecureSheet/index.js +56 -0
- package/lib/commonjs/components/3DSecureSheet/index.js.map +1 -0
- package/lib/commonjs/components/AnimatedContainer/index.js +75 -0
- package/lib/commonjs/components/AnimatedContainer/index.js.map +1 -0
- package/lib/commonjs/components/AnimatedContainer/styles.js +40 -0
- package/lib/commonjs/components/AnimatedContainer/styles.js.map +1 -0
- package/lib/commonjs/components/ApplePayButton/index.js +29 -0
- package/lib/commonjs/components/ApplePayButton/index.js.map +1 -0
- package/lib/commonjs/components/ApplePayButton/styles.js +31 -0
- package/lib/commonjs/components/ApplePayButton/styles.js.map +1 -0
- package/lib/commonjs/components/Button/index.js +21 -0
- package/lib/commonjs/components/Button/index.js.map +1 -0
- package/lib/commonjs/components/Button/styles.js +55 -0
- package/lib/commonjs/components/Button/styles.js.map +1 -0
- package/lib/commonjs/components/CardInformation/index.js +87 -0
- package/lib/commonjs/components/CardInformation/index.js.map +1 -0
- package/lib/commonjs/components/CardInformation/styles.js +42 -0
- package/lib/commonjs/components/CardInformation/styles.js.map +1 -0
- package/lib/commonjs/components/CardSheet/index.js +138 -0
- package/lib/commonjs/components/CardSheet/index.js.map +1 -0
- package/lib/commonjs/components/CardSheet/styles.js +53 -0
- package/lib/commonjs/components/CardSheet/styles.js.map +1 -0
- package/lib/commonjs/components/CardSheet/useCardSheet/index.js +90 -0
- package/lib/commonjs/components/CardSheet/useCardSheet/index.js.map +1 -0
- package/lib/commonjs/components/Checkbox/index.js +25 -0
- package/lib/commonjs/components/Checkbox/index.js.map +1 -0
- package/lib/commonjs/components/Checkbox/styles.js +31 -0
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -0
- package/lib/commonjs/components/GooglePayButton/index.js +29 -0
- package/lib/commonjs/components/GooglePayButton/index.js.map +1 -0
- package/lib/commonjs/components/GooglePayButton/styles.js +36 -0
- package/lib/commonjs/components/GooglePayButton/styles.js.map +1 -0
- package/lib/commonjs/components/Header/index.js +35 -0
- package/lib/commonjs/components/Header/index.js.map +1 -0
- package/lib/commonjs/components/Header/styles.js +42 -0
- package/lib/commonjs/components/Header/styles.js.map +1 -0
- package/lib/commonjs/components/ImageButton/index.js +28 -0
- package/lib/commonjs/components/ImageButton/index.js.map +1 -0
- package/lib/commonjs/components/ImageButton/styles.js +16 -0
- package/lib/commonjs/components/ImageButton/styles.js.map +1 -0
- package/lib/commonjs/components/InputFields/BaseInputField/index.js +48 -0
- package/lib/commonjs/components/InputFields/BaseInputField/index.js.map +1 -0
- package/lib/commonjs/components/InputFields/BaseInputField/styles.js +45 -0
- package/lib/commonjs/components/InputFields/BaseInputField/styles.js.map +1 -0
- package/lib/commonjs/components/InputFields/CVCInputField/index.js +27 -0
- package/lib/commonjs/components/InputFields/CVCInputField/index.js.map +1 -0
- package/lib/commonjs/components/InputFields/CVCInputField/styles.js +28 -0
- package/lib/commonjs/components/InputFields/CVCInputField/styles.js.map +1 -0
- package/lib/commonjs/components/InputFields/CardInputField/index.js +47 -0
- package/lib/commonjs/components/InputFields/CardInputField/index.js.map +1 -0
- package/lib/commonjs/components/InputFields/CardInputField/styles.js +31 -0
- package/lib/commonjs/components/InputFields/CardInputField/styles.js.map +1 -0
- package/lib/commonjs/components/InputFields/ExpirationDateInputField/index.js +20 -0
- package/lib/commonjs/components/InputFields/ExpirationDateInputField/index.js.map +1 -0
- package/lib/commonjs/components/LoadingSpinner/index.js +42 -0
- package/lib/commonjs/components/LoadingSpinner/index.js.map +1 -0
- package/lib/commonjs/components/LoadingSpinner/styles.js +35 -0
- package/lib/commonjs/components/LoadingSpinner/styles.js.map +1 -0
- package/lib/commonjs/components/Modal/index.js +27 -0
- package/lib/commonjs/components/Modal/index.js.map +1 -0
- package/lib/commonjs/components/Modal/styles.js +35 -0
- package/lib/commonjs/components/Modal/styles.js.map +1 -0
- package/lib/commonjs/components/NativePayButton/index.js +20 -0
- package/lib/commonjs/components/NativePayButton/index.js.map +1 -0
- package/lib/commonjs/components/NoInternetConnection/index.js +32 -0
- package/lib/commonjs/components/NoInternetConnection/index.js.map +1 -0
- package/lib/commonjs/components/NoInternetConnection/styles.js +21 -0
- package/lib/commonjs/components/NoInternetConnection/styles.js.map +1 -0
- package/lib/commonjs/components/OptionMenuModal/index.js +74 -0
- package/lib/commonjs/components/OptionMenuModal/index.js.map +1 -0
- package/lib/commonjs/components/OptionMenuModal/styles.js +50 -0
- package/lib/commonjs/components/OptionMenuModal/styles.js.map +1 -0
- package/lib/commonjs/components/PayButton/index.js +56 -0
- package/lib/commonjs/components/PayButton/index.js.map +1 -0
- package/lib/commonjs/components/PayButton/styles.js +32 -0
- package/lib/commonjs/components/PayButton/styles.js.map +1 -0
- package/lib/commonjs/components/PaymentMethod/index.js +45 -0
- package/lib/commonjs/components/PaymentMethod/index.js.map +1 -0
- package/lib/commonjs/components/PaymentMethod/styles.js +22 -0
- package/lib/commonjs/components/PaymentMethod/styles.js.map +1 -0
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/index.js +28 -0
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/index.js.map +1 -0
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/styles.js +43 -0
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/styles.js.map +1 -0
- package/lib/commonjs/components/PaymentMethodsForm/index.js +23 -0
- package/lib/commonjs/components/PaymentMethodsForm/index.js.map +1 -0
- package/lib/commonjs/components/PaymentMethodsForm/styles.js +30 -0
- package/lib/commonjs/components/PaymentMethodsForm/styles.js.map +1 -0
- package/lib/commonjs/components/PaymentSheet/index.js +85 -0
- package/lib/commonjs/components/PaymentSheet/index.js.map +1 -0
- package/lib/commonjs/components/PrivacyPolicySheet/consts.js +50 -0
- package/lib/commonjs/components/PrivacyPolicySheet/consts.js.map +1 -0
- package/lib/commonjs/components/PrivacyPolicySheet/index.js +35 -0
- package/lib/commonjs/components/PrivacyPolicySheet/index.js.map +1 -0
- package/lib/commonjs/components/ProcessButton/index.js +64 -0
- package/lib/commonjs/components/ProcessButton/index.js.map +1 -0
- package/lib/commonjs/components/ProcessButton/styles.js +36 -0
- package/lib/commonjs/components/ProcessButton/styles.js.map +1 -0
- package/lib/commonjs/components/SaveCard/index.js +87 -0
- package/lib/commonjs/components/SaveCard/index.js.map +1 -0
- package/lib/commonjs/components/SaveCard/styles.js +23 -0
- package/lib/commonjs/components/SaveCard/styles.js.map +1 -0
- package/lib/commonjs/components/SaveCard/useSaveCard/index.js +63 -0
- package/lib/commonjs/components/SaveCard/useSaveCard/index.js.map +1 -0
- package/lib/commonjs/components/SaveCardButton/index.js +33 -0
- package/lib/commonjs/components/SaveCardButton/index.js.map +1 -0
- package/lib/commonjs/components/SaveCardButton/styles.js +32 -0
- package/lib/commonjs/components/SaveCardButton/styles.js.map +1 -0
- package/lib/commonjs/components/SaveCardSheet/index.js +32 -0
- package/lib/commonjs/components/SaveCardSheet/index.js.map +1 -0
- package/lib/commonjs/components/SavedCard/index.js +50 -0
- package/lib/commonjs/components/SavedCard/index.js.map +1 -0
- package/lib/commonjs/components/SavedCard/styles.js +39 -0
- package/lib/commonjs/components/SavedCard/styles.js.map +1 -0
- package/lib/commonjs/components/SavedCardsSheet/index.js +87 -0
- package/lib/commonjs/components/SavedCardsSheet/index.js.map +1 -0
- package/lib/commonjs/components/SavedCardsSheet/styles.js +22 -0
- package/lib/commonjs/components/SavedCardsSheet/styles.js.map +1 -0
- package/lib/commonjs/components/SumUpProvider.js +59 -0
- package/lib/commonjs/components/SumUpProvider.js.map +1 -0
- package/lib/commonjs/components/Switch/index.js +37 -0
- package/lib/commonjs/components/Switch/index.js.map +1 -0
- package/lib/commonjs/components/Switch/styles.js +55 -0
- package/lib/commonjs/components/Switch/styles.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +63 -0
- package/lib/commonjs/components/Text/index.js.map +1 -0
- package/lib/commonjs/components/Text/styles.js +19 -0
- package/lib/commonjs/components/Text/styles.js.map +1 -0
- package/lib/commonjs/components/WebViewSheet/index.js +48 -0
- package/lib/commonjs/components/WebViewSheet/index.js.map +1 -0
- package/lib/commonjs/components/WebViewSheet/styles.js +54 -0
- package/lib/commonjs/components/WebViewSheet/styles.js.map +1 -0
- package/lib/commonjs/consts/UI.js +11 -0
- package/lib/commonjs/consts/UI.js.map +1 -0
- package/lib/commonjs/consts/errors.js +13 -0
- package/lib/commonjs/consts/errors.js.map +1 -0
- package/lib/commonjs/consts/nativePayMethod.js +19 -0
- package/lib/commonjs/consts/nativePayMethod.js.map +1 -0
- package/lib/commonjs/consts/validation.js +22 -0
- package/lib/commonjs/consts/validation.js.map +1 -0
- package/lib/commonjs/contexts/LanguageContext/index.js +38 -0
- package/lib/commonjs/contexts/LanguageContext/index.js.map +1 -0
- package/lib/commonjs/contexts/OptionMenuContext/index.js +39 -0
- package/lib/commonjs/contexts/OptionMenuContext/index.js.map +1 -0
- package/lib/commonjs/contexts/PaymentSheetContext/index.js +39 -0
- package/lib/commonjs/contexts/PaymentSheetContext/index.js.map +1 -0
- package/lib/commonjs/contexts/StoreContext.js +49 -0
- package/lib/commonjs/contexts/StoreContext.js.map +1 -0
- package/lib/commonjs/contexts/ThemeContext.js +15 -0
- package/lib/commonjs/contexts/ThemeContext.js.map +1 -0
- package/lib/commonjs/helpers/formatAmount/index.js +26 -0
- package/lib/commonjs/helpers/formatAmount/index.js.map +1 -0
- package/lib/commonjs/helpers/getUserAgent/index.js +12 -0
- package/lib/commonjs/helpers/getUserAgent/index.js.map +1 -0
- package/lib/commonjs/helpers/validation/paymentFields.js +56 -0
- package/lib/commonjs/helpers/validation/paymentFields.js.map +1 -0
- package/lib/commonjs/hooks/base/index.js +34 -0
- package/lib/commonjs/hooks/base/index.js.map +1 -0
- package/lib/commonjs/hooks/base/useCard/index.js +62 -0
- package/lib/commonjs/hooks/base/useCard/index.js.map +1 -0
- package/lib/commonjs/hooks/base/useCvcCode/index.js +52 -0
- package/lib/commonjs/hooks/base/useCvcCode/index.js.map +1 -0
- package/lib/commonjs/hooks/base/useExpirationDate/index.js +66 -0
- package/lib/commonjs/hooks/base/useExpirationDate/index.js.map +1 -0
- package/lib/commonjs/hooks/base/useName/index.js +52 -0
- package/lib/commonjs/hooks/base/useName/index.js.map +1 -0
- package/lib/commonjs/hooks/useSafeArea.js +18 -0
- package/lib/commonjs/hooks/useSafeArea.js.map +1 -0
- package/lib/commonjs/hooks/useSumUp.js +82 -0
- package/lib/commonjs/hooks/useSumUp.js.map +1 -0
- package/lib/commonjs/index.js +59 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/publicApi/errors.js +103 -0
- package/lib/commonjs/publicApi/errors.js.map +1 -0
- package/lib/commonjs/services/API/ApiManager/index.js +154 -0
- package/lib/commonjs/services/API/ApiManager/index.js.map +1 -0
- package/lib/commonjs/services/API/CheckoutApiManager/index.js +83 -0
- package/lib/commonjs/services/API/CheckoutApiManager/index.js.map +1 -0
- package/lib/commonjs/services/API/CheckoutApiManager/models.js +6 -0
- package/lib/commonjs/services/API/CheckoutApiManager/models.js.map +1 -0
- package/lib/commonjs/services/API/PullingService/index.js +26 -0
- package/lib/commonjs/services/API/PullingService/index.js.map +1 -0
- package/lib/commonjs/services/ApplePayService/index.js +51 -0
- package/lib/commonjs/services/ApplePayService/index.js.map +1 -0
- package/lib/commonjs/services/GooglePayService/index.js +57 -0
- package/lib/commonjs/services/GooglePayService/index.js.map +1 -0
- package/lib/commonjs/services/Logger/index.js +27 -0
- package/lib/commonjs/services/Logger/index.js.map +1 -0
- package/lib/commonjs/services/NativePaymentsBridge/index.js +10 -0
- package/lib/commonjs/services/NativePaymentsBridge/index.js.map +1 -0
- package/lib/commonjs/stores/BaseSheetStore/index.js +127 -0
- package/lib/commonjs/stores/BaseSheetStore/index.js.map +1 -0
- package/lib/commonjs/stores/NativePaymentStore/index.js +108 -0
- package/lib/commonjs/stores/NativePaymentStore/index.js.map +1 -0
- package/lib/commonjs/stores/PaymentInstrumentsStore/index.js +121 -0
- package/lib/commonjs/stores/PaymentInstrumentsStore/index.js.map +1 -0
- package/lib/commonjs/stores/PaymentStore/index.js +150 -0
- package/lib/commonjs/stores/PaymentStore/index.js.map +1 -0
- package/lib/commonjs/stores/RootStore.js +25 -0
- package/lib/commonjs/stores/RootStore.js.map +1 -0
- package/lib/commonjs/stores/SaveCardStore/index.js +131 -0
- package/lib/commonjs/stores/SaveCardStore/index.js.map +1 -0
- package/lib/commonjs/stores/ThreeDSecureStore/index.js +63 -0
- package/lib/commonjs/stores/ThreeDSecureStore/index.js.map +1 -0
- package/lib/commonjs/styles/colors.js +30 -0
- package/lib/commonjs/styles/colors.js.map +1 -0
- package/lib/commonjs/styles/fonts.js +13 -0
- package/lib/commonjs/styles/fonts.js.map +1 -0
- package/lib/commonjs/styles/images.js +23 -0
- package/lib/commonjs/styles/images.js.map +1 -0
- package/lib/commonjs/styles/index.js +15 -0
- package/lib/commonjs/styles/index.js.map +1 -0
- package/lib/commonjs/translations/bg-BG.json +55 -0
- package/lib/commonjs/translations/ca-ES.json +55 -0
- package/lib/commonjs/translations/cs-CZ.json +55 -0
- package/lib/commonjs/translations/da-DK.json +55 -0
- package/lib/commonjs/translations/de-AT.json +55 -0
- package/lib/commonjs/translations/de-CH.json +55 -0
- package/lib/commonjs/translations/de-DE.json +55 -0
- package/lib/commonjs/translations/de-LU.json +55 -0
- package/lib/commonjs/translations/el-CY.json +55 -0
- package/lib/commonjs/translations/el-GR.json +55 -0
- package/lib/commonjs/translations/en-AU.json +55 -0
- package/lib/commonjs/translations/en-GB.json +55 -0
- package/lib/commonjs/translations/en-IE.json +55 -0
- package/lib/commonjs/translations/en-MT.json +55 -0
- package/lib/commonjs/translations/en-US.json +55 -0
- package/lib/commonjs/translations/en.json +55 -0
- package/lib/commonjs/translations/es-CL.json +55 -0
- package/lib/commonjs/translations/es-CO.json +55 -0
- package/lib/commonjs/translations/es-ES.json +55 -0
- package/lib/commonjs/translations/es-LA.json +55 -0
- package/lib/commonjs/translations/es-PE.json +55 -0
- package/lib/commonjs/translations/et-EE.json +55 -0
- package/lib/commonjs/translations/fi-FI.json +55 -0
- package/lib/commonjs/translations/fr-BE.json +55 -0
- package/lib/commonjs/translations/fr-CH.json +55 -0
- package/lib/commonjs/translations/fr-FR.json +55 -0
- package/lib/commonjs/translations/fr-LU.json +55 -0
- package/lib/commonjs/translations/hr-HR.json +55 -0
- package/lib/commonjs/translations/hu-HU.json +55 -0
- package/lib/commonjs/translations/index.js +95 -0
- package/lib/commonjs/translations/index.js.map +1 -0
- package/lib/commonjs/translations/it-CH.json +55 -0
- package/lib/commonjs/translations/it-IT.json +55 -0
- package/lib/commonjs/translations/lt-LT.json +55 -0
- package/lib/commonjs/translations/lv-LV.json +55 -0
- package/lib/commonjs/translations/nb-NO.json +55 -0
- package/lib/commonjs/translations/nl-BE.json +55 -0
- package/lib/commonjs/translations/nl-NL.json +55 -0
- package/lib/commonjs/translations/pl-PL.json +55 -0
- package/lib/commonjs/translations/pt-BR.json +55 -0
- package/lib/commonjs/translations/pt-PT.json +55 -0
- package/lib/commonjs/translations/ro-RO.json +55 -0
- package/lib/commonjs/translations/sk-SK.json +55 -0
- package/lib/commonjs/translations/sl-SI.json +55 -0
- package/lib/commonjs/translations/sv-SE.json +55 -0
- package/lib/commonjs/types/ApplePay.js +2 -0
- package/lib/commonjs/types/ApplePay.js.map +1 -0
- package/lib/commonjs/types/CommonSheet.js +2 -0
- package/lib/commonjs/types/CommonSheet.js.map +1 -0
- package/lib/commonjs/types/GooglePay.js +2 -0
- package/lib/commonjs/types/GooglePay.js.map +1 -0
- package/lib/commonjs/types/PaymentSheet.js +6 -0
- package/lib/commonjs/types/PaymentSheet.js.map +1 -0
- package/lib/commonjs/types/Requests.js +2 -0
- package/lib/commonjs/types/Requests.js.map +1 -0
- package/lib/commonjs/types/SaveCardSheet.js +6 -0
- package/lib/commonjs/types/SaveCardSheet.js.map +1 -0
- package/lib/commonjs/types/index.js +19 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/react-native-safe-area-context.d.js +2 -0
- package/lib/commonjs/types/react-native-safe-area-context.d.js.map +1 -0
- package/lib/module/assets/fonts/AktivGrotesk/AktivGrotesk-Bold.ttf +0 -0
- package/lib/module/assets/fonts/SFProText/SFProText-Bold.ttf +0 -0
- package/lib/module/assets/fonts/SFProText/SFProText-Regular.ttf +0 -0
- package/lib/module/assets/icons/americanExpress/americanExpress@2x.png +0 -0
- package/lib/module/assets/icons/americanExpress/americanExpress@3x.png +0 -0
- package/lib/module/assets/icons/applePay/applePay@2x.png +0 -0
- package/lib/module/assets/icons/applePay/applePay@3x.png +0 -0
- package/lib/module/assets/icons/back/back@2x.png +0 -0
- package/lib/module/assets/icons/back/back@3x.png +0 -0
- package/lib/module/assets/icons/cardPlaceholder/cardPlaceholder@2x.png +0 -0
- package/lib/module/assets/icons/cardPlaceholder/cardPlaceholder@3x.png +0 -0
- package/lib/module/assets/icons/checkbox/checkbox@2x.png +0 -0
- package/lib/module/assets/icons/checkbox/checkbox@3x.png +0 -0
- package/lib/module/assets/icons/cross/cross@2x.png +0 -0
- package/lib/module/assets/icons/cross/cross@3x.png +0 -0
- package/lib/module/assets/icons/googlePay/googlePay@2x.png +0 -0
- package/lib/module/assets/icons/googlePay/googlePay@3x.png +0 -0
- package/lib/module/assets/icons/lock/lock@2x.png +0 -0
- package/lib/module/assets/icons/lock/lock@3x.png +0 -0
- package/lib/module/assets/icons/mastercard/mastercard@2x.png +0 -0
- package/lib/module/assets/icons/mastercard/mastercard@3x.png +0 -0
- package/lib/module/assets/icons/more/more@2x.png +0 -0
- package/lib/module/assets/icons/more/more@3x.png +0 -0
- package/lib/module/assets/icons/rightArrow/rightArrow@2x.png +0 -0
- package/lib/module/assets/icons/rightArrow/rightArrow@3x.png +0 -0
- package/lib/module/assets/icons/visa/visa@2x.png +0 -0
- package/lib/module/assets/icons/visa/visa@3x.png +0 -0
- package/lib/module/assets/icons/whiteCheckmark/whiteCheckmark@2x.png +0 -0
- package/lib/module/assets/icons/whiteCheckmark/whiteCheckmark@3x.png +0 -0
- package/lib/module/components/3DSecureSheet/index.js +46 -0
- package/lib/module/components/3DSecureSheet/index.js.map +1 -0
- package/lib/module/components/AnimatedContainer/index.js +66 -0
- package/lib/module/components/AnimatedContainer/index.js.map +1 -0
- package/lib/module/components/AnimatedContainer/styles.js +33 -0
- package/lib/module/components/AnimatedContainer/styles.js.map +1 -0
- package/lib/module/components/ApplePayButton/index.js +21 -0
- package/lib/module/components/ApplePayButton/index.js.map +1 -0
- package/lib/module/components/ApplePayButton/styles.js +24 -0
- package/lib/module/components/ApplePayButton/styles.js.map +1 -0
- package/lib/module/components/Button/index.js +13 -0
- package/lib/module/components/Button/index.js.map +1 -0
- package/lib/module/components/Button/styles.js +48 -0
- package/lib/module/components/Button/styles.js.map +1 -0
- package/lib/module/components/CardInformation/index.js +78 -0
- package/lib/module/components/CardInformation/index.js.map +1 -0
- package/lib/module/components/CardInformation/styles.js +35 -0
- package/lib/module/components/CardInformation/styles.js.map +1 -0
- package/lib/module/components/CardSheet/index.js +130 -0
- package/lib/module/components/CardSheet/index.js.map +1 -0
- package/lib/module/components/CardSheet/styles.js +46 -0
- package/lib/module/components/CardSheet/styles.js.map +1 -0
- package/lib/module/components/CardSheet/useCardSheet/index.js +83 -0
- package/lib/module/components/CardSheet/useCardSheet/index.js.map +1 -0
- package/lib/module/components/Checkbox/index.js +17 -0
- package/lib/module/components/Checkbox/index.js.map +1 -0
- package/lib/module/components/Checkbox/styles.js +24 -0
- package/lib/module/components/Checkbox/styles.js.map +1 -0
- package/lib/module/components/GooglePayButton/index.js +21 -0
- package/lib/module/components/GooglePayButton/index.js.map +1 -0
- package/lib/module/components/GooglePayButton/styles.js +29 -0
- package/lib/module/components/GooglePayButton/styles.js.map +1 -0
- package/lib/module/components/Header/index.js +27 -0
- package/lib/module/components/Header/index.js.map +1 -0
- package/lib/module/components/Header/styles.js +35 -0
- package/lib/module/components/Header/styles.js.map +1 -0
- package/lib/module/components/ImageButton/index.js +20 -0
- package/lib/module/components/ImageButton/index.js.map +1 -0
- package/lib/module/components/ImageButton/styles.js +9 -0
- package/lib/module/components/ImageButton/styles.js.map +1 -0
- package/lib/module/components/InputFields/BaseInputField/index.js +40 -0
- package/lib/module/components/InputFields/BaseInputField/index.js.map +1 -0
- package/lib/module/components/InputFields/BaseInputField/styles.js +38 -0
- package/lib/module/components/InputFields/BaseInputField/styles.js.map +1 -0
- package/lib/module/components/InputFields/CVCInputField/index.js +19 -0
- package/lib/module/components/InputFields/CVCInputField/index.js.map +1 -0
- package/lib/module/components/InputFields/CVCInputField/styles.js +21 -0
- package/lib/module/components/InputFields/CVCInputField/styles.js.map +1 -0
- package/lib/module/components/InputFields/CardInputField/index.js +39 -0
- package/lib/module/components/InputFields/CardInputField/index.js.map +1 -0
- package/lib/module/components/InputFields/CardInputField/styles.js +24 -0
- package/lib/module/components/InputFields/CardInputField/styles.js.map +1 -0
- package/lib/module/components/InputFields/ExpirationDateInputField/index.js +12 -0
- package/lib/module/components/InputFields/ExpirationDateInputField/index.js.map +1 -0
- package/lib/module/components/LoadingSpinner/index.js +33 -0
- package/lib/module/components/LoadingSpinner/index.js.map +1 -0
- package/lib/module/components/LoadingSpinner/styles.js +28 -0
- package/lib/module/components/LoadingSpinner/styles.js.map +1 -0
- package/lib/module/components/Modal/index.js +19 -0
- package/lib/module/components/Modal/index.js.map +1 -0
- package/lib/module/components/Modal/styles.js +28 -0
- package/lib/module/components/Modal/styles.js.map +1 -0
- package/lib/module/components/NativePayButton/index.js +12 -0
- package/lib/module/components/NativePayButton/index.js.map +1 -0
- package/lib/module/components/NoInternetConnection/index.js +24 -0
- package/lib/module/components/NoInternetConnection/index.js.map +1 -0
- package/lib/module/components/NoInternetConnection/styles.js +14 -0
- package/lib/module/components/NoInternetConnection/styles.js.map +1 -0
- package/lib/module/components/OptionMenuModal/index.js +66 -0
- package/lib/module/components/OptionMenuModal/index.js.map +1 -0
- package/lib/module/components/OptionMenuModal/styles.js +43 -0
- package/lib/module/components/OptionMenuModal/styles.js.map +1 -0
- package/lib/module/components/PayButton/index.js +48 -0
- package/lib/module/components/PayButton/index.js.map +1 -0
- package/lib/module/components/PayButton/styles.js +25 -0
- package/lib/module/components/PayButton/styles.js.map +1 -0
- package/lib/module/components/PaymentMethod/index.js +36 -0
- package/lib/module/components/PaymentMethod/index.js.map +1 -0
- package/lib/module/components/PaymentMethod/styles.js +15 -0
- package/lib/module/components/PaymentMethod/styles.js.map +1 -0
- package/lib/module/components/PaymentMethodFormHeaderOption/index.js +20 -0
- package/lib/module/components/PaymentMethodFormHeaderOption/index.js.map +1 -0
- package/lib/module/components/PaymentMethodFormHeaderOption/styles.js +36 -0
- package/lib/module/components/PaymentMethodFormHeaderOption/styles.js.map +1 -0
- package/lib/module/components/PaymentMethodsForm/index.js +14 -0
- package/lib/module/components/PaymentMethodsForm/index.js.map +1 -0
- package/lib/module/components/PaymentMethodsForm/styles.js +23 -0
- package/lib/module/components/PaymentMethodsForm/styles.js.map +1 -0
- package/lib/module/components/PaymentSheet/index.js +76 -0
- package/lib/module/components/PaymentSheet/index.js.map +1 -0
- package/lib/module/components/PrivacyPolicySheet/consts.js +41 -0
- package/lib/module/components/PrivacyPolicySheet/consts.js.map +1 -0
- package/lib/module/components/PrivacyPolicySheet/index.js +26 -0
- package/lib/module/components/PrivacyPolicySheet/index.js.map +1 -0
- package/lib/module/components/ProcessButton/index.js +54 -0
- package/lib/module/components/ProcessButton/index.js.map +1 -0
- package/lib/module/components/ProcessButton/styles.js +29 -0
- package/lib/module/components/ProcessButton/styles.js.map +1 -0
- package/lib/module/components/SaveCard/index.js +79 -0
- package/lib/module/components/SaveCard/index.js.map +1 -0
- package/lib/module/components/SaveCard/styles.js +16 -0
- package/lib/module/components/SaveCard/styles.js.map +1 -0
- package/lib/module/components/SaveCard/useSaveCard/index.js +56 -0
- package/lib/module/components/SaveCard/useSaveCard/index.js.map +1 -0
- package/lib/module/components/SaveCardButton/index.js +25 -0
- package/lib/module/components/SaveCardButton/index.js.map +1 -0
- package/lib/module/components/SaveCardButton/styles.js +25 -0
- package/lib/module/components/SaveCardButton/styles.js.map +1 -0
- package/lib/module/components/SaveCardSheet/index.js +24 -0
- package/lib/module/components/SaveCardSheet/index.js.map +1 -0
- package/lib/module/components/SavedCard/index.js +42 -0
- package/lib/module/components/SavedCard/index.js.map +1 -0
- package/lib/module/components/SavedCard/styles.js +32 -0
- package/lib/module/components/SavedCard/styles.js.map +1 -0
- package/lib/module/components/SavedCardsSheet/index.js +78 -0
- package/lib/module/components/SavedCardsSheet/index.js.map +1 -0
- package/lib/module/components/SavedCardsSheet/styles.js +15 -0
- package/lib/module/components/SavedCardsSheet/styles.js.map +1 -0
- package/lib/module/components/SumUpProvider.js +51 -0
- package/lib/module/components/SumUpProvider.js.map +1 -0
- package/lib/module/components/Switch/index.js +28 -0
- package/lib/module/components/Switch/index.js.map +1 -0
- package/lib/module/components/Switch/styles.js +48 -0
- package/lib/module/components/Switch/styles.js.map +1 -0
- package/lib/module/components/Text/index.js +54 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/Text/styles.js +12 -0
- package/lib/module/components/Text/styles.js.map +1 -0
- package/lib/module/components/WebViewSheet/index.js +38 -0
- package/lib/module/components/WebViewSheet/index.js.map +1 -0
- package/lib/module/components/WebViewSheet/styles.js +47 -0
- package/lib/module/components/WebViewSheet/styles.js.map +1 -0
- package/lib/module/consts/UI.js +4 -0
- package/lib/module/consts/UI.js.map +1 -0
- package/lib/module/consts/errors.js +7 -0
- package/lib/module/consts/errors.js.map +1 -0
- package/lib/module/consts/nativePayMethod.js +12 -0
- package/lib/module/consts/nativePayMethod.js.map +1 -0
- package/lib/module/consts/validation.js +15 -0
- package/lib/module/consts/validation.js.map +1 -0
- package/lib/module/contexts/LanguageContext/index.js +28 -0
- package/lib/module/contexts/LanguageContext/index.js.map +1 -0
- package/lib/module/contexts/OptionMenuContext/index.js +29 -0
- package/lib/module/contexts/OptionMenuContext/index.js.map +1 -0
- package/lib/module/contexts/PaymentSheetContext/index.js +28 -0
- package/lib/module/contexts/PaymentSheetContext/index.js.map +1 -0
- package/lib/module/contexts/StoreContext.js +33 -0
- package/lib/module/contexts/StoreContext.js.map +1 -0
- package/lib/module/contexts/ThemeContext.js +8 -0
- package/lib/module/contexts/ThemeContext.js.map +1 -0
- package/lib/module/helpers/formatAmount/index.js +19 -0
- package/lib/module/helpers/formatAmount/index.js.map +1 -0
- package/lib/module/helpers/getUserAgent/index.js +5 -0
- package/lib/module/helpers/getUserAgent/index.js.map +1 -0
- package/lib/module/helpers/validation/paymentFields.js +43 -0
- package/lib/module/helpers/validation/paymentFields.js.map +1 -0
- package/lib/module/hooks/base/index.js +6 -0
- package/lib/module/hooks/base/index.js.map +1 -0
- package/lib/module/hooks/base/useCard/index.js +54 -0
- package/lib/module/hooks/base/useCard/index.js.map +1 -0
- package/lib/module/hooks/base/useCvcCode/index.js +44 -0
- package/lib/module/hooks/base/useCvcCode/index.js.map +1 -0
- package/lib/module/hooks/base/useExpirationDate/index.js +58 -0
- package/lib/module/hooks/base/useExpirationDate/index.js.map +1 -0
- package/lib/module/hooks/base/useName/index.js +44 -0
- package/lib/module/hooks/base/useName/index.js.map +1 -0
- package/lib/module/hooks/useSafeArea.js +11 -0
- package/lib/module/hooks/useSafeArea.js.map +1 -0
- package/lib/module/hooks/useSumUp.js +76 -0
- package/lib/module/hooks/useSumUp.js.map +1 -0
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/publicApi/errors.js +92 -0
- package/lib/module/publicApi/errors.js.map +1 -0
- package/lib/module/services/API/ApiManager/index.js +141 -0
- package/lib/module/services/API/ApiManager/index.js.map +1 -0
- package/lib/module/services/API/CheckoutApiManager/index.js +76 -0
- package/lib/module/services/API/CheckoutApiManager/index.js.map +1 -0
- package/lib/module/services/API/CheckoutApiManager/models.js +2 -0
- package/lib/module/services/API/CheckoutApiManager/models.js.map +1 -0
- package/lib/module/services/API/PullingService/index.js +19 -0
- package/lib/module/services/API/PullingService/index.js.map +1 -0
- package/lib/module/services/ApplePayService/index.js +42 -0
- package/lib/module/services/ApplePayService/index.js.map +1 -0
- package/lib/module/services/GooglePayService/index.js +48 -0
- package/lib/module/services/GooglePayService/index.js.map +1 -0
- package/lib/module/services/Logger/index.js +20 -0
- package/lib/module/services/Logger/index.js.map +1 -0
- package/lib/module/services/NativePaymentsBridge/index.js +3 -0
- package/lib/module/services/NativePaymentsBridge/index.js.map +1 -0
- package/lib/module/stores/BaseSheetStore/index.js +119 -0
- package/lib/module/stores/BaseSheetStore/index.js.map +1 -0
- package/lib/module/stores/NativePaymentStore/index.js +100 -0
- package/lib/module/stores/NativePaymentStore/index.js.map +1 -0
- package/lib/module/stores/PaymentInstrumentsStore/index.js +113 -0
- package/lib/module/stores/PaymentInstrumentsStore/index.js.map +1 -0
- package/lib/module/stores/PaymentStore/index.js +142 -0
- package/lib/module/stores/PaymentStore/index.js.map +1 -0
- package/lib/module/stores/RootStore.js +18 -0
- package/lib/module/stores/RootStore.js.map +1 -0
- package/lib/module/stores/SaveCardStore/index.js +123 -0
- package/lib/module/stores/SaveCardStore/index.js.map +1 -0
- package/lib/module/stores/ThreeDSecureStore/index.js +55 -0
- package/lib/module/stores/ThreeDSecureStore/index.js.map +1 -0
- package/lib/module/styles/colors.js +23 -0
- package/lib/module/styles/colors.js.map +1 -0
- package/lib/module/styles/fonts.js +6 -0
- package/lib/module/styles/fonts.js.map +1 -0
- package/lib/module/styles/images.js +16 -0
- package/lib/module/styles/images.js.map +1 -0
- package/lib/module/styles/index.js +5 -0
- package/lib/module/styles/index.js.map +1 -0
- package/lib/module/translations/bg-BG.json +55 -0
- package/lib/module/translations/ca-ES.json +55 -0
- package/lib/module/translations/cs-CZ.json +55 -0
- package/lib/module/translations/da-DK.json +55 -0
- package/lib/module/translations/de-AT.json +55 -0
- package/lib/module/translations/de-CH.json +55 -0
- package/lib/module/translations/de-DE.json +55 -0
- package/lib/module/translations/de-LU.json +55 -0
- package/lib/module/translations/el-CY.json +55 -0
- package/lib/module/translations/el-GR.json +55 -0
- package/lib/module/translations/en-AU.json +55 -0
- package/lib/module/translations/en-GB.json +55 -0
- package/lib/module/translations/en-IE.json +55 -0
- package/lib/module/translations/en-MT.json +55 -0
- package/lib/module/translations/en-US.json +55 -0
- package/lib/module/translations/en.json +55 -0
- package/lib/module/translations/es-CL.json +55 -0
- package/lib/module/translations/es-CO.json +55 -0
- package/lib/module/translations/es-ES.json +55 -0
- package/lib/module/translations/es-LA.json +55 -0
- package/lib/module/translations/es-PE.json +55 -0
- package/lib/module/translations/et-EE.json +55 -0
- package/lib/module/translations/fi-FI.json +55 -0
- package/lib/module/translations/fr-BE.json +55 -0
- package/lib/module/translations/fr-CH.json +55 -0
- package/lib/module/translations/fr-FR.json +55 -0
- package/lib/module/translations/fr-LU.json +55 -0
- package/lib/module/translations/hr-HR.json +55 -0
- package/lib/module/translations/hu-HU.json +55 -0
- package/lib/module/translations/index.js +87 -0
- package/lib/module/translations/index.js.map +1 -0
- package/lib/module/translations/it-CH.json +55 -0
- package/lib/module/translations/it-IT.json +55 -0
- package/lib/module/translations/lt-LT.json +55 -0
- package/lib/module/translations/lv-LV.json +55 -0
- package/lib/module/translations/nb-NO.json +55 -0
- package/lib/module/translations/nl-BE.json +55 -0
- package/lib/module/translations/nl-NL.json +55 -0
- package/lib/module/translations/pl-PL.json +55 -0
- package/lib/module/translations/pt-BR.json +55 -0
- package/lib/module/translations/pt-PT.json +55 -0
- package/lib/module/translations/ro-RO.json +55 -0
- package/lib/module/translations/sk-SK.json +55 -0
- package/lib/module/translations/sl-SI.json +55 -0
- package/lib/module/translations/sv-SE.json +55 -0
- package/lib/module/types/ApplePay.js +2 -0
- package/lib/module/types/ApplePay.js.map +1 -0
- package/lib/module/types/CommonSheet.js +2 -0
- package/lib/module/types/CommonSheet.js.map +1 -0
- package/lib/module/types/GooglePay.js +2 -0
- package/lib/module/types/GooglePay.js.map +1 -0
- package/lib/module/types/PaymentSheet.js +2 -0
- package/lib/module/types/PaymentSheet.js.map +1 -0
- package/lib/module/types/Requests.js +2 -0
- package/lib/module/types/Requests.js.map +1 -0
- package/lib/module/types/SaveCardSheet.js +2 -0
- package/lib/module/types/SaveCardSheet.js.map +1 -0
- package/lib/module/types/index.js +7 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/react-native-safe-area-context.d.js +2 -0
- package/lib/module/types/react-native-safe-area-context.d.js.map +1 -0
- package/lib/typescript/components/3DSecureSheet/index.d.ts +5 -0
- package/lib/typescript/components/3DSecureSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedContainer/index.d.ts +15 -0
- package/lib/typescript/components/AnimatedContainer/index.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedContainer/styles.d.ts +22 -0
- package/lib/typescript/components/AnimatedContainer/styles.d.ts.map +1 -0
- package/lib/typescript/components/ApplePayButton/index.d.ts +7 -0
- package/lib/typescript/components/ApplePayButton/index.d.ts.map +1 -0
- package/lib/typescript/components/ApplePayButton/styles.d.ts +16 -0
- package/lib/typescript/components/ApplePayButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/Button/index.d.ts +10 -0
- package/lib/typescript/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/components/Button/styles.d.ts +20 -0
- package/lib/typescript/components/Button/styles.d.ts.map +1 -0
- package/lib/typescript/components/CardInformation/index.d.ts +16 -0
- package/lib/typescript/components/CardInformation/index.d.ts.map +1 -0
- package/lib/typescript/components/CardInformation/styles.d.ts +27 -0
- package/lib/typescript/components/CardInformation/styles.d.ts.map +1 -0
- package/lib/typescript/components/CardSheet/index.d.ts +10 -0
- package/lib/typescript/components/CardSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/CardSheet/styles.d.ts +31 -0
- package/lib/typescript/components/CardSheet/styles.d.ts.map +1 -0
- package/lib/typescript/components/CardSheet/useCardSheet/index.d.ts +17 -0
- package/lib/typescript/components/CardSheet/useCardSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox/index.d.ts +8 -0
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox/styles.d.ts +16 -0
- package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -0
- package/lib/typescript/components/GooglePayButton/index.d.ts +7 -0
- package/lib/typescript/components/GooglePayButton/index.d.ts.map +1 -0
- package/lib/typescript/components/GooglePayButton/styles.d.ts +21 -0
- package/lib/typescript/components/GooglePayButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/Header/index.d.ts +9 -0
- package/lib/typescript/components/Header/index.d.ts.map +1 -0
- package/lib/typescript/components/Header/styles.d.ts +26 -0
- package/lib/typescript/components/Header/styles.d.ts.map +1 -0
- package/lib/typescript/components/ImageButton/index.d.ts +9 -0
- package/lib/typescript/components/ImageButton/index.d.ts.map +1 -0
- package/lib/typescript/components/ImageButton/styles.d.ts +5 -0
- package/lib/typescript/components/ImageButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/BaseInputField/index.d.ts +13 -0
- package/lib/typescript/components/InputFields/BaseInputField/index.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/BaseInputField/styles.d.ts +29 -0
- package/lib/typescript/components/InputFields/BaseInputField/styles.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/CVCInputField/index.d.ts +6 -0
- package/lib/typescript/components/InputFields/CVCInputField/index.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/CVCInputField/styles.d.ts +17 -0
- package/lib/typescript/components/InputFields/CVCInputField/styles.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/CardInputField/index.d.ts +9 -0
- package/lib/typescript/components/InputFields/CardInputField/index.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/CardInputField/styles.d.ts +20 -0
- package/lib/typescript/components/InputFields/CardInputField/styles.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/ExpirationDateInputField/index.d.ts +9 -0
- package/lib/typescript/components/InputFields/ExpirationDateInputField/index.d.ts.map +1 -0
- package/lib/typescript/components/LoadingSpinner/index.d.ts +3 -0
- package/lib/typescript/components/LoadingSpinner/index.d.ts.map +1 -0
- package/lib/typescript/components/LoadingSpinner/styles.d.ts +20 -0
- package/lib/typescript/components/LoadingSpinner/styles.d.ts.map +1 -0
- package/lib/typescript/components/Modal/index.d.ts +9 -0
- package/lib/typescript/components/Modal/index.d.ts.map +1 -0
- package/lib/typescript/components/Modal/styles.d.ts +20 -0
- package/lib/typescript/components/Modal/styles.d.ts.map +1 -0
- package/lib/typescript/components/NativePayButton/index.d.ts +7 -0
- package/lib/typescript/components/NativePayButton/index.d.ts.map +1 -0
- package/lib/typescript/components/NoInternetConnection/index.d.ts +3 -0
- package/lib/typescript/components/NoInternetConnection/index.d.ts.map +1 -0
- package/lib/typescript/components/NoInternetConnection/styles.d.ts +6 -0
- package/lib/typescript/components/NoInternetConnection/styles.d.ts.map +1 -0
- package/lib/typescript/components/OptionMenuModal/index.d.ts +8 -0
- package/lib/typescript/components/OptionMenuModal/index.d.ts.map +1 -0
- package/lib/typescript/components/OptionMenuModal/styles.d.ts +34 -0
- package/lib/typescript/components/OptionMenuModal/styles.d.ts.map +1 -0
- package/lib/typescript/components/PayButton/index.d.ts +10 -0
- package/lib/typescript/components/PayButton/index.d.ts.map +1 -0
- package/lib/typescript/components/PayButton/styles.d.ts +16 -0
- package/lib/typescript/components/PayButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethod/index.d.ts +11 -0
- package/lib/typescript/components/PaymentMethod/index.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethod/styles.d.ts +11 -0
- package/lib/typescript/components/PaymentMethod/styles.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethodFormHeaderOption/index.d.ts +11 -0
- package/lib/typescript/components/PaymentMethodFormHeaderOption/index.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethodFormHeaderOption/styles.d.ts +27 -0
- package/lib/typescript/components/PaymentMethodFormHeaderOption/styles.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethodsForm/index.d.ts +7 -0
- package/lib/typescript/components/PaymentMethodsForm/index.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethodsForm/styles.d.ts +15 -0
- package/lib/typescript/components/PaymentMethodsForm/styles.d.ts.map +1 -0
- package/lib/typescript/components/PaymentSheet/index.d.ts +5 -0
- package/lib/typescript/components/PaymentSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/PrivacyPolicySheet/consts.d.ts +41 -0
- package/lib/typescript/components/PrivacyPolicySheet/consts.d.ts.map +1 -0
- package/lib/typescript/components/PrivacyPolicySheet/index.d.ts +10 -0
- package/lib/typescript/components/PrivacyPolicySheet/index.d.ts.map +1 -0
- package/lib/typescript/components/ProcessButton/index.d.ts +11 -0
- package/lib/typescript/components/ProcessButton/index.d.ts.map +1 -0
- package/lib/typescript/components/ProcessButton/styles.d.ts +16 -0
- package/lib/typescript/components/ProcessButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/SaveCard/index.d.ts +9 -0
- package/lib/typescript/components/SaveCard/index.d.ts.map +1 -0
- package/lib/typescript/components/SaveCard/styles.d.ts +10 -0
- package/lib/typescript/components/SaveCard/styles.d.ts.map +1 -0
- package/lib/typescript/components/SaveCard/useSaveCard/index.d.ts +9 -0
- package/lib/typescript/components/SaveCard/useSaveCard/index.d.ts.map +1 -0
- package/lib/typescript/components/SaveCardButton/index.d.ts +10 -0
- package/lib/typescript/components/SaveCardButton/index.d.ts.map +1 -0
- package/lib/typescript/components/SaveCardButton/styles.d.ts +16 -0
- package/lib/typescript/components/SaveCardButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/SaveCardSheet/index.d.ts +5 -0
- package/lib/typescript/components/SaveCardSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/SavedCard/index.d.ts +8 -0
- package/lib/typescript/components/SavedCard/index.d.ts.map +1 -0
- package/lib/typescript/components/SavedCard/styles.d.ts +23 -0
- package/lib/typescript/components/SavedCard/styles.d.ts.map +1 -0
- package/lib/typescript/components/SavedCardsSheet/index.d.ts +10 -0
- package/lib/typescript/components/SavedCardsSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/SavedCardsSheet/styles.d.ts +9 -0
- package/lib/typescript/components/SavedCardsSheet/styles.d.ts.map +1 -0
- package/lib/typescript/components/SumUpProvider.d.ts +25 -0
- package/lib/typescript/components/SumUpProvider.d.ts.map +1 -0
- package/lib/typescript/components/Switch/index.d.ts +9 -0
- package/lib/typescript/components/Switch/index.d.ts.map +1 -0
- package/lib/typescript/components/Switch/styles.d.ts +37 -0
- package/lib/typescript/components/Switch/styles.d.ts.map +1 -0
- package/lib/typescript/components/Text/index.d.ts +10 -0
- package/lib/typescript/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/components/Text/styles.d.ts +9 -0
- package/lib/typescript/components/Text/styles.d.ts.map +1 -0
- package/lib/typescript/components/WebViewSheet/index.d.ts +9 -0
- package/lib/typescript/components/WebViewSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/WebViewSheet/styles.d.ts +34 -0
- package/lib/typescript/components/WebViewSheet/styles.d.ts.map +1 -0
- package/lib/typescript/consts/UI.d.ts +5 -0
- package/lib/typescript/consts/UI.d.ts.map +1 -0
- package/lib/typescript/consts/errors.d.ts +7 -0
- package/lib/typescript/consts/errors.d.ts.map +1 -0
- package/lib/typescript/consts/nativePayMethod.d.ts +12 -0
- package/lib/typescript/consts/nativePayMethod.d.ts.map +1 -0
- package/lib/typescript/consts/validation.d.ts +16 -0
- package/lib/typescript/consts/validation.d.ts.map +1 -0
- package/lib/typescript/contexts/LanguageContext/index.d.ts +12 -0
- package/lib/typescript/contexts/LanguageContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/OptionMenuContext/index.d.ts +16 -0
- package/lib/typescript/contexts/OptionMenuContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/PaymentSheetContext/index.d.ts +13 -0
- package/lib/typescript/contexts/PaymentSheetContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/StoreContext.d.ts +15 -0
- package/lib/typescript/contexts/StoreContext.d.ts.map +1 -0
- package/lib/typescript/contexts/ThemeContext.d.ts +45 -0
- package/lib/typescript/contexts/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/helpers/formatAmount/index.d.ts +2 -0
- package/lib/typescript/helpers/formatAmount/index.d.ts.map +1 -0
- package/lib/typescript/helpers/getUserAgent/index.d.ts +2 -0
- package/lib/typescript/helpers/getUserAgent/index.d.ts.map +1 -0
- package/lib/typescript/helpers/validation/paymentFields.d.ts +12 -0
- package/lib/typescript/helpers/validation/paymentFields.d.ts.map +1 -0
- package/lib/typescript/hooks/base/index.d.ts +6 -0
- package/lib/typescript/hooks/base/index.d.ts.map +1 -0
- package/lib/typescript/hooks/base/useCard/index.d.ts +3 -0
- package/lib/typescript/hooks/base/useCard/index.d.ts.map +1 -0
- package/lib/typescript/hooks/base/useCvcCode/index.d.ts +3 -0
- package/lib/typescript/hooks/base/useCvcCode/index.d.ts.map +1 -0
- package/lib/typescript/hooks/base/useExpirationDate/index.d.ts +3 -0
- package/lib/typescript/hooks/base/useExpirationDate/index.d.ts.map +1 -0
- package/lib/typescript/hooks/base/useName/index.d.ts +3 -0
- package/lib/typescript/hooks/base/useName/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useSafeArea.d.ts +7 -0
- package/lib/typescript/hooks/useSafeArea.d.ts.map +1 -0
- package/lib/typescript/hooks/useSumUp.d.ts +15 -0
- package/lib/typescript/hooks/useSumUp.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +6 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/publicApi/errors.d.ts +29 -0
- package/lib/typescript/publicApi/errors.d.ts.map +1 -0
- package/lib/typescript/services/API/ApiManager/index.d.ts +32 -0
- package/lib/typescript/services/API/ApiManager/index.d.ts.map +1 -0
- package/lib/typescript/services/API/CheckoutApiManager/index.d.ts +17 -0
- package/lib/typescript/services/API/CheckoutApiManager/index.d.ts.map +1 -0
- package/lib/typescript/services/API/CheckoutApiManager/models.d.ts +80 -0
- package/lib/typescript/services/API/CheckoutApiManager/models.d.ts.map +1 -0
- package/lib/typescript/services/API/PullingService/index.d.ts +7 -0
- package/lib/typescript/services/API/PullingService/index.d.ts.map +1 -0
- package/lib/typescript/services/ApplePayService/index.d.ts +11 -0
- package/lib/typescript/services/ApplePayService/index.d.ts.map +1 -0
- package/lib/typescript/services/GooglePayService/index.d.ts +12 -0
- package/lib/typescript/services/GooglePayService/index.d.ts.map +1 -0
- package/lib/typescript/services/Logger/index.d.ts +12 -0
- package/lib/typescript/services/Logger/index.d.ts.map +1 -0
- package/lib/typescript/services/NativePaymentsBridge/index.d.ts +34 -0
- package/lib/typescript/services/NativePaymentsBridge/index.d.ts.map +1 -0
- package/lib/typescript/stores/BaseSheetStore/index.d.ts +24 -0
- package/lib/typescript/stores/BaseSheetStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/NativePaymentStore/index.d.ts +23 -0
- package/lib/typescript/stores/NativePaymentStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/PaymentInstrumentsStore/index.d.ts +29 -0
- package/lib/typescript/stores/PaymentInstrumentsStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/PaymentStore/index.d.ts +18 -0
- package/lib/typescript/stores/PaymentStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/RootStore.d.ts +14 -0
- package/lib/typescript/stores/RootStore.d.ts.map +1 -0
- package/lib/typescript/stores/SaveCardStore/index.d.ts +17 -0
- package/lib/typescript/stores/SaveCardStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/ThreeDSecureStore/index.d.ts +18 -0
- package/lib/typescript/stores/ThreeDSecureStore/index.d.ts.map +1 -0
- package/lib/typescript/styles/colors.d.ts +23 -0
- package/lib/typescript/styles/colors.d.ts.map +1 -0
- package/lib/typescript/styles/fonts.d.ts +6 -0
- package/lib/typescript/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/styles/images.d.ts +16 -0
- package/lib/typescript/styles/images.d.ts.map +1 -0
- package/lib/typescript/styles/index.d.ts +5 -0
- package/lib/typescript/styles/index.d.ts.map +1 -0
- package/lib/typescript/translations/index.d.ts +2 -0
- package/lib/typescript/translations/index.d.ts.map +1 -0
- package/lib/typescript/types/ApplePay.d.ts +32 -0
- package/lib/typescript/types/ApplePay.d.ts.map +1 -0
- package/lib/typescript/types/CommonSheet.d.ts +45 -0
- package/lib/typescript/types/CommonSheet.d.ts.map +1 -0
- package/lib/typescript/types/GooglePay.d.ts +45 -0
- package/lib/typescript/types/GooglePay.d.ts.map +1 -0
- package/lib/typescript/types/PaymentSheet.d.ts +76 -0
- package/lib/typescript/types/PaymentSheet.d.ts.map +1 -0
- package/lib/typescript/types/Requests.d.ts +20 -0
- package/lib/typescript/types/Requests.d.ts.map +1 -0
- package/lib/typescript/types/SaveCardSheet.d.ts +22 -0
- package/lib/typescript/types/SaveCardSheet.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +13 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/package.json +164 -0
- package/src/assets/fonts/AktivGrotesk/AktivGrotesk-Bold.ttf +0 -0
- package/src/assets/fonts/SFProText/SFProText-Bold.ttf +0 -0
- package/src/assets/fonts/SFProText/SFProText-Regular.ttf +0 -0
- package/src/assets/icons/americanExpress/americanExpress@2x.png +0 -0
- package/src/assets/icons/americanExpress/americanExpress@3x.png +0 -0
- package/src/assets/icons/applePay/applePay@2x.png +0 -0
- package/src/assets/icons/applePay/applePay@3x.png +0 -0
- package/src/assets/icons/back/back@2x.png +0 -0
- package/src/assets/icons/back/back@3x.png +0 -0
- package/src/assets/icons/cardPlaceholder/cardPlaceholder@2x.png +0 -0
- package/src/assets/icons/cardPlaceholder/cardPlaceholder@3x.png +0 -0
- package/src/assets/icons/checkbox/checkbox@2x.png +0 -0
- package/src/assets/icons/checkbox/checkbox@3x.png +0 -0
- package/src/assets/icons/cross/cross@2x.png +0 -0
- package/src/assets/icons/cross/cross@3x.png +0 -0
- package/src/assets/icons/googlePay/googlePay@2x.png +0 -0
- package/src/assets/icons/googlePay/googlePay@3x.png +0 -0
- package/src/assets/icons/lock/lock@2x.png +0 -0
- package/src/assets/icons/lock/lock@3x.png +0 -0
- package/src/assets/icons/mastercard/mastercard@2x.png +0 -0
- package/src/assets/icons/mastercard/mastercard@3x.png +0 -0
- package/src/assets/icons/more/more@2x.png +0 -0
- package/src/assets/icons/more/more@3x.png +0 -0
- package/src/assets/icons/rightArrow/rightArrow@2x.png +0 -0
- package/src/assets/icons/rightArrow/rightArrow@3x.png +0 -0
- package/src/assets/icons/visa/visa@2x.png +0 -0
- package/src/assets/icons/visa/visa@3x.png +0 -0
- package/src/assets/icons/whiteCheckmark/whiteCheckmark@2x.png +0 -0
- package/src/assets/icons/whiteCheckmark/whiteCheckmark@3x.png +0 -0
- package/src/components/3DSecureSheet/index.tsx +57 -0
- package/src/components/AnimatedContainer/index.tsx +105 -0
- package/src/components/AnimatedContainer/styles.tsx +32 -0
- package/src/components/ApplePayButton/index.tsx +26 -0
- package/src/components/ApplePayButton/styles.tsx +24 -0
- package/src/components/Button/index.tsx +22 -0
- package/src/components/Button/styles.tsx +52 -0
- package/src/components/CardInformation/index.tsx +129 -0
- package/src/components/CardInformation/styles.tsx +35 -0
- package/src/components/CardSheet/index.tsx +165 -0
- package/src/components/CardSheet/styles.tsx +46 -0
- package/src/components/CardSheet/useCardSheet/index.ts +104 -0
- package/src/components/Checkbox/index.tsx +26 -0
- package/src/components/Checkbox/styles.tsx +24 -0
- package/src/components/GooglePayButton/index.tsx +26 -0
- package/src/components/GooglePayButton/styles.tsx +29 -0
- package/src/components/Header/index.tsx +37 -0
- package/src/components/Header/styles.tsx +34 -0
- package/src/components/ImageButton/index.tsx +22 -0
- package/src/components/ImageButton/styles.tsx +10 -0
- package/src/components/InputFields/BaseInputField/index.tsx +62 -0
- package/src/components/InputFields/BaseInputField/styles.tsx +37 -0
- package/src/components/InputFields/CVCInputField/index.tsx +27 -0
- package/src/components/InputFields/CVCInputField/styles.tsx +22 -0
- package/src/components/InputFields/CardInputField/index.tsx +56 -0
- package/src/components/InputFields/CardInputField/styles.tsx +25 -0
- package/src/components/InputFields/ExpirationDateInputField/index.tsx +24 -0
- package/src/components/LoadingSpinner/index.tsx +51 -0
- package/src/components/LoadingSpinner/styles.tsx +28 -0
- package/src/components/Modal/index.tsx +31 -0
- package/src/components/Modal/styles.tsx +28 -0
- package/src/components/NativePayButton/index.tsx +16 -0
- package/src/components/NoInternetConnection/index.tsx +24 -0
- package/src/components/NoInternetConnection/styles.tsx +14 -0
- package/src/components/OptionMenuModal/index.tsx +97 -0
- package/src/components/OptionMenuModal/styles.tsx +43 -0
- package/src/components/PayButton/index.tsx +55 -0
- package/src/components/PayButton/styles.tsx +24 -0
- package/src/components/PaymentMethod/index.tsx +43 -0
- package/src/components/PaymentMethod/styles.tsx +16 -0
- package/src/components/PaymentMethodFormHeaderOption/index.tsx +34 -0
- package/src/components/PaymentMethodFormHeaderOption/styles.tsx +35 -0
- package/src/components/PaymentMethodsForm/index.tsx +24 -0
- package/src/components/PaymentMethodsForm/styles.tsx +23 -0
- package/src/components/PaymentSheet/index.tsx +86 -0
- package/src/components/PrivacyPolicySheet/consts.ts +42 -0
- package/src/components/PrivacyPolicySheet/index.tsx +56 -0
- package/src/components/ProcessButton/index.tsx +75 -0
- package/src/components/ProcessButton/styles.tsx +36 -0
- package/src/components/SaveCard/index.tsx +88 -0
- package/src/components/SaveCard/styles.tsx +18 -0
- package/src/components/SaveCard/useSaveCard/index.ts +71 -0
- package/src/components/SaveCardButton/index.tsx +32 -0
- package/src/components/SaveCardButton/styles.tsx +24 -0
- package/src/components/SaveCardSheet/index.tsx +24 -0
- package/src/components/SavedCard/index.tsx +50 -0
- package/src/components/SavedCard/styles.tsx +31 -0
- package/src/components/SavedCardsSheet/index.tsx +108 -0
- package/src/components/SavedCardsSheet/styles.tsx +17 -0
- package/src/components/SumUpProvider.tsx +68 -0
- package/src/components/Switch/index.tsx +40 -0
- package/src/components/Switch/styles.tsx +48 -0
- package/src/components/Text/index.tsx +98 -0
- package/src/components/Text/styles.tsx +13 -0
- package/src/components/WebViewSheet/index.tsx +52 -0
- package/src/components/WebViewSheet/styles.tsx +45 -0
- package/src/consts/UI.ts +3 -0
- package/src/consts/errors.ts +7 -0
- package/src/consts/nativePayMethod.ts +14 -0
- package/src/consts/validation.ts +14 -0
- package/src/contexts/LanguageContext/index.tsx +47 -0
- package/src/contexts/OptionMenuContext/index.tsx +46 -0
- package/src/contexts/PaymentSheetContext/index.tsx +41 -0
- package/src/contexts/StoreContext.tsx +46 -0
- package/src/contexts/ThemeContext.tsx +9 -0
- package/src/helpers/formatAmount/index.ts +22 -0
- package/src/helpers/getUserAgent/index.ts +5 -0
- package/src/helpers/validation/paymentFields.ts +73 -0
- package/src/hooks/base/index.ts +6 -0
- package/src/hooks/base/useCard/index.ts +69 -0
- package/src/hooks/base/useCvcCode/index.ts +51 -0
- package/src/hooks/base/useExpirationDate/index.ts +71 -0
- package/src/hooks/base/useName/index.ts +51 -0
- package/src/hooks/useSafeArea.ts +12 -0
- package/src/hooks/useSumUp.ts +100 -0
- package/src/index.tsx +16 -0
- package/src/publicApi/errors.ts +155 -0
- package/src/services/API/ApiManager/index.ts +182 -0
- package/src/services/API/CheckoutApiManager/index.ts +148 -0
- package/src/services/API/CheckoutApiManager/models.ts +140 -0
- package/src/services/API/PullingService/index.ts +29 -0
- package/src/services/ApplePayService/index.ts +54 -0
- package/src/services/GooglePayService/index.ts +67 -0
- package/src/services/Logger/index.ts +28 -0
- package/src/services/NativePaymentsBridge/index.ts +44 -0
- package/src/stores/BaseSheetStore/index.ts +181 -0
- package/src/stores/NativePaymentStore/index.ts +137 -0
- package/src/stores/PaymentInstrumentsStore/index.ts +166 -0
- package/src/stores/PaymentStore/index.ts +188 -0
- package/src/stores/RootStore.ts +29 -0
- package/src/stores/SaveCardStore/index.ts +159 -0
- package/src/stores/ThreeDSecureStore/index.ts +75 -0
- package/src/styles/colors.ts +22 -0
- package/src/styles/fonts.ts +5 -0
- package/src/styles/images.ts +15 -0
- package/src/styles/index.ts +5 -0
- package/src/translations/bg-BG.json +55 -0
- package/src/translations/ca-ES.json +55 -0
- package/src/translations/cs-CZ.json +55 -0
- package/src/translations/da-DK.json +55 -0
- package/src/translations/de-AT.json +55 -0
- package/src/translations/de-CH.json +55 -0
- package/src/translations/de-DE.json +55 -0
- package/src/translations/de-LU.json +55 -0
- package/src/translations/el-CY.json +55 -0
- package/src/translations/el-GR.json +55 -0
- package/src/translations/en-AU.json +55 -0
- package/src/translations/en-GB.json +55 -0
- package/src/translations/en-IE.json +55 -0
- package/src/translations/en-MT.json +55 -0
- package/src/translations/en-US.json +55 -0
- package/src/translations/en.json +55 -0
- package/src/translations/es-CL.json +55 -0
- package/src/translations/es-CO.json +55 -0
- package/src/translations/es-ES.json +55 -0
- package/src/translations/es-LA.json +55 -0
- package/src/translations/es-PE.json +55 -0
- package/src/translations/et-EE.json +55 -0
- package/src/translations/fi-FI.json +55 -0
- package/src/translations/fr-BE.json +55 -0
- package/src/translations/fr-CH.json +55 -0
- package/src/translations/fr-FR.json +55 -0
- package/src/translations/fr-LU.json +55 -0
- package/src/translations/hr-HR.json +55 -0
- package/src/translations/hu-HU.json +55 -0
- package/src/translations/index.ts +87 -0
- package/src/translations/it-CH.json +55 -0
- package/src/translations/it-IT.json +55 -0
- package/src/translations/lt-LT.json +55 -0
- package/src/translations/lv-LV.json +55 -0
- package/src/translations/nb-NO.json +55 -0
- package/src/translations/nl-BE.json +55 -0
- package/src/translations/nl-NL.json +55 -0
- package/src/translations/pl-PL.json +55 -0
- package/src/translations/pt-BR.json +55 -0
- package/src/translations/pt-PT.json +55 -0
- package/src/translations/ro-RO.json +55 -0
- package/src/translations/sk-SK.json +55 -0
- package/src/translations/sl-SI.json +55 -0
- package/src/translations/sv-SE.json +55 -0
- package/src/types/ApplePay.ts +33 -0
- package/src/types/CommonSheet.ts +60 -0
- package/src/types/GooglePay.ts +44 -0
- package/src/types/PaymentSheet.ts +102 -0
- package/src/types/Requests.ts +20 -0
- package/src/types/SaveCardSheet.ts +24 -0
- package/src/types/index.ts +14 -0
- package/src/types/react-native-safe-area-context.d.ts +16 -0
- package/sumup-react-native.podspec +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_styles","obj","__esModule","default","Button","props","styles","useStyles","type","createElement","TouchableOpacity","style","container","onPress","Text","text","title","exports"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAAqC,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAW9B,MAAMG,MAAM,GAAIC,KAAkB,IAAK;EAC5C,MAAMC,MAAM,GAAG,IAAAC,iBAAS,EAACF,KAAK,CAACG,IAAI,CAAC;EAEpC,oBACEZ,MAAA,CAAAO,OAAA,CAAAM,aAAA,CAACV,YAAA,CAAAW,gBAAgB;IAACC,KAAK,EAAEL,MAAM,CAACM,SAAU;IAACC,OAAO,EAAER,KAAK,CAACQ;EAAQ,gBAChEjB,MAAA,CAAAO,OAAA,CAAAM,aAAA,CAACV,YAAA,CAAAe,IAAI;IAACH,KAAK,EAAEL,MAAM,CAACS;EAAK,GAAEV,KAAK,CAACW,KAAY,CAC7B,CAAC;AAEvB,CAAC;AAACC,OAAA,CAAAb,MAAA,GAAAA,MAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _ThemeContext = require("../../contexts/ThemeContext");
|
|
9
|
+
const useStyles = type => {
|
|
10
|
+
const {
|
|
11
|
+
colors,
|
|
12
|
+
fonts
|
|
13
|
+
} = (0, _ThemeContext.useTheme)();
|
|
14
|
+
const textColor = {
|
|
15
|
+
primary: colors.white,
|
|
16
|
+
secondary: colors.codGray,
|
|
17
|
+
tertiary: colors.alizarinCrimson
|
|
18
|
+
};
|
|
19
|
+
const backgroundColor = {
|
|
20
|
+
primary: colors.royalBlue,
|
|
21
|
+
secondary: colors.transparent,
|
|
22
|
+
tertiary: colors.transparent
|
|
23
|
+
};
|
|
24
|
+
const borderColor = {
|
|
25
|
+
primary: colors.transparent,
|
|
26
|
+
secondary: colors.silver,
|
|
27
|
+
tertiary: colors.transparent
|
|
28
|
+
};
|
|
29
|
+
const borderWidth = {
|
|
30
|
+
primary: 0,
|
|
31
|
+
secondary: 1,
|
|
32
|
+
tertiary: 0
|
|
33
|
+
};
|
|
34
|
+
const styles = _reactNative.StyleSheet.create({
|
|
35
|
+
container: {
|
|
36
|
+
height: 48,
|
|
37
|
+
borderRadius: 100,
|
|
38
|
+
width: '100%',
|
|
39
|
+
justifyContent: 'center',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
backgroundColor: backgroundColor[type],
|
|
42
|
+
borderWidth: borderWidth[type],
|
|
43
|
+
borderColor: borderColor[type]
|
|
44
|
+
},
|
|
45
|
+
text: {
|
|
46
|
+
fontSize: 16,
|
|
47
|
+
lineHeight: 24,
|
|
48
|
+
color: textColor[type],
|
|
49
|
+
fontFamily: fonts.sfProTextBold
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return styles;
|
|
53
|
+
};
|
|
54
|
+
exports.useStyles = useStyles;
|
|
55
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeContext","useStyles","type","colors","fonts","useTheme","textColor","primary","white","secondary","codGray","tertiary","alizarinCrimson","backgroundColor","royalBlue","transparent","borderColor","silver","borderWidth","styles","StyleSheet","create","container","height","borderRadius","width","justifyContent","alignItems","text","fontSize","lineHeight","color","fontFamily","sfProTextBold","exports"],"sourceRoot":"../../../../src","sources":["components/Button/styles.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAGO,MAAME,SAAS,GAAIC,IAAgB,IAAK;EAC7C,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EAEpC,MAAMC,SAAS,GAAG;IAChBC,OAAO,EAAEJ,MAAM,CAACK,KAAK;IACrBC,SAAS,EAAEN,MAAM,CAACO,OAAO;IACzBC,QAAQ,EAAER,MAAM,CAACS;EACnB,CAAC;EAED,MAAMC,eAAe,GAAG;IACtBN,OAAO,EAAEJ,MAAM,CAACW,SAAS;IACzBL,SAAS,EAAEN,MAAM,CAACY,WAAW;IAC7BJ,QAAQ,EAAER,MAAM,CAACY;EACnB,CAAC;EAED,MAAMC,WAAW,GAAG;IAClBT,OAAO,EAAEJ,MAAM,CAACY,WAAW;IAC3BN,SAAS,EAAEN,MAAM,CAACc,MAAM;IACxBN,QAAQ,EAAER,MAAM,CAACY;EACnB,CAAC;EAED,MAAMG,WAAW,GAAG;IAClBX,OAAO,EAAE,CAAC;IACVE,SAAS,EAAE,CAAC;IACZE,QAAQ,EAAE;EACZ,CAAC;EAED,MAAMQ,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC/BC,SAAS,EAAE;MACTC,MAAM,EAAE,EAAE;MACVC,YAAY,EAAE,GAAG;MACjBC,KAAK,EAAE,MAAM;MACbC,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE,QAAQ;MACpBd,eAAe,EAAEA,eAAe,CAACX,IAAI,CAAC;MACtCgB,WAAW,EAAEA,WAAW,CAAChB,IAAI,CAAC;MAC9Bc,WAAW,EAAEA,WAAW,CAACd,IAAI;IAC/B,CAAC;IACD0B,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE,EAAE;MACdC,KAAK,EAAEzB,SAAS,CAACJ,IAAI,CAAC;MACtB8B,UAAU,EAAE5B,KAAK,CAAC6B;IACpB;EACF,CAAC,CAAC;EAEF,OAAOd,MAAM;AACf,CAAC;AAACe,OAAA,CAAAjC,SAAA,GAAAA,SAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CardInformation = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _LanguageContext = require("../../contexts/LanguageContext");
|
|
10
|
+
var _CardInputField = require("../InputFields/CardInputField");
|
|
11
|
+
var _CVCInputField = require("../InputFields/CVCInputField");
|
|
12
|
+
var _ExpirationDateInputField = require("../InputFields/ExpirationDateInputField");
|
|
13
|
+
var _styles = require("./styles");
|
|
14
|
+
var _BaseInputField = require("../InputFields/BaseInputField");
|
|
15
|
+
var _reactNativeSpacingSystem = require("react-native-spacing-system");
|
|
16
|
+
var _Switch = require("../Switch");
|
|
17
|
+
var _StoreContext = require("../../contexts/StoreContext");
|
|
18
|
+
var _Text = require("../Text");
|
|
19
|
+
var _PrivacyPolicySheet = require("../PrivacyPolicySheet");
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
|
+
const CardInformation = props => {
|
|
23
|
+
const {
|
|
24
|
+
strings
|
|
25
|
+
} = (0, _LanguageContext.useStrings)();
|
|
26
|
+
const styles = (0, _styles.useStyles)();
|
|
27
|
+
const {
|
|
28
|
+
canCardBeSavedForFuturePayments
|
|
29
|
+
} = (0, _StoreContext.usePaymentInstrumentsStore)();
|
|
30
|
+
const privacyPolicySheetRef = (0, _react.useRef)(null);
|
|
31
|
+
const onPrivacyPolicyLinkPress = () => {
|
|
32
|
+
var _privacyPolicySheetRe;
|
|
33
|
+
(_privacyPolicySheetRe = privacyPolicySheetRef.current) === null || _privacyPolicySheetRe === void 0 ? void 0 : _privacyPolicySheetRe.show();
|
|
34
|
+
};
|
|
35
|
+
const SaveCardCheckbox = canCardBeSavedForFuturePayments && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
36
|
+
size: 16
|
|
37
|
+
}), /*#__PURE__*/_react.default.createElement(_Switch.Switch, {
|
|
38
|
+
text: props.saveCardTitle,
|
|
39
|
+
isChecked: props.saveCard,
|
|
40
|
+
onChangeValue: props.onSaveCardValueChange
|
|
41
|
+
}));
|
|
42
|
+
const PrivacyPolicy = (props.showPrivacyPolicyAllTime || props.saveCard) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
43
|
+
size: 8
|
|
44
|
+
}), /*#__PURE__*/_react.default.createElement(_Text.Text, {
|
|
45
|
+
style: styles.privacyPolicyText,
|
|
46
|
+
customTag: {
|
|
47
|
+
style: styles.privacyPolicyLink
|
|
48
|
+
},
|
|
49
|
+
onPress: onPrivacyPolicyLinkPress
|
|
50
|
+
}, strings.choosePaymentMethod.cardInformation.privacyPolicy));
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_BaseInputField.BaseInputField, {
|
|
52
|
+
title: strings.choosePaymentMethod.cardInformation.cardholderNameTitle,
|
|
53
|
+
inputModel: props.nameInputModel,
|
|
54
|
+
placeholder: strings.choosePaymentMethod.cardInformation.namePlaceholder
|
|
55
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
56
|
+
size: 16
|
|
57
|
+
}), /*#__PURE__*/_react.default.createElement(_CardInputField.CardInputField, {
|
|
58
|
+
title: strings.choosePaymentMethod.cardInformation.cardNumberTitle,
|
|
59
|
+
inputModel: props.cardInputModel,
|
|
60
|
+
placeholder: strings.choosePaymentMethod.cardInformation.cardNumberInputPlaceholder
|
|
61
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
62
|
+
size: 16
|
|
63
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
64
|
+
style: styles.rowContainer
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_ExpirationDateInputField.ExpirationDateInputField, {
|
|
66
|
+
title: strings.choosePaymentMethod.cardInformation.expirationDateTitle,
|
|
67
|
+
inputModel: props.expirationDateInputModel,
|
|
68
|
+
placeholder: strings.choosePaymentMethod.cardInformation.expirationDateInputPlaceholder,
|
|
69
|
+
containerStyle: styles.expirationDateInput
|
|
70
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Queue, {
|
|
71
|
+
size: 16
|
|
72
|
+
}), /*#__PURE__*/_react.default.createElement(_CVCInputField.CVCInputField, {
|
|
73
|
+
title: strings.choosePaymentMethod.cardInformation.securityCodeTitle,
|
|
74
|
+
inputModel: props.cvcCodeInputModel,
|
|
75
|
+
placeholder: strings.choosePaymentMethod.cardInformation.cvcInputPlaceholder,
|
|
76
|
+
containerStyle: styles.cvcInput
|
|
77
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
78
|
+
size: 8
|
|
79
|
+
}), SaveCardCheckbox, PrivacyPolicy, /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
80
|
+
size: 16
|
|
81
|
+
}), props.countryCode && /*#__PURE__*/_react.default.createElement(_PrivacyPolicySheet.PrivacyPolicySheet, {
|
|
82
|
+
ref: privacyPolicySheetRef,
|
|
83
|
+
countryCode: props.countryCode
|
|
84
|
+
}));
|
|
85
|
+
};
|
|
86
|
+
exports.CardInformation = CardInformation;
|
|
87
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_LanguageContext","_CardInputField","_CVCInputField","_ExpirationDateInputField","_styles","_BaseInputField","_reactNativeSpacingSystem","_Switch","_StoreContext","_Text","_PrivacyPolicySheet","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","CardInformation","props","strings","useStrings","styles","useStyles","canCardBeSavedForFuturePayments","usePaymentInstrumentsStore","privacyPolicySheetRef","useRef","onPrivacyPolicyLinkPress","_privacyPolicySheetRe","current","show","SaveCardCheckbox","createElement","Fragment","Stack","size","Switch","text","saveCardTitle","isChecked","saveCard","onChangeValue","onSaveCardValueChange","PrivacyPolicy","showPrivacyPolicyAllTime","Text","style","privacyPolicyText","customTag","privacyPolicyLink","onPress","choosePaymentMethod","cardInformation","privacyPolicy","View","BaseInputField","title","cardholderNameTitle","inputModel","nameInputModel","placeholder","namePlaceholder","CardInputField","cardNumberTitle","cardInputModel","cardNumberInputPlaceholder","rowContainer","ExpirationDateInputField","expirationDateTitle","expirationDateInputModel","expirationDateInputPlaceholder","containerStyle","expirationDateInput","Queue","CVCInputField","securityCodeTitle","cvcCodeInputModel","cvcInputPlaceholder","cvcInput","countryCode","PrivacyPolicySheet","ref","exports"],"sourceRoot":"../../../../src","sources":["components/CardInformation/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,yBAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAMA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,yBAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,KAAA,GAAAX,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AAG+B,SAAAa,yBAAAC,WAAA,eAAAC,OAA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ACDC,cAAc,EAAElD,MAAM,CAACmD;EAAoB,CAC5C,CAAC,eACF5F,MAAA,CAAAsB,OAAA,CAAA8B,aAAA,CAAC1C,yBAAA,CAAAmF,KAAK;IAACtC,IAAI,EAAE;EAAG,CAAE,CAAC,eACnBvD,MAAA,CAAAsB,OAAA,CAAA8B,aAAA,CAAC9C,cAAA,CAAAwF,aAAa;IACZlB,KAAK,EAAErC,OAAO,CAACgC,mBAAmB,CAACC,eAAe,CAACuB,iBAAkB;IACrEjB,UAAU,EAAExC,KAAK,CAAC0D,iBAAkB;IACpChB,WAAW,EACTzC,OAAO,CAACgC,mBAAmB,CAACC,eAAe,CAACyB,mBAC7C;IACDN,cAAc,EAAElD,MAAM,CAACyD;EAAS,CACjC,CACG,CAAC,eACPlG,MAAA,CAAAsB,OAAA,CAAA8B,aAAA,CAAC1C,yBAAA,CAAA4C,KAAK;IAACC,IAAI,EAAE;EAAE,CAAE,CAAC,EACjBJ,gBAAgB,EAChBY,aAAa,eACd/D,MAAA,CAAAsB,OAAA,CAAA8B,aAAA,CAAC1C,yBAAA,CAAA4C,KAAK;IAACC,IAAI,EAAE;EAAG,CAAE,CAAC,EAClBjB,KAAK,CAAC6D,WAAW,iBAChBnG,MAAA,CAAAsB,OAAA,CAAA8B,aAAA,CAACtC,mBAAA,CAAAsF,kBAAkB;IACjBC,GAAG,EAAExD,qBAAsB;IAC3BsD,WAAW,EAAE7D,KAAK,CAAC6D;EAAY,CAChC,CAEC,CAAC;AAEX,CAAC;AAACG,OAAA,CAAAjE,eAAA,GAAAA,eAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _ThemeContext = require("../../contexts/ThemeContext");
|
|
9
|
+
const useStyles = () => {
|
|
10
|
+
const {
|
|
11
|
+
colors
|
|
12
|
+
} = (0, _ThemeContext.useTheme)();
|
|
13
|
+
const styles = _reactNative.StyleSheet.create({
|
|
14
|
+
rowContainer: {
|
|
15
|
+
flexDirection: 'row',
|
|
16
|
+
marginTop: -1
|
|
17
|
+
},
|
|
18
|
+
expirationDateInput: {
|
|
19
|
+
flex: 1
|
|
20
|
+
},
|
|
21
|
+
cvcInput: {
|
|
22
|
+
flex: 1,
|
|
23
|
+
marginLeft: -1,
|
|
24
|
+
justifyContent: 'flex-start'
|
|
25
|
+
},
|
|
26
|
+
title: {
|
|
27
|
+
fontWeight: '600',
|
|
28
|
+
fontSize: 14,
|
|
29
|
+
color: colors.paleSky,
|
|
30
|
+
marginBottom: 8
|
|
31
|
+
},
|
|
32
|
+
privacyPolicyText: {
|
|
33
|
+
color: colors.doveGray
|
|
34
|
+
},
|
|
35
|
+
privacyPolicyLink: {
|
|
36
|
+
color: colors.royalBlue
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return styles;
|
|
40
|
+
};
|
|
41
|
+
exports.useStyles = useStyles;
|
|
42
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeContext","useStyles","colors","useTheme","styles","StyleSheet","create","rowContainer","flexDirection","marginTop","expirationDateInput","flex","cvcInput","marginLeft","justifyContent","title","fontWeight","fontSize","color","paleSky","marginBottom","privacyPolicyText","doveGray","privacyPolicyLink","royalBlue","exports"],"sourceRoot":"../../../../src","sources":["components/CardInformation/styles.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEO,MAAME,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EAE7B,MAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC/BC,YAAY,EAAE;MACZC,aAAa,EAAE,KAAK;MACpBC,SAAS,EAAE,CAAC;IACd,CAAC;IACDC,mBAAmB,EAAE;MACnBC,IAAI,EAAE;IACR,CAAC;IACDC,QAAQ,EAAE;MACRD,IAAI,EAAE,CAAC;MACPE,UAAU,EAAE,CAAC,CAAC;MACdC,cAAc,EAAE;IAClB,CAAC;IACDC,KAAK,EAAE;MACLC,UAAU,EAAE,KAAK;MACjBC,QAAQ,EAAE,EAAE;MACZC,KAAK,EAAEhB,MAAM,CAACiB,OAAO;MACrBC,YAAY,EAAE;IAChB,CAAC;IACDC,iBAAiB,EAAE;MACjBH,KAAK,EAAEhB,MAAM,CAACoB;IAChB,CAAC;IACDC,iBAAiB,EAAE;MACjBL,KAAK,EAAEhB,MAAM,CAACsB;IAChB;EACF,CAAC,CAAC;EAEF,OAAOpB,MAAM;AACf,CAAC;AAACqB,OAAA,CAAAxB,SAAA,GAAAA,SAAA"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CardSheet = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _NativePayButton = require("../NativePayButton");
|
|
10
|
+
var _reactNativeSpacingSystem = require("react-native-spacing-system");
|
|
11
|
+
var _LanguageContext = require("../../contexts/LanguageContext");
|
|
12
|
+
var _NoInternetConnection = require("../NoInternetConnection");
|
|
13
|
+
var _PayButton = require("../PayButton");
|
|
14
|
+
var _useCardSheet = require("./useCardSheet");
|
|
15
|
+
var _styles = require("./styles");
|
|
16
|
+
var _mobxReactLite = require("mobx-react-lite");
|
|
17
|
+
var _Header = require("../Header");
|
|
18
|
+
var _PaymentMethodsForm = require("../PaymentMethodsForm");
|
|
19
|
+
var _CardInformation = require("../CardInformation");
|
|
20
|
+
var _PaymentMethodFormHeaderOption = require("../PaymentMethodFormHeaderOption");
|
|
21
|
+
var _ThemeContext = require("../../contexts/ThemeContext");
|
|
22
|
+
var _SavedCard = require("../SavedCard");
|
|
23
|
+
var _ImageButton = require("../ImageButton");
|
|
24
|
+
var _StoreContext = require("../../contexts/StoreContext");
|
|
25
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
const CardSheet = (0, _mobxReactLite.observer)(props => {
|
|
28
|
+
const {
|
|
29
|
+
strings
|
|
30
|
+
} = (0, _LanguageContext.useStrings)();
|
|
31
|
+
const styles = (0, _styles.useStyles)();
|
|
32
|
+
const {
|
|
33
|
+
images
|
|
34
|
+
} = (0, _ThemeContext.useTheme)();
|
|
35
|
+
const scrollView = (0, _react.useRef)(null);
|
|
36
|
+
const {
|
|
37
|
+
countryCode,
|
|
38
|
+
paymentMethod,
|
|
39
|
+
selectedPaymentInstrument,
|
|
40
|
+
nameInputModel,
|
|
41
|
+
cardInputModel,
|
|
42
|
+
cvcCodeInputModel,
|
|
43
|
+
expirationDateInputModel,
|
|
44
|
+
saveCard,
|
|
45
|
+
processPayment,
|
|
46
|
+
setSaveCard,
|
|
47
|
+
selectPaymentMethod
|
|
48
|
+
} = (0, _useCardSheet.useCardSheet)();
|
|
49
|
+
const {
|
|
50
|
+
canPayWithNativeView
|
|
51
|
+
} = (0, _StoreContext.useNativePaymentStore)();
|
|
52
|
+
const {
|
|
53
|
+
paymentStatus
|
|
54
|
+
} = (0, _StoreContext.usePaymentStore)();
|
|
55
|
+
const cardInformationProps = {
|
|
56
|
+
countryCode,
|
|
57
|
+
saveCardTitle: strings.choosePaymentMethod.cardInformation.saveCard,
|
|
58
|
+
saveCard,
|
|
59
|
+
nameInputModel,
|
|
60
|
+
cardInputModel,
|
|
61
|
+
cvcCodeInputModel,
|
|
62
|
+
expirationDateInputModel,
|
|
63
|
+
onSaveCardValueChange: setSaveCard
|
|
64
|
+
};
|
|
65
|
+
const payButtonProps = {
|
|
66
|
+
canStartPayment: true,
|
|
67
|
+
onPress: processPayment
|
|
68
|
+
};
|
|
69
|
+
const onKeyboardDidShow = () => {
|
|
70
|
+
var _scrollView$current;
|
|
71
|
+
(_scrollView$current = scrollView.current) === null || _scrollView$current === void 0 ? void 0 : _scrollView$current.scrollToEnd();
|
|
72
|
+
};
|
|
73
|
+
(0, _react.useEffect)(() => {
|
|
74
|
+
const listener = _reactNative.Keyboard.addListener('keyboardWillShow', onKeyboardDidShow);
|
|
75
|
+
return () => {
|
|
76
|
+
listener.remove();
|
|
77
|
+
};
|
|
78
|
+
}, []);
|
|
79
|
+
const SavedCards = selectedPaymentInstrument && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_PaymentMethodFormHeaderOption.PaymentMethodFormHeaderOption, {
|
|
80
|
+
selected: paymentMethod === 'saved-card',
|
|
81
|
+
onSelect: () => selectPaymentMethod('saved-card'),
|
|
82
|
+
title: strings.choosePaymentMethod.paymentMethods.saveCardOption,
|
|
83
|
+
rightChildren: /*#__PURE__*/_react.default.createElement(_ImageButton.ImageButton, {
|
|
84
|
+
source: images.rightArrow,
|
|
85
|
+
onPress: props.onCardPress
|
|
86
|
+
})
|
|
87
|
+
}), paymentMethod === 'saved-card' && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
88
|
+
style: styles.savedCardContainer
|
|
89
|
+
}, /*#__PURE__*/_react.default.createElement(_SavedCard.SavedCard, {
|
|
90
|
+
paymentInstrument: selectedPaymentInstrument
|
|
91
|
+
})));
|
|
92
|
+
const CardPayment = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_PaymentMethodFormHeaderOption.PaymentMethodFormHeaderOption, {
|
|
93
|
+
selected: paymentMethod === 'new-card',
|
|
94
|
+
onSelect: () => selectPaymentMethod('new-card'),
|
|
95
|
+
title: strings.choosePaymentMethod.paymentMethods.cardOption,
|
|
96
|
+
rightChildren: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
97
|
+
style: styles.image,
|
|
98
|
+
source: images.visa
|
|
99
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Queue, {
|
|
100
|
+
size: 8
|
|
101
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
102
|
+
style: styles.image,
|
|
103
|
+
source: images.mastercard
|
|
104
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Queue, {
|
|
105
|
+
size: 8
|
|
106
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
107
|
+
style: styles.image,
|
|
108
|
+
source: images.americanExpress
|
|
109
|
+
}))
|
|
110
|
+
}), paymentMethod === 'new-card' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
111
|
+
size: 16
|
|
112
|
+
}), /*#__PURE__*/_react.default.createElement(_CardInformation.CardInformation, cardInformationProps)));
|
|
113
|
+
const PaymentMethods = /*#__PURE__*/_react.default.createElement(_PaymentMethodsForm.PaymentMethodsForm, {
|
|
114
|
+
methods: [SavedCards, CardPayment].filter(item => !!item)
|
|
115
|
+
});
|
|
116
|
+
const NativePayView = canPayWithNativeView && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_NativePayButton.NativePayButton, {
|
|
117
|
+
disabled: paymentStatus === 'processing' || paymentStatus === 'success'
|
|
118
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
119
|
+
size: 20
|
|
120
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
121
|
+
style: styles.separatorText
|
|
122
|
+
}, strings.choosePaymentMethod.separatorText), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
123
|
+
size: 20
|
|
124
|
+
}));
|
|
125
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
126
|
+
style: styles.container
|
|
127
|
+
}, /*#__PURE__*/_react.default.createElement(_Header.Header, {
|
|
128
|
+
title: strings.choosePaymentMethod.title,
|
|
129
|
+
onCloseButtonPress: props.onClose
|
|
130
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
131
|
+
ref: scrollView,
|
|
132
|
+
showsVerticalScrollIndicator: false
|
|
133
|
+
}, NativePayView, PaymentMethods), /*#__PURE__*/_react.default.createElement(_reactNativeSpacingSystem.Stack, {
|
|
134
|
+
size: 32
|
|
135
|
+
}), /*#__PURE__*/_react.default.createElement(_NoInternetConnection.NoInternetConnection, null), /*#__PURE__*/_react.default.createElement(_PayButton.PayButton, payButtonProps));
|
|
136
|
+
});
|
|
137
|
+
exports.CardSheet = CardSheet;
|
|
138
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_NativePayButton","_reactNativeSpacingSystem","_LanguageContext","_NoInternetConnection","_PayButton","_useCardSheet","_styles","_mobxReactLite","_Header","_PaymentMethodsForm","_CardInformation","_PaymentMethodFormHeaderOption","_ThemeContext","_SavedCard","_ImageButton","_StoreContext","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","CardSheet","observer","props","strings","useStrings","styles","useStyles","images","useTheme","scrollView","useRef","countryCode","paymentMethod","selectedPaymentInstrument","nameInputModel","cardInputModel","cvcCodeInputModel","expirationDateInputModel","saveCard","processPayment","setSaveCard","selectPaymentMethod","useCardSheet","canPayWithNativeView","useNativePaymentStore","paymentStatus","usePaymentStore","cardInformationProps","saveCardTitle","choosePaymentMethod","cardInformation","onSaveCardValueChange","payButtonProps","canStartPayment","onPress","onKeyboardDidShow","_scrollView$current","current","scrollToEnd","useEffect","listener","Keyboard","addListener","remove","SavedCards","createElement","Fragment","PaymentMethodFormHeaderOption","selected","onSelect","title","paymentMethods","saveCardOption","rightChildren","ImageButton","source","rightArrow","onCardPress","View","style","savedCardContainer","SavedCard","paymentInstrument","CardPayment","cardOption","Image","image","visa","Queue","size","mastercard","americanExpress","Stack","CardInformation","PaymentMethods","PaymentMethodsForm","methods","filter","item","NativePayView","NativePayButton","disabled","Text","separatorText","container","Header","onCloseButtonPress","onClose","ScrollView","ref","showsVerticalScrollIndicator","NoInternetConnection","PayButton","exports"],"sourceRoot":"../../../../src","sources":["components/CardSheet/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,yBAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,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;IACLnC,KAAK,EAAE/C,OAAO,CAAC0B,mBAAmB,CAACqB,KAAM;IACzCoC,kBAAkB,EAAEpF,KAAK,CAACqF;EAAQ,CACnC,CAAC,eACFjI,MAAA,CAAA2B,OAAA,CAAA4D,aAAA,CAACpF,YAAA,CAAA+H,UAAU;IAACC,GAAG,EAAEhF,UAAW;IAACiF,4BAA4B,EAAE;EAAM,GAC9DX,aAAa,EACbL,cACS,CAAC,eACbpH,MAAA,CAAA2B,OAAA,CAAA4D,aAAA,CAAClF,yBAAA,CAAA6G,KAAK;IAACH,IAAI,EAAE;EAAG,CAAE,CAAC,eACnB/G,MAAA,CAAA2B,OAAA,CAAA4D,aAAA,CAAChF,qBAAA,CAAA8H,oBAAoB,MAAE,CAAC,eACxBrI,MAAA,CAAA2B,OAAA,CAAA4D,aAAA,CAAC/E,UAAA,CAAA8H,SAAS,EAAK5D,cAAiB,CAC5B,CAAC;AAEX,CAAC,CAAC;AAAC6D,OAAA,CAAA7F,SAAA,GAAAA,SAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _ThemeContext = require("../../contexts/ThemeContext");
|
|
9
|
+
var _useSafeArea = require("../../hooks/useSafeArea");
|
|
10
|
+
const useStyles = () => {
|
|
11
|
+
const {
|
|
12
|
+
colors
|
|
13
|
+
} = (0, _ThemeContext.useTheme)();
|
|
14
|
+
const {
|
|
15
|
+
height
|
|
16
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
17
|
+
const insets = (0, _useSafeArea.useSafeArea)();
|
|
18
|
+
const styles = _reactNative.StyleSheet.create({
|
|
19
|
+
container: {
|
|
20
|
+
backgroundColor: colors.white,
|
|
21
|
+
maxHeight: height - insets.top,
|
|
22
|
+
paddingBottom: insets.bottom + 16
|
|
23
|
+
},
|
|
24
|
+
title: {
|
|
25
|
+
fontWeight: 'bold',
|
|
26
|
+
fontSize: 20,
|
|
27
|
+
marginBottom: 30,
|
|
28
|
+
color: colors.black
|
|
29
|
+
},
|
|
30
|
+
separatorText: {
|
|
31
|
+
fontSize: 14,
|
|
32
|
+
lineHeight: 16,
|
|
33
|
+
color: colors.black,
|
|
34
|
+
width: '100%',
|
|
35
|
+
textAlign: 'center'
|
|
36
|
+
},
|
|
37
|
+
image: {
|
|
38
|
+
width: 32,
|
|
39
|
+
height: 24
|
|
40
|
+
},
|
|
41
|
+
savedCardContainer: {
|
|
42
|
+
marginTop: 16,
|
|
43
|
+
marginBottom: 18,
|
|
44
|
+
marginLeft: 40
|
|
45
|
+
},
|
|
46
|
+
keyboardView: {
|
|
47
|
+
// flex: 1,
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return styles;
|
|
51
|
+
};
|
|
52
|
+
exports.useStyles = useStyles;
|
|
53
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeContext","_useSafeArea","useStyles","colors","useTheme","height","useWindowDimensions","insets","useSafeArea","styles","StyleSheet","create","container","backgroundColor","white","maxHeight","top","paddingBottom","bottom","title","fontWeight","fontSize","marginBottom","color","black","separatorText","lineHeight","width","textAlign","image","savedCardContainer","marginTop","marginLeft","keyboardView","exports"],"sourceRoot":"../../../../src","sources":["components/CardSheet/styles.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEO,MAAMG,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EAE7B,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EAExC,MAAMC,MAAM,GAAG,IAAAC,wBAAW,EAAC,CAAC;EAE5B,MAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC/BC,SAAS,EAAE;MACTC,eAAe,EAAEV,MAAM,CAACW,KAAK;MAC7BC,SAAS,EAAEV,MAAM,GAAGE,MAAM,CAACS,GAAG;MAC9BC,aAAa,EAAEV,MAAM,CAACW,MAAM,GAAG;IACjC,CAAC;IACDC,KAAK,EAAE;MACLC,UAAU,EAAE,MAAM;MAClBC,QAAQ,EAAE,EAAE;MACZC,YAAY,EAAE,EAAE;MAChBC,KAAK,EAAEpB,MAAM,CAACqB;IAChB,CAAC;IACDC,aAAa,EAAE;MACbJ,QAAQ,EAAE,EAAE;MACZK,UAAU,EAAE,EAAE;MACdH,KAAK,EAAEpB,MAAM,CAACqB,KAAK;MACnBG,KAAK,EAAE,MAAM;MACbC,SAAS,EAAE;IACb,CAAC;IACDC,KAAK,EAAE;MACLF,KAAK,EAAE,EAAE;MACTtB,MAAM,EAAE;IACV,CAAC;IACDyB,kBAAkB,EAAE;MAClBC,SAAS,EAAE,EAAE;MACbT,YAAY,EAAE,EAAE;MAChBU,UAAU,EAAE;IACd,CAAC;IACDC,YAAY,EAAE;MACZ;IAAA;EAEJ,CAAC,CAAC;EAEF,OAAOxB,MAAM;AACf,CAAC;AAACyB,OAAA,CAAAhC,SAAA,GAAAA,SAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useCardSheet = void 0;
|
|
7
|
+
var _base = require("../../../hooks/base");
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _StoreContext = require("../../../contexts/StoreContext");
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
const useCardSheet = () => {
|
|
12
|
+
const {
|
|
13
|
+
cardHolderName,
|
|
14
|
+
saveCardForFutureUsage,
|
|
15
|
+
countryCode,
|
|
16
|
+
pay
|
|
17
|
+
} = (0, _StoreContext.usePaymentStore)();
|
|
18
|
+
const {
|
|
19
|
+
selectedPaymentInstrument,
|
|
20
|
+
paymentInstruments,
|
|
21
|
+
payWithToken
|
|
22
|
+
} = (0, _StoreContext.usePaymentInstrumentsStore)();
|
|
23
|
+
const cardInputModel = (0, _base.useCard)();
|
|
24
|
+
const nameInputModel = (0, _base.useName)(cardHolderName);
|
|
25
|
+
const expirationDateInputModel = (0, _base.useExpirationDate)();
|
|
26
|
+
const cvcCodeInputModel = (0, _base.useCvcCode)();
|
|
27
|
+
const [saveCard, setSaveCard] = (0, _react.useState)(saveCardForFutureUsage || false);
|
|
28
|
+
const [paymentMethod, setPaymentMethod] = (0, _react.useState)('new-card');
|
|
29
|
+
(0, _react.useEffect)(() => {
|
|
30
|
+
setPaymentMethod(selectedPaymentInstrument ? 'saved-card' : 'new-card');
|
|
31
|
+
}, [selectedPaymentInstrument]);
|
|
32
|
+
const handleError = error => {
|
|
33
|
+
if (error.param.includes('number')) {
|
|
34
|
+
cardInputModel.setErrorText(error.message);
|
|
35
|
+
} else if (error.param.includes('name')) {
|
|
36
|
+
nameInputModel.setErrorText(error.message);
|
|
37
|
+
} else if (error.param.includes('cvv')) {
|
|
38
|
+
cvcCodeInputModel.setErrorText(error.message);
|
|
39
|
+
} else if (error.param.includes('expiry')) {
|
|
40
|
+
expirationDateInputModel.setErrorText(error.message);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const processPayment = async () => {
|
|
44
|
+
let error;
|
|
45
|
+
if (paymentMethod === 'saved-card' && selectedPaymentInstrument) {
|
|
46
|
+
error = await payWithToken(selectedPaymentInstrument.token);
|
|
47
|
+
} else {
|
|
48
|
+
var _expirationDateInputM, _expirationDateInputM2;
|
|
49
|
+
cardInputModel.showErrorIfNeeded();
|
|
50
|
+
nameInputModel.showErrorIfNeeded();
|
|
51
|
+
cvcCodeInputModel.showErrorIfNeeded();
|
|
52
|
+
expirationDateInputModel.showErrorIfNeeded();
|
|
53
|
+
if (!cardInputModel.isValid || !nameInputModel.isValid || !cvcCodeInputModel.isValid || !expirationDateInputModel.isValid) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const cardPayment = {
|
|
57
|
+
name: nameInputModel.value,
|
|
58
|
+
number: cardInputModel.value,
|
|
59
|
+
expiryMonth: ((_expirationDateInputM = expirationDateInputModel.month) === null || _expirationDateInputM === void 0 ? void 0 : _expirationDateInputM.toString()) || '',
|
|
60
|
+
expiryYear: ((_expirationDateInputM2 = expirationDateInputModel.year) === null || _expirationDateInputM2 === void 0 ? void 0 : _expirationDateInputM2.toString()) || '',
|
|
61
|
+
cvv: cvcCodeInputModel.value,
|
|
62
|
+
saveCard
|
|
63
|
+
};
|
|
64
|
+
error = await pay(cardPayment);
|
|
65
|
+
}
|
|
66
|
+
if (error) {
|
|
67
|
+
handleError(error);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const selectPaymentMethod = method => {
|
|
71
|
+
_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);
|
|
72
|
+
setPaymentMethod(method);
|
|
73
|
+
};
|
|
74
|
+
return {
|
|
75
|
+
countryCode,
|
|
76
|
+
paymentMethod,
|
|
77
|
+
selectedPaymentInstrument,
|
|
78
|
+
paymentInstruments,
|
|
79
|
+
saveCard,
|
|
80
|
+
cardInputModel,
|
|
81
|
+
nameInputModel,
|
|
82
|
+
expirationDateInputModel,
|
|
83
|
+
cvcCodeInputModel,
|
|
84
|
+
setSaveCard,
|
|
85
|
+
processPayment,
|
|
86
|
+
selectPaymentMethod
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
exports.useCardSheet = useCardSheet;
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_base","require","_react","_StoreContext","_reactNative","useCardSheet","cardHolderName","saveCardForFutureUsage","countryCode","pay","usePaymentStore","selectedPaymentInstrument","paymentInstruments","payWithToken","usePaymentInstrumentsStore","cardInputModel","useCard","nameInputModel","useName","expirationDateInputModel","useExpirationDate","cvcCodeInputModel","useCvcCode","saveCard","setSaveCard","useState","paymentMethod","setPaymentMethod","useEffect","handleError","error","param","includes","setErrorText","message","processPayment","token","_expirationDateInputM","_expirationDateInputM2","showErrorIfNeeded","isValid","cardPayment","name","value","number","expiryMonth","month","toString","expiryYear","year","cvv","selectPaymentMethod","method","LayoutAnimation","configureNext","Presets","easeInEaseOut","exports"],"sourceRoot":"../../../../../src","sources":["components/CardSheet/useCardSheet/index.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAIA,IAAAG,YAAA,GAAAH,OAAA;AAKO,MAAMI,YAAY,GAAGA,CAAA,KAAM;EAChC,MAAM;IAAEC,cAAc;IAAEC,sBAAsB;IAAEC,WAAW;IAAEC;EAAI,CAAC,GAChE,IAAAC,6BAAe,EAAC,CAAC;EAEnB,MAAM;IAAEC,yBAAyB;IAAEC,kBAAkB;IAAEC;EAAa,CAAC,GACnE,IAAAC,wCAA0B,EAAC,CAAC;EAE9B,MAAMC,cAAc,GAAG,IAAAC,aAAO,EAAC,CAAC;EAChC,MAAMC,cAAc,GAAG,IAAAC,aAAO,EAACZ,cAAc,CAAC;EAC9C,MAAMa,wBAAwB,GAAG,IAAAC,uBAAiB,EAAC,CAAC;EACpD,MAAMC,iBAAiB,GAAG,IAAAC,gBAAU,EAAC,CAAC;EACtC,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAC,eAAQ,EAAClB,sBAAsB,IAAI,KAAK,CAAC;EAEzE,MAAM,CAACmB,aAAa,EAAEC,gBAAgB,CAAC,GAAG,IAAAF,eAAQ,EAAgB,UAAU,CAAC;EAE7E,IAAAG,gBAAS,EAAC,MAAM;IACdD,gBAAgB,CA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wB,CAACqB,OAAO,EACjC;QACA;MACF;MAEA,MAAMC,WAAwB,GAAG;QAC/BC,IAAI,EAAEzB,cAAc,CAAC0B,KAAK;QAC1BC,MAAM,EAAE7B,cAAc,CAAC4B,KAAK;QAC5BE,WAAW,EAAE,EAAAR,qBAAA,GAAAlB,wBAAwB,CAAC2B,KAAK,cAAAT,qBAAA,uBAA9BA,qBAAA,CAAgCU,QAAQ,CAAC,CAAC,KAAI,EAAE;QAC7DC,UAAU,EAAE,EAAAV,sBAAA,GAAAnB,wBAAwB,CAAC8B,IAAI,cAAAX,sBAAA,uBAA7BA,sBAAA,CAA+BS,QAAQ,CAAC,CAAC,KAAI,EAAE;QAC3DG,GAAG,EAAE7B,iBAAiB,CAACsB,KAAK;QAC5BpB;MACF,CAAC;MAEDO,KAAK,GAAG,MAAMrB,GAAG,CAACgC,WAAW,CAAC;IAChC;IAEA,IAAIX,KAAK,EAAE;MACTD,WAAW,CAACC,KAAK,CAAC;IACpB;EACF,CAAC;EAED,MAAMqB,mBAAmB,GAAIC,MAAqB,IAAK;IACrDC,4BAAe,CAACC,aAAa,CAACD,4BAAe,CAACE,OAAO,CAACC,aAAa,CAAC;IACpE7B,gBAAgB,CAACyB,MAAM,CAAC;EAC1B,CAAC;EAED,OAAO;IACL5C,WAAW;IACXkB,aAAa;IACbf,yBAAyB;IACzBC,kBAAkB;IAClBW,QAAQ;IACRR,cAAc;IACdE,cAAc;IACdE,wBAAwB;IACxBE,iBAAiB;IACjBG,WAAW;IACXW,cAAc;IACdgB;EACF,CAAC;AACH,CAAC;AAACM,OAAA,CAAApD,YAAA,GAAAA,YAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Checkbox = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _ThemeContext = require("../../contexts/ThemeContext");
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
const Checkbox = props => {
|
|
13
|
+
const styles = (0, _styles.useStyles)(props.selected);
|
|
14
|
+
const theme = (0, _ThemeContext.useTheme)();
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
16
|
+
disabled: !props.onPress,
|
|
17
|
+
style: styles.container,
|
|
18
|
+
onPress: props.onPress
|
|
19
|
+
}, props.selected && /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
20
|
+
style: styles.image,
|
|
21
|
+
source: theme.images.checkbox
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
exports.Checkbox = Checkbox;
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_styles","obj","__esModule","default","Checkbox","props","styles","useStyles","selected","theme","useTheme","createElement","TouchableOpacity","disabled","onPress","style","container","Image","image","source","images","checkbox","exports"],"sourceRoot":"../../../../src","sources":["components/Checkbox/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAqC,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAO9B,MAAMG,QAAQ,GAAIC,KAAoB,IAAK;EAChD,MAAMC,MAAM,GAAG,IAAAC,iBAAS,EAACF,KAAK,CAACG,QAAQ,CAAC;EACxC,MAAMC,KAAK,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EAExB,oBACEf,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACb,YAAA,CAAAc,gBAAgB;IACfC,QAAQ,EAAE,CAACR,KAAK,CAACS,OAAQ;IACzBC,KAAK,EAAET,MAAM,CAACU,SAAU;IACxBF,OAAO,EAAET,KAAK,CAACS;EAAQ,GAEtBT,KAAK,CAACG,QAAQ,iBACbb,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACb,YAAA,CAAAmB,KAAK;IAACF,KAAK,EAAET,MAAM,CAACY,KAAM;IAACC,MAAM,EAAEV,KAAK,CAACW,MAAM,CAACC;EAAS,CAAE,CAE9C,CAAC;AAEvB,CAAC;AAACC,OAAA,CAAAlB,QAAA,GAAAA,QAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _ThemeContext = require("../../contexts/ThemeContext");
|
|
9
|
+
const useStyles = selected => {
|
|
10
|
+
const {
|
|
11
|
+
colors
|
|
12
|
+
} = (0, _ThemeContext.useTheme)();
|
|
13
|
+
const styles = _reactNative.StyleSheet.create({
|
|
14
|
+
container: {
|
|
15
|
+
borderRadius: 12,
|
|
16
|
+
width: 24,
|
|
17
|
+
height: 24,
|
|
18
|
+
borderWidth: 2,
|
|
19
|
+
borderColor: selected ? colors.royalBlue : colors.doveGray
|
|
20
|
+
},
|
|
21
|
+
image: {
|
|
22
|
+
width: 24,
|
|
23
|
+
height: 24,
|
|
24
|
+
marginLeft: -2,
|
|
25
|
+
marginTop: -2
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return styles;
|
|
29
|
+
};
|
|
30
|
+
exports.useStyles = useStyles;
|
|
31
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeContext","useStyles","selected","colors","useTheme","styles","StyleSheet","create","container","borderRadius","width","height","borderWidth","borderColor","royalBlue","doveGray","image","marginLeft","marginTop","exports"],"sourceRoot":"../../../../src","sources":["components/Checkbox/styles.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEO,MAAME,SAAS,GAAIC,QAAiB,IAAK;EAC9C,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EAE7B,MAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;IAC/BC,SAAS,EAAE;MACTC,YAAY,EAAE,EAAE;MAChBC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAEX,QAAQ,GAAGC,MAAM,CAACW,SAAS,GAAGX,MAAM,CAACY;IACpD,CAAC;IACDC,KAAK,EAAE;MACLN,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVM,UAAU,EAAE,CAAC,CAAC;MACdC,SAAS,EAAE,CAAC;IACd;EACF,CAAC,CAAC;EAEF,OAAOb,MAAM;AACf,CAAC;AAACc,OAAA,CAAAlB,SAAA,GAAAA,SAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.GooglePayButton = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _StoreContext = require("../../contexts/StoreContext");
|
|
10
|
+
var _ThemeContext = require("../../contexts/ThemeContext");
|
|
11
|
+
var _styles = require("./styles");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
const GooglePayButton = props => {
|
|
14
|
+
const styles = (0, _styles.useStyles)(props.disabled);
|
|
15
|
+
const theme = (0, _ThemeContext.useTheme)();
|
|
16
|
+
const {
|
|
17
|
+
presentGooglePay
|
|
18
|
+
} = (0, _StoreContext.useNativePaymentStore)();
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
20
|
+
disabled: props.disabled,
|
|
21
|
+
style: styles.container,
|
|
22
|
+
onPress: presentGooglePay
|
|
23
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
24
|
+
style: styles.image,
|
|
25
|
+
source: theme.images.googlePay
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
exports.GooglePayButton = GooglePayButton;
|
|
29
|
+
//# sourceMappingURL=index.js.map
|