boxpay-checkout-reactnative-sdk 1.1.7-beta2 → 2.0.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/README.md +66 -6
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactnativemodule/BoxPayElementsView.kt +62 -0
- package/android/src/main/java/com/reactnativemodule/CrossPlaform.kt +48 -19
- package/android/src/main/java/com/reactnativemodule/ReactNativeModulePackage.kt +2 -3
- package/cross_platform_react_native_plugin.podspec +1 -1
- package/ios/BoxPayElementsView.m +10 -0
- package/ios/BoxPayElementsView.swift +82 -0
- package/ios/CrossPlatform.m +5 -2
- package/ios/CrossPlatform.swift +74 -26
- package/lib/module/index.js +108 -13
- package/lib/module/index.js.map +1 -1
- package/lib/module/interface.js +10 -30
- package/lib/module/interface.js.map +1 -1
- package/lib/module/native.js +35 -0
- package/lib/module/native.js.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -3
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/interface.d.ts +20 -522
- package/lib/typescript/src/interface.d.ts.map +1 -1
- package/lib/typescript/src/native.d.ts +24 -0
- package/lib/typescript/src/native.d.ts.map +1 -0
- package/package.json +15 -21
- package/src/index.tsx +106 -13
- package/src/interface.ts +25 -602
- package/src/native.ts +72 -0
- package/assets/animations/boxpayLogo.json +0 -1135
- package/assets/animations/payment_failed.json +0 -487
- package/assets/animations/payment_status_pending.json +0 -750
- package/assets/animations/payment_successful.json +0 -1602
- package/assets/fonts/Inter_18pt-Bold.ttf +0 -0
- package/assets/fonts/Inter_18pt-ExtraBold.ttf +0 -0
- package/assets/fonts/Inter_18pt-Medium.ttf +0 -0
- package/assets/fonts/Inter_18pt-Regular.ttf +0 -0
- package/assets/fonts/Inter_18pt-SemiBold.ttf +0 -0
- package/assets/fonts/Poppins-Bold.ttf +0 -0
- package/assets/fonts/Poppins-ExtraBold.ttf +0 -0
- package/assets/fonts/Poppins-Medium.ttf +0 -0
- package/assets/fonts/Poppins-Regular.ttf +0 -0
- package/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/assets/images/Lock.png +0 -0
- package/assets/images/add_icon.png +0 -0
- package/assets/images/add_upi_id_background.png +0 -0
- package/assets/images/arrow-left.png +0 -0
- package/assets/images/chervon-down.png +0 -0
- package/assets/images/cvv_info_image.png +0 -0
- package/assets/images/cvv_info_image_amex.png +0 -0
- package/assets/images/favicon.png +0 -0
- package/assets/images/gpay-icon.png +0 -0
- package/assets/images/ic_amex.png +0 -0
- package/assets/images/ic_bnpl.png +0 -0
- package/assets/images/ic_bnpl_semi_bold.png +0 -0
- package/assets/images/ic_card.png +0 -0
- package/assets/images/ic_card_add.png +0 -0
- package/assets/images/ic_card_lock.png +0 -0
- package/assets/images/ic_cross.png +0 -0
- package/assets/images/ic_cvv_info.png +0 -0
- package/assets/images/ic_default_card.png +0 -0
- package/assets/images/ic_emi.png +0 -0
- package/assets/images/ic_home.png +0 -0
- package/assets/images/ic_info.png +0 -0
- package/assets/images/ic_location.png +0 -0
- package/assets/images/ic_maestro.png +0 -0
- package/assets/images/ic_masterCard.png +0 -0
- package/assets/images/ic_more.png +0 -0
- package/assets/images/ic_netbanking.png +0 -0
- package/assets/images/ic_netbanking_semi_bold.png +0 -0
- package/assets/images/ic_offer_tag.png +0 -0
- package/assets/images/ic_other.png +0 -0
- package/assets/images/ic_qr.png +0 -0
- package/assets/images/ic_rupay.png +0 -0
- package/assets/images/ic_search.png +0 -0
- package/assets/images/ic_trash.png +0 -0
- package/assets/images/ic_upi.png +0 -0
- package/assets/images/ic_upi_error.png +0 -0
- package/assets/images/ic_user.png +0 -0
- package/assets/images/ic_visa.png +0 -0
- package/assets/images/ic_wallet.png +0 -0
- package/assets/images/ic_wallet_semi_bold.png +0 -0
- package/assets/images/ic_work.png +0 -0
- package/assets/images/no_results_found.png +0 -0
- package/assets/images/other-intent-icon.png +0 -0
- package/assets/images/paytm-icon.png +0 -0
- package/assets/images/phonepe-icon.png +0 -0
- package/assets/images/splash-icon.png +0 -0
- package/assets/images/upi-icon.png +0 -0
- package/assets/images/upi-timer-sheet-upi-icon.png +0 -0
- package/assets/json/countryCodes.json +0 -1490
- package/ios/Framework/CrossPlatformSDK.xcframework/Info.plist +0 -48
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/CrossPlatformSDK +0 -0
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/Headers/CrossPlatformSDK.h +0 -168
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/Info.plist +0 -35
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/Modules/module.modulemap +0 -8
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/dSYMs/CrossPlatformSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/CrossPlatformSDK.framework/CrossPlatformSDK +0 -0
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/CrossPlatformSDK.framework/Headers/CrossPlatformSDK.h +0 -168
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/CrossPlatformSDK.framework/Info.plist +0 -31
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/CrossPlatformSDK.framework/Modules/module.modulemap +0 -5
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/CrossPlatformSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/lib/assets/animations/boxpayLogo.json +0 -1135
- package/lib/assets/animations/payment_failed.json +0 -487
- package/lib/assets/animations/payment_status_pending.json +0 -750
- package/lib/assets/animations/payment_successful.json +0 -1602
- package/lib/assets/assets/animations/boxpayLogo.json +0 -1135
- package/lib/assets/assets/animations/payment_failed.json +0 -487
- package/lib/assets/assets/animations/payment_status_pending.json +0 -750
- package/lib/assets/assets/animations/payment_successful.json +0 -1602
- package/lib/assets/assets/fonts/Inter_18pt-Bold.ttf +0 -0
- package/lib/assets/assets/fonts/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/assets/assets/fonts/Inter_18pt-Medium.ttf +0 -0
- package/lib/assets/assets/fonts/Inter_18pt-Regular.ttf +0 -0
- package/lib/assets/assets/fonts/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/assets/assets/fonts/Poppins-Bold.ttf +0 -0
- package/lib/assets/assets/fonts/Poppins-ExtraBold.ttf +0 -0
- package/lib/assets/assets/fonts/Poppins-Medium.ttf +0 -0
- package/lib/assets/assets/fonts/Poppins-Regular.ttf +0 -0
- package/lib/assets/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/lib/assets/assets/images/Lock.png +0 -0
- package/lib/assets/assets/images/add_icon.png +0 -0
- package/lib/assets/assets/images/add_upi_id_background.png +0 -0
- package/lib/assets/assets/images/arrow-left.png +0 -0
- package/lib/assets/assets/images/chervon-down.png +0 -0
- package/lib/assets/assets/images/cvv_info_image.png +0 -0
- package/lib/assets/assets/images/cvv_info_image_amex.png +0 -0
- package/lib/assets/assets/images/favicon.png +0 -0
- package/lib/assets/assets/images/gpay-icon.png +0 -0
- package/lib/assets/assets/images/ic_amex.png +0 -0
- package/lib/assets/assets/images/ic_bnpl.png +0 -0
- package/lib/assets/assets/images/ic_bnpl_semi_bold.png +0 -0
- package/lib/assets/assets/images/ic_card.png +0 -0
- package/lib/assets/assets/images/ic_card_add.png +0 -0
- package/lib/assets/assets/images/ic_card_lock.png +0 -0
- package/lib/assets/assets/images/ic_cross.png +0 -0
- package/lib/assets/assets/images/ic_cvv_info.png +0 -0
- package/lib/assets/assets/images/ic_default_card.png +0 -0
- package/lib/assets/assets/images/ic_emi.png +0 -0
- package/lib/assets/assets/images/ic_home.png +0 -0
- package/lib/assets/assets/images/ic_info.png +0 -0
- package/lib/assets/assets/images/ic_location.png +0 -0
- package/lib/assets/assets/images/ic_maestro.png +0 -0
- package/lib/assets/assets/images/ic_masterCard.png +0 -0
- package/lib/assets/assets/images/ic_more.png +0 -0
- package/lib/assets/assets/images/ic_netbanking.png +0 -0
- package/lib/assets/assets/images/ic_netbanking_semi_bold.png +0 -0
- package/lib/assets/assets/images/ic_offer_tag.png +0 -0
- package/lib/assets/assets/images/ic_other.png +0 -0
- package/lib/assets/assets/images/ic_qr.png +0 -0
- package/lib/assets/assets/images/ic_rupay.png +0 -0
- package/lib/assets/assets/images/ic_search.png +0 -0
- package/lib/assets/assets/images/ic_trash.png +0 -0
- package/lib/assets/assets/images/ic_upi.png +0 -0
- package/lib/assets/assets/images/ic_upi_error.png +0 -0
- package/lib/assets/assets/images/ic_user.png +0 -0
- package/lib/assets/assets/images/ic_visa.png +0 -0
- package/lib/assets/assets/images/ic_wallet.png +0 -0
- package/lib/assets/assets/images/ic_wallet_semi_bold.png +0 -0
- package/lib/assets/assets/images/ic_work.png +0 -0
- package/lib/assets/assets/images/no_results_found.png +0 -0
- package/lib/assets/assets/images/other-intent-icon.png +0 -0
- package/lib/assets/assets/images/paytm-icon.png +0 -0
- package/lib/assets/assets/images/phonepe-icon.png +0 -0
- package/lib/assets/assets/images/splash-icon.png +0 -0
- package/lib/assets/assets/images/upi-icon.png +0 -0
- package/lib/assets/assets/images/upi-timer-sheet-upi-icon.png +0 -0
- package/lib/assets/assets/json/countryCodes.json +0 -1490
- package/lib/assets/fonts/Inter_18pt-Bold.ttf +0 -0
- package/lib/assets/fonts/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/assets/fonts/Inter_18pt-Medium.ttf +0 -0
- package/lib/assets/fonts/Inter_18pt-Regular.ttf +0 -0
- package/lib/assets/fonts/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
- package/lib/assets/fonts/Poppins-ExtraBold.ttf +0 -0
- package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
- package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
- package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/lib/assets/images/Lock.png +0 -0
- package/lib/assets/images/add_icon.png +0 -0
- package/lib/assets/images/add_upi_id_background.png +0 -0
- package/lib/assets/images/arrow-left.png +0 -0
- package/lib/assets/images/chervon-down.png +0 -0
- package/lib/assets/images/cvv_info_image.png +0 -0
- package/lib/assets/images/cvv_info_image_amex.png +0 -0
- package/lib/assets/images/favicon.png +0 -0
- package/lib/assets/images/gpay-icon.png +0 -0
- package/lib/assets/images/ic_amex.png +0 -0
- package/lib/assets/images/ic_bnpl.png +0 -0
- package/lib/assets/images/ic_bnpl_semi_bold.png +0 -0
- package/lib/assets/images/ic_card.png +0 -0
- package/lib/assets/images/ic_card_add.png +0 -0
- package/lib/assets/images/ic_card_lock.png +0 -0
- package/lib/assets/images/ic_cross.png +0 -0
- package/lib/assets/images/ic_cvv_info.png +0 -0
- package/lib/assets/images/ic_default_card.png +0 -0
- package/lib/assets/images/ic_emi.png +0 -0
- package/lib/assets/images/ic_home.png +0 -0
- package/lib/assets/images/ic_info.png +0 -0
- package/lib/assets/images/ic_location.png +0 -0
- package/lib/assets/images/ic_maestro.png +0 -0
- package/lib/assets/images/ic_masterCard.png +0 -0
- package/lib/assets/images/ic_more.png +0 -0
- package/lib/assets/images/ic_netbanking.png +0 -0
- package/lib/assets/images/ic_netbanking_semi_bold.png +0 -0
- package/lib/assets/images/ic_offer_tag.png +0 -0
- package/lib/assets/images/ic_other.png +0 -0
- package/lib/assets/images/ic_qr.png +0 -0
- package/lib/assets/images/ic_rupay.png +0 -0
- package/lib/assets/images/ic_search.png +0 -0
- package/lib/assets/images/ic_trash.png +0 -0
- package/lib/assets/images/ic_upi.png +0 -0
- package/lib/assets/images/ic_upi_error.png +0 -0
- package/lib/assets/images/ic_user.png +0 -0
- package/lib/assets/images/ic_visa.png +0 -0
- package/lib/assets/images/ic_wallet.png +0 -0
- package/lib/assets/images/ic_wallet_semi_bold.png +0 -0
- package/lib/assets/images/ic_work.png +0 -0
- package/lib/assets/images/no_results_found.png +0 -0
- package/lib/assets/images/other-intent-icon.png +0 -0
- package/lib/assets/images/paytm-icon.png +0 -0
- package/lib/assets/images/phonepe-icon.png +0 -0
- package/lib/assets/images/splash-icon.png +0 -0
- package/lib/assets/images/upi-icon.png +0 -0
- package/lib/assets/images/upi-timer-sheet-upi-icon.png +0 -0
- package/lib/assets/json/countryCodes.json +0 -1490
- package/lib/module/components/addressCard.js +0 -186
- package/lib/module/components/addressCard.js.map +0 -1
- package/lib/module/components/applyCouponCard.js +0 -145
- package/lib/module/components/applyCouponCard.js.map +0 -1
- package/lib/module/components/bankCard.js +0 -59
- package/lib/module/components/bankCard.js.map +0 -1
- package/lib/module/components/cancelPaymentModal.js +0 -74
- package/lib/module/components/cancelPaymentModal.js.map +0 -1
- package/lib/module/components/checkboxContainer.js +0 -65
- package/lib/module/components/checkboxContainer.js.map +0 -1
- package/lib/module/components/circularProgress.js +0 -75
- package/lib/module/components/circularProgress.js.map +0 -1
- package/lib/module/components/cvvInfoBottomSheet.js +0 -73
- package/lib/module/components/cvvInfoBottomSheet.js.map +0 -1
- package/lib/module/components/deleteAddressModal.js +0 -120
- package/lib/module/components/deleteAddressModal.js.map +0 -1
- package/lib/module/components/fontFamily.js +0 -30
- package/lib/module/components/fontFamily.js.map +0 -1
- package/lib/module/components/getInstalledUPI.js +0 -27
- package/lib/module/components/getInstalledUPI.js.map +0 -1
- package/lib/module/components/header.js +0 -127
- package/lib/module/components/header.js.map +0 -1
- package/lib/module/components/imageLoader.js +0 -93
- package/lib/module/components/imageLoader.js.map +0 -1
- package/lib/module/components/knowMoreBottomSheet.js +0 -113
- package/lib/module/components/knowMoreBottomSheet.js.map +0 -1
- package/lib/module/components/morePaymentContainer.js +0 -66
- package/lib/module/components/morePaymentContainer.js.map +0 -1
- package/lib/module/components/morePaymentMethods.js +0 -177
- package/lib/module/components/morePaymentMethods.js.map +0 -1
- package/lib/module/components/offerCard.js +0 -148
- package/lib/module/components/offerCard.js.map +0 -1
- package/lib/module/components/orderDetails.js +0 -404
- package/lib/module/components/orderDetails.js.map +0 -1
- package/lib/module/components/paymentFailed.js +0 -98
- package/lib/module/components/paymentFailed.js.map +0 -1
- package/lib/module/components/paymentSelector.js +0 -158
- package/lib/module/components/paymentSelector.js.map +0 -1
- package/lib/module/components/paymentSuccess.js +0 -244
- package/lib/module/components/paymentSuccess.js.map +0 -1
- package/lib/module/components/savedAddressBottomSheet.js +0 -130
- package/lib/module/components/savedAddressBottomSheet.js.map +0 -1
- package/lib/module/components/savedAddressCard.js +0 -117
- package/lib/module/components/savedAddressCard.js.map +0 -1
- package/lib/module/components/savedCardComponent.js +0 -238
- package/lib/module/components/savedCardComponent.js.map +0 -1
- package/lib/module/components/selectTenureCard.js +0 -393
- package/lib/module/components/selectTenureCard.js.map +0 -1
- package/lib/module/components/sessionExpire.js +0 -96
- package/lib/module/components/sessionExpire.js.map +0 -1
- package/lib/module/components/shimmerView.js +0 -40
- package/lib/module/components/shimmerView.js.map +0 -1
- package/lib/module/navigation.js +0 -87
- package/lib/module/navigation.js.map +0 -1
- package/lib/module/postRequest/callUIAnalytics.js +0 -43
- package/lib/module/postRequest/callUIAnalytics.js.map +0 -1
- package/lib/module/postRequest/cardPostRequest.js +0 -60
- package/lib/module/postRequest/cardPostRequest.js.map +0 -1
- package/lib/module/postRequest/deleteSavedAddress.js +0 -33
- package/lib/module/postRequest/deleteSavedAddress.js.map +0 -1
- package/lib/module/postRequest/emiPostRequest.js +0 -68
- package/lib/module/postRequest/emiPostRequest.js.map +0 -1
- package/lib/module/postRequest/fetchCardDetails.js +0 -26
- package/lib/module/postRequest/fetchCardDetails.js.map +0 -1
- package/lib/module/postRequest/fetchInstantOffer.js +0 -29
- package/lib/module/postRequest/fetchInstantOffer.js.map +0 -1
- package/lib/module/postRequest/fetchPaymentMethods.js +0 -25
- package/lib/module/postRequest/fetchPaymentMethods.js.map +0 -1
- package/lib/module/postRequest/fetchRecommendedInstruments.js +0 -30
- package/lib/module/postRequest/fetchRecommendedInstruments.js.map +0 -1
- package/lib/module/postRequest/fetchSavedAddress.js +0 -30
- package/lib/module/postRequest/fetchSavedAddress.js.map +0 -1
- package/lib/module/postRequest/fetchSessionDetails.js +0 -25
- package/lib/module/postRequest/fetchSessionDetails.js.map +0 -1
- package/lib/module/postRequest/fetchStatus.js +0 -25
- package/lib/module/postRequest/fetchStatus.js.map +0 -1
- package/lib/module/postRequest/fetchSurcharge.js +0 -36
- package/lib/module/postRequest/fetchSurcharge.js.map +0 -1
- package/lib/module/postRequest/methodsPostRequest.js +0 -48
- package/lib/module/postRequest/methodsPostRequest.js.map +0 -1
- package/lib/module/postRequest/upiPostRequest.js +0 -46
- package/lib/module/postRequest/upiPostRequest.js.map +0 -1
- package/lib/module/screens/addressScreen.js +0 -771
- package/lib/module/screens/addressScreen.js.map +0 -1
- package/lib/module/screens/bnplScreen.js +0 -249
- package/lib/module/screens/bnplScreen.js.map +0 -1
- package/lib/module/screens/cardScreen.js +0 -903
- package/lib/module/screens/cardScreen.js.map +0 -1
- package/lib/module/screens/emiScreen.js +0 -638
- package/lib/module/screens/emiScreen.js.map +0 -1
- package/lib/module/screens/instantOfferList.js +0 -117
- package/lib/module/screens/instantOfferList.js.map +0 -1
- package/lib/module/screens/mainScreen.js +0 -873
- package/lib/module/screens/mainScreen.js.map +0 -1
- package/lib/module/screens/netBankingScreen.js +0 -360
- package/lib/module/screens/netBankingScreen.js.map +0 -1
- package/lib/module/screens/savedAddressScreen.js +0 -274
- package/lib/module/screens/savedAddressScreen.js.map +0 -1
- package/lib/module/screens/selectTenureScreen.js +0 -105
- package/lib/module/screens/selectTenureScreen.js.map +0 -1
- package/lib/module/screens/upiScreen.js +0 -557
- package/lib/module/screens/upiScreen.js.map +0 -1
- package/lib/module/screens/upiTimerScreen.js +0 -212
- package/lib/module/screens/upiTimerScreen.js.map +0 -1
- package/lib/module/screens/walletScreen.js +0 -327
- package/lib/module/screens/walletScreen.js.map +0 -1
- package/lib/module/screens/webViewScreen.js +0 -87
- package/lib/module/screens/webViewScreen.js.map +0 -1
- package/lib/module/sdk-version.json +0 -1
- package/lib/module/serviceRequest.js +0 -27
- package/lib/module/serviceRequest.js.map +0 -1
- package/lib/module/sharedContext/checkoutDetailsHandler.js +0 -98
- package/lib/module/sharedContext/checkoutDetailsHandler.js.map +0 -1
- package/lib/module/sharedContext/handlePaymentResponseHandler.js +0 -278
- package/lib/module/sharedContext/handlePaymentResponseHandler.js.map +0 -1
- package/lib/module/sharedContext/paymentStatusHandler.js +0 -9
- package/lib/module/sharedContext/paymentStatusHandler.js.map +0 -1
- package/lib/module/sharedContext/userdataHandler.js +0 -50
- package/lib/module/sharedContext/userdataHandler.js.map +0 -1
- package/lib/module/styles/components/addressCardStyles.js +0 -55
- package/lib/module/styles/components/addressCardStyles.js.map +0 -1
- package/lib/module/styles/components/bankCardStyles.js +0 -61
- package/lib/module/styles/components/bankCardStyles.js.map +0 -1
- package/lib/module/styles/components/cancelPaymentModalStyles.js +0 -83
- package/lib/module/styles/components/cancelPaymentModalStyles.js.map +0 -1
- package/lib/module/styles/components/cvvInfoBottomSheetStyles.js +0 -52
- package/lib/module/styles/components/cvvInfoBottomSheetStyles.js.map +0 -1
- package/lib/module/styles/components/savedAddressCardStyles.js +0 -64
- package/lib/module/styles/components/savedAddressCardStyles.js.map +0 -1
- package/lib/module/styles/indexStyles.js +0 -70
- package/lib/module/styles/indexStyles.js.map +0 -1
- package/lib/module/styles/screens/addressScreenStyles..js +0 -61
- package/lib/module/styles/screens/addressScreenStyles..js.map +0 -1
- package/lib/module/styles/screens/bnplScreenStyles.js +0 -81
- package/lib/module/styles/screens/bnplScreenStyles.js.map +0 -1
- package/lib/module/styles/screens/cardScreenStyles.js +0 -164
- package/lib/module/styles/screens/cardScreenStyles.js.map +0 -1
- package/lib/module/styles/screens/emiScreenStyles.js +0 -130
- package/lib/module/styles/screens/emiScreenStyles.js.map +0 -1
- package/lib/module/styles/screens/instantOfferScreenStyles.js +0 -45
- package/lib/module/styles/screens/instantOfferScreenStyles.js.map +0 -1
- package/lib/module/styles/screens/netBankingScreenStyles.js +0 -102
- package/lib/module/styles/screens/netBankingScreenStyles.js.map +0 -1
- package/lib/module/styles/screens/savedAddressScreenStyles.js +0 -52
- package/lib/module/styles/screens/savedAddressScreenStyles.js.map +0 -1
- package/lib/module/styles/screens/selectTenureScreenStyles.js +0 -45
- package/lib/module/styles/screens/selectTenureScreenStyles.js.map +0 -1
- package/lib/module/styles/screens/upiScreenStyles.js +0 -172
- package/lib/module/styles/screens/upiScreenStyles.js.map +0 -1
- package/lib/module/styles/screens/upiTimerScreenStyle.js +0 -97
- package/lib/module/styles/screens/upiTimerScreenStyle.js.map +0 -1
- package/lib/module/styles/screens/walletScreenStyles.js +0 -99
- package/lib/module/styles/screens/walletScreenStyles.js.map +0 -1
- package/lib/module/utility.js +0 -172
- package/lib/module/utility.js.map +0 -1
- package/lib/typescript/src/components/addressCard.d.ts +0 -7
- package/lib/typescript/src/components/addressCard.d.ts.map +0 -1
- package/lib/typescript/src/components/applyCouponCard.d.ts +0 -15
- package/lib/typescript/src/components/applyCouponCard.d.ts.map +0 -1
- package/lib/typescript/src/components/bankCard.d.ts +0 -11
- package/lib/typescript/src/components/bankCard.d.ts.map +0 -1
- package/lib/typescript/src/components/cancelPaymentModal.d.ts +0 -8
- package/lib/typescript/src/components/cancelPaymentModal.d.ts.map +0 -1
- package/lib/typescript/src/components/checkboxContainer.d.ts +0 -8
- package/lib/typescript/src/components/checkboxContainer.d.ts.map +0 -1
- package/lib/typescript/src/components/circularProgress.d.ts +0 -10
- package/lib/typescript/src/components/circularProgress.d.ts.map +0 -1
- package/lib/typescript/src/components/cvvInfoBottomSheet.d.ts +0 -7
- package/lib/typescript/src/components/cvvInfoBottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/components/deleteAddressModal.d.ts +0 -9
- package/lib/typescript/src/components/deleteAddressModal.d.ts.map +0 -1
- package/lib/typescript/src/components/fontFamily.d.ts +0 -14
- package/lib/typescript/src/components/fontFamily.d.ts.map +0 -1
- package/lib/typescript/src/components/getInstalledUPI.d.ts +0 -2
- package/lib/typescript/src/components/getInstalledUPI.d.ts.map +0 -1
- package/lib/typescript/src/components/header.d.ts +0 -10
- package/lib/typescript/src/components/header.d.ts.map +0 -1
- package/lib/typescript/src/components/imageLoader.d.ts +0 -8
- package/lib/typescript/src/components/imageLoader.d.ts.map +0 -1
- package/lib/typescript/src/components/knowMoreBottomSheet.d.ts +0 -6
- package/lib/typescript/src/components/knowMoreBottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/components/morePaymentContainer.d.ts +0 -10
- package/lib/typescript/src/components/morePaymentContainer.d.ts.map +0 -1
- package/lib/typescript/src/components/morePaymentMethods.d.ts +0 -11
- package/lib/typescript/src/components/morePaymentMethods.d.ts.map +0 -1
- package/lib/typescript/src/components/offerCard.d.ts +0 -15
- package/lib/typescript/src/components/offerCard.d.ts.map +0 -1
- package/lib/typescript/src/components/orderDetails.d.ts +0 -23
- package/lib/typescript/src/components/orderDetails.d.ts.map +0 -1
- package/lib/typescript/src/components/paymentFailed.d.ts +0 -8
- package/lib/typescript/src/components/paymentFailed.d.ts.map +0 -1
- package/lib/typescript/src/components/paymentSelector.d.ts +0 -12
- package/lib/typescript/src/components/paymentSelector.d.ts.map +0 -1
- package/lib/typescript/src/components/paymentSuccess.d.ts +0 -10
- package/lib/typescript/src/components/paymentSuccess.d.ts.map +0 -1
- package/lib/typescript/src/components/savedAddressBottomSheet.d.ts +0 -14
- package/lib/typescript/src/components/savedAddressBottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/components/savedAddressCard.d.ts +0 -9
- package/lib/typescript/src/components/savedAddressCard.d.ts.map +0 -1
- package/lib/typescript/src/components/savedCardComponent.d.ts +0 -12
- package/lib/typescript/src/components/savedCardComponent.d.ts.map +0 -1
- package/lib/typescript/src/components/selectTenureCard.d.ts +0 -21
- package/lib/typescript/src/components/selectTenureCard.d.ts.map +0 -1
- package/lib/typescript/src/components/sessionExpire.d.ts +0 -7
- package/lib/typescript/src/components/sessionExpire.d.ts.map +0 -1
- package/lib/typescript/src/components/shimmerView.d.ts +0 -3
- package/lib/typescript/src/components/shimmerView.d.ts.map +0 -1
- package/lib/typescript/src/navigation.d.ts +0 -17
- package/lib/typescript/src/navigation.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/callUIAnalytics.d.ts +0 -4
- package/lib/typescript/src/postRequest/callUIAnalytics.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/cardPostRequest.d.ts +0 -4
- package/lib/typescript/src/postRequest/cardPostRequest.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/deleteSavedAddress.d.ts +0 -4
- package/lib/typescript/src/postRequest/deleteSavedAddress.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/emiPostRequest.d.ts +0 -13
- package/lib/typescript/src/postRequest/emiPostRequest.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/fetchCardDetails.d.ts +0 -4
- package/lib/typescript/src/postRequest/fetchCardDetails.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/fetchInstantOffer.d.ts +0 -4
- package/lib/typescript/src/postRequest/fetchInstantOffer.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/fetchPaymentMethods.d.ts +0 -4
- package/lib/typescript/src/postRequest/fetchPaymentMethods.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/fetchRecommendedInstruments.d.ts +0 -4
- package/lib/typescript/src/postRequest/fetchRecommendedInstruments.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/fetchSavedAddress.d.ts +0 -4
- package/lib/typescript/src/postRequest/fetchSavedAddress.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/fetchSessionDetails.d.ts +0 -4
- package/lib/typescript/src/postRequest/fetchSessionDetails.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/fetchStatus.d.ts +0 -4
- package/lib/typescript/src/postRequest/fetchStatus.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/fetchSurcharge.d.ts +0 -4
- package/lib/typescript/src/postRequest/fetchSurcharge.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/methodsPostRequest.d.ts +0 -4
- package/lib/typescript/src/postRequest/methodsPostRequest.d.ts.map +0 -1
- package/lib/typescript/src/postRequest/upiPostRequest.d.ts +0 -4
- package/lib/typescript/src/postRequest/upiPostRequest.d.ts.map +0 -1
- package/lib/typescript/src/screens/addressScreen.d.ts +0 -11
- package/lib/typescript/src/screens/addressScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/bnplScreen.d.ts +0 -9
- package/lib/typescript/src/screens/bnplScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/cardScreen.d.ts +0 -11
- package/lib/typescript/src/screens/cardScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/emiScreen.d.ts +0 -9
- package/lib/typescript/src/screens/emiScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/instantOfferList.d.ts +0 -19
- package/lib/typescript/src/screens/instantOfferList.d.ts.map +0 -1
- package/lib/typescript/src/screens/mainScreen.d.ts +0 -11
- package/lib/typescript/src/screens/mainScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/netBankingScreen.d.ts +0 -9
- package/lib/typescript/src/screens/netBankingScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/savedAddressScreen.d.ts +0 -9
- package/lib/typescript/src/screens/savedAddressScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/selectTenureScreen.d.ts +0 -12
- package/lib/typescript/src/screens/selectTenureScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/upiScreen.d.ts +0 -20
- package/lib/typescript/src/screens/upiScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/upiTimerScreen.d.ts +0 -11
- package/lib/typescript/src/screens/upiTimerScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/walletScreen.d.ts +0 -9
- package/lib/typescript/src/screens/walletScreen.d.ts.map +0 -1
- package/lib/typescript/src/screens/webViewScreen.d.ts +0 -9
- package/lib/typescript/src/screens/webViewScreen.d.ts.map +0 -1
- package/lib/typescript/src/serviceRequest.d.ts +0 -3
- package/lib/typescript/src/serviceRequest.d.ts.map +0 -1
- package/lib/typescript/src/sharedContext/checkoutDetailsHandler.d.ts +0 -8
- package/lib/typescript/src/sharedContext/checkoutDetailsHandler.d.ts.map +0 -1
- package/lib/typescript/src/sharedContext/handlePaymentResponseHandler.d.ts +0 -16
- package/lib/typescript/src/sharedContext/handlePaymentResponseHandler.d.ts.map +0 -1
- package/lib/typescript/src/sharedContext/paymentStatusHandler.d.ts +0 -7
- package/lib/typescript/src/sharedContext/paymentStatusHandler.d.ts.map +0 -1
- package/lib/typescript/src/sharedContext/userdataHandler.d.ts +0 -8
- package/lib/typescript/src/sharedContext/userdataHandler.d.ts.map +0 -1
- package/lib/typescript/src/styles/components/addressCardStyles.d.ts +0 -52
- package/lib/typescript/src/styles/components/addressCardStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/components/bankCardStyles.d.ts +0 -58
- package/lib/typescript/src/styles/components/bankCardStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/components/cancelPaymentModalStyles.d.ts +0 -80
- package/lib/typescript/src/styles/components/cancelPaymentModalStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/components/cvvInfoBottomSheetStyles.d.ts +0 -49
- package/lib/typescript/src/styles/components/cvvInfoBottomSheetStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/components/savedAddressCardStyles.d.ts +0 -61
- package/lib/typescript/src/styles/components/savedAddressCardStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/indexStyles.d.ts +0 -67
- package/lib/typescript/src/styles/indexStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/addressScreenStyles..d.ts +0 -58
- package/lib/typescript/src/styles/screens/addressScreenStyles..d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/bnplScreenStyles.d.ts +0 -78
- package/lib/typescript/src/styles/screens/bnplScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/cardScreenStyles.d.ts +0 -161
- package/lib/typescript/src/styles/screens/cardScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/emiScreenStyles.d.ts +0 -127
- package/lib/typescript/src/styles/screens/emiScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/instantOfferScreenStyles.d.ts +0 -42
- package/lib/typescript/src/styles/screens/instantOfferScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/netBankingScreenStyles.d.ts +0 -99
- package/lib/typescript/src/styles/screens/netBankingScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/savedAddressScreenStyles.d.ts +0 -49
- package/lib/typescript/src/styles/screens/savedAddressScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/selectTenureScreenStyles.d.ts +0 -42
- package/lib/typescript/src/styles/screens/selectTenureScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/upiScreenStyles.d.ts +0 -168
- package/lib/typescript/src/styles/screens/upiScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/upiTimerScreenStyle.d.ts +0 -94
- package/lib/typescript/src/styles/screens/upiTimerScreenStyle.d.ts.map +0 -1
- package/lib/typescript/src/styles/screens/walletScreenStyles.d.ts +0 -96
- package/lib/typescript/src/styles/screens/walletScreenStyles.d.ts.map +0 -1
- package/lib/typescript/src/utility.d.ts +0 -59
- package/lib/typescript/src/utility.d.ts.map +0 -1
- package/src/components/addressCard.tsx +0 -219
- package/src/components/applyCouponCard.tsx +0 -197
- package/src/components/bankCard.tsx +0 -50
- package/src/components/cancelPaymentModal.tsx +0 -68
- package/src/components/checkboxContainer.tsx +0 -66
- package/src/components/circularProgress.tsx +0 -74
- package/src/components/cvvInfoBottomSheet.tsx +0 -58
- package/src/components/deleteAddressModal.tsx +0 -105
- package/src/components/fontFamily.tsx +0 -33
- package/src/components/getInstalledUPI.ts +0 -32
- package/src/components/header.tsx +0 -112
- package/src/components/imageLoader.tsx +0 -110
- package/src/components/knowMoreBottomSheet.tsx +0 -111
- package/src/components/morePaymentContainer.tsx +0 -66
- package/src/components/morePaymentMethods.tsx +0 -236
- package/src/components/offerCard.tsx +0 -173
- package/src/components/orderDetails.tsx +0 -503
- package/src/components/paymentFailed.tsx +0 -95
- package/src/components/paymentSelector.tsx +0 -186
- package/src/components/paymentSuccess.tsx +0 -266
- package/src/components/savedAddressBottomSheet.tsx +0 -123
- package/src/components/savedAddressCard.tsx +0 -113
- package/src/components/savedCardComponent.tsx +0 -271
- package/src/components/selectTenureCard.tsx +0 -475
- package/src/components/sessionExpire.tsx +0 -89
- package/src/components/shimmerView.tsx +0 -31
- package/src/navigation.tsx +0 -81
- package/src/postRequest/callUIAnalytics.ts +0 -36
- package/src/postRequest/cardPostRequest.ts +0 -57
- package/src/postRequest/deleteSavedAddress.ts +0 -20
- package/src/postRequest/emiPostRequest.ts +0 -77
- package/src/postRequest/fetchCardDetails.ts +0 -16
- package/src/postRequest/fetchInstantOffer.ts +0 -19
- package/src/postRequest/fetchPaymentMethods.ts +0 -14
- package/src/postRequest/fetchRecommendedInstruments.tsx +0 -17
- package/src/postRequest/fetchSavedAddress.ts +0 -16
- package/src/postRequest/fetchSessionDetails.tsx +0 -13
- package/src/postRequest/fetchStatus.tsx +0 -14
- package/src/postRequest/fetchSurcharge.ts +0 -23
- package/src/postRequest/methodsPostRequest.tsx +0 -41
- package/src/postRequest/upiPostRequest.tsx +0 -37
- package/src/screens/addressScreen.tsx +0 -887
- package/src/screens/bnplScreen.tsx +0 -309
- package/src/screens/cardScreen.tsx +0 -1114
- package/src/screens/emiScreen.tsx +0 -856
- package/src/screens/instantOfferList.tsx +0 -180
- package/src/screens/mainScreen.tsx +0 -1022
- package/src/screens/netBankingScreen.tsx +0 -460
- package/src/screens/savedAddressScreen.tsx +0 -294
- package/src/screens/selectTenureScreen.tsx +0 -137
- package/src/screens/upiScreen.tsx +0 -658
- package/src/screens/upiTimerScreen.tsx +0 -263
- package/src/screens/walletScreen.tsx +0 -401
- package/src/screens/webViewScreen.tsx +0 -90
- package/src/sdk-version.json +0 -1
- package/src/serviceRequest.ts +0 -27
- package/src/sharedContext/checkoutDetailsHandler.ts +0 -104
- package/src/sharedContext/handlePaymentResponseHandler.ts +0 -301
- package/src/sharedContext/paymentStatusHandler.ts +0 -12
- package/src/sharedContext/userdataHandler.ts +0 -55
- package/src/styles/components/addressCardStyles.ts +0 -55
- package/src/styles/components/bankCardStyles.ts +0 -58
- package/src/styles/components/cancelPaymentModalStyles.ts +0 -82
- package/src/styles/components/cvvInfoBottomSheetStyles.ts +0 -49
- package/src/styles/components/savedAddressCardStyles.ts +0 -60
- package/src/styles/indexStyles.ts +0 -60
- package/src/styles/screens/addressScreenStyles..ts +0 -60
- package/src/styles/screens/bnplScreenStyles.ts +0 -78
- package/src/styles/screens/cardScreenStyles.ts +0 -153
- package/src/styles/screens/emiScreenStyles.ts +0 -112
- package/src/styles/screens/instantOfferScreenStyles.ts +0 -43
- package/src/styles/screens/netBankingScreenStyles.ts +0 -84
- package/src/styles/screens/savedAddressScreenStyles.ts +0 -49
- package/src/styles/screens/selectTenureScreenStyles.ts +0 -37
- package/src/styles/screens/upiScreenStyles.ts +0 -167
- package/src/styles/screens/upiTimerScreenStyle.ts +0 -91
- package/src/styles/screens/walletScreenStyles.ts +0 -96
- package/src/utility.ts +0 -201
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
import { View, Text, Image, Pressable, ScrollView } from 'react-native';
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { SvgUri } from 'react-native-svg';
|
|
4
|
-
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
5
|
-
|
|
6
|
-
export interface OrderDetailsProps {
|
|
7
|
-
totalAmount: string;
|
|
8
|
-
itemsArray: ItemsProp[];
|
|
9
|
-
subTotalAmount: string;
|
|
10
|
-
shippingAmount: string;
|
|
11
|
-
taxAmount: string;
|
|
12
|
-
surchargeDetails : SurchargeProp[],
|
|
13
|
-
selectedPaymentMethod : string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ItemsProp {
|
|
17
|
-
imageUrl: string;
|
|
18
|
-
imageTitle: string;
|
|
19
|
-
imageOty: number;
|
|
20
|
-
imageAmount: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface SurchargeProp {
|
|
24
|
-
title : string,
|
|
25
|
-
amount : number,
|
|
26
|
-
applicable : string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const OrderDetails = ({
|
|
30
|
-
totalAmount,
|
|
31
|
-
itemsArray,
|
|
32
|
-
subTotalAmount,
|
|
33
|
-
shippingAmount,
|
|
34
|
-
taxAmount,
|
|
35
|
-
surchargeDetails,
|
|
36
|
-
selectedPaymentMethod
|
|
37
|
-
}: OrderDetailsProps) => {
|
|
38
|
-
const [isExpanded, setIsExpanded] = useState(false);
|
|
39
|
-
const { checkoutDetails } = checkoutDetailsHandler;
|
|
40
|
-
const itemHeight = 70; // Approximate height of each row
|
|
41
|
-
const maxVisibleItems = 3;
|
|
42
|
-
const scrollHeight =
|
|
43
|
-
Math.min(itemsArray.length, maxVisibleItems) * itemHeight;
|
|
44
|
-
|
|
45
|
-
const MyImage = ({ uri }: { uri: string }) => {
|
|
46
|
-
const isSvg = uri?.endsWith('.svg');
|
|
47
|
-
|
|
48
|
-
return isSvg ? (
|
|
49
|
-
<View
|
|
50
|
-
style={{
|
|
51
|
-
width: 44,
|
|
52
|
-
height: 44,
|
|
53
|
-
justifyContent: 'center',
|
|
54
|
-
alignItems: 'center',
|
|
55
|
-
}}
|
|
56
|
-
>
|
|
57
|
-
<SvgUri
|
|
58
|
-
uri={uri}
|
|
59
|
-
width={100} // Keep original size
|
|
60
|
-
height={100}
|
|
61
|
-
style={{ transform: [{ scale: 0.4 }] }}
|
|
62
|
-
/>
|
|
63
|
-
</View>
|
|
64
|
-
) : (
|
|
65
|
-
<Image
|
|
66
|
-
source={{ uri }}
|
|
67
|
-
style={{ width: 44, height: 44 }}
|
|
68
|
-
resizeMode="contain"
|
|
69
|
-
/>
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
return (
|
|
74
|
-
<View>
|
|
75
|
-
{isExpanded ? (
|
|
76
|
-
<View
|
|
77
|
-
style={{
|
|
78
|
-
borderColor: '#F1F1F1',
|
|
79
|
-
borderWidth: 1,
|
|
80
|
-
marginHorizontal: 16,
|
|
81
|
-
marginVertical: 8,
|
|
82
|
-
paddingVertical: 16,
|
|
83
|
-
backgroundColor: 'white',
|
|
84
|
-
borderRadius: 12,
|
|
85
|
-
}}
|
|
86
|
-
>
|
|
87
|
-
<Pressable onPress={() => setIsExpanded(false)}>
|
|
88
|
-
<View
|
|
89
|
-
style={{
|
|
90
|
-
flexDirection: 'row',
|
|
91
|
-
justifyContent: 'space-between',
|
|
92
|
-
alignItems: 'center',
|
|
93
|
-
paddingHorizontal: 12,
|
|
94
|
-
}}
|
|
95
|
-
>
|
|
96
|
-
<Text
|
|
97
|
-
style={{
|
|
98
|
-
fontSize: 14,
|
|
99
|
-
color: '#363840',
|
|
100
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
101
|
-
}}
|
|
102
|
-
>
|
|
103
|
-
Price Details
|
|
104
|
-
</Text>
|
|
105
|
-
<Image
|
|
106
|
-
source={require('../../assets/images/chervon-down.png')}
|
|
107
|
-
style={{
|
|
108
|
-
height: 6,
|
|
109
|
-
width: 14,
|
|
110
|
-
marginHorizontal: 6, // Space between price and arrow
|
|
111
|
-
alignSelf: 'center',
|
|
112
|
-
transform: [
|
|
113
|
-
{
|
|
114
|
-
rotate: '180deg',
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
}}
|
|
118
|
-
/>
|
|
119
|
-
</View>
|
|
120
|
-
</Pressable>
|
|
121
|
-
<View
|
|
122
|
-
style={{ height: scrollHeight, overflow: 'hidden', marginTop: 12 }}
|
|
123
|
-
>
|
|
124
|
-
<ScrollView
|
|
125
|
-
nestedScrollEnabled={true}
|
|
126
|
-
showsVerticalScrollIndicator={true}
|
|
127
|
-
style={{ paddingHorizontal: 12 }}
|
|
128
|
-
>
|
|
129
|
-
{itemsArray.map((item, index) => (
|
|
130
|
-
<View
|
|
131
|
-
key={index}
|
|
132
|
-
style={{
|
|
133
|
-
flexDirection: 'row',
|
|
134
|
-
marginBottom: 8,
|
|
135
|
-
alignItems: 'flex-start',
|
|
136
|
-
}}
|
|
137
|
-
>
|
|
138
|
-
{/* Image */}
|
|
139
|
-
{item.imageUrl !== '' && (
|
|
140
|
-
<View
|
|
141
|
-
style={{
|
|
142
|
-
borderColor: '#DCDEE3',
|
|
143
|
-
borderWidth: 1,
|
|
144
|
-
borderRadius: 8,
|
|
145
|
-
width: 54,
|
|
146
|
-
height: 54,
|
|
147
|
-
padding: 4,
|
|
148
|
-
}}
|
|
149
|
-
>
|
|
150
|
-
<MyImage uri={item.imageUrl} />
|
|
151
|
-
</View>
|
|
152
|
-
)}
|
|
153
|
-
|
|
154
|
-
{/* Title & Quantity - Stays attached to the image */}
|
|
155
|
-
<View
|
|
156
|
-
style={{ flexGrow: 1, flexShrink: 1, paddingHorizontal: 8 }}
|
|
157
|
-
>
|
|
158
|
-
<Text
|
|
159
|
-
style={{
|
|
160
|
-
fontFamily: checkoutDetails.fontFamily.regular,
|
|
161
|
-
fontSize: 12,
|
|
162
|
-
color: '#2D2B32',
|
|
163
|
-
}}
|
|
164
|
-
numberOfLines={2}
|
|
165
|
-
ellipsizeMode={'tail'}
|
|
166
|
-
>
|
|
167
|
-
{item.imageTitle}
|
|
168
|
-
</Text>
|
|
169
|
-
<Text
|
|
170
|
-
style={{
|
|
171
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
172
|
-
fontSize: 12,
|
|
173
|
-
color: '#2D2B32',
|
|
174
|
-
}}
|
|
175
|
-
>
|
|
176
|
-
Qty: {item.imageOty}
|
|
177
|
-
</Text>
|
|
178
|
-
</View>
|
|
179
|
-
|
|
180
|
-
{/* Amount - Stays at the right */}
|
|
181
|
-
<View style={{ alignSelf: 'flex-start' }}>
|
|
182
|
-
<Text
|
|
183
|
-
style={{
|
|
184
|
-
fontFamily: checkoutDetails.fontFamily.regular,
|
|
185
|
-
fontSize: 12,
|
|
186
|
-
color: '#2D2B32',
|
|
187
|
-
textAlign: 'right',
|
|
188
|
-
}}
|
|
189
|
-
>
|
|
190
|
-
<Text
|
|
191
|
-
style={{
|
|
192
|
-
fontFamily: 'Inter-Regular',
|
|
193
|
-
fontSize: 12,
|
|
194
|
-
color: '#2D2B32',
|
|
195
|
-
}}
|
|
196
|
-
>
|
|
197
|
-
{' '}
|
|
198
|
-
{checkoutDetails.currencySymbol}
|
|
199
|
-
</Text>
|
|
200
|
-
{item.imageAmount}
|
|
201
|
-
</Text>
|
|
202
|
-
</View>
|
|
203
|
-
</View>
|
|
204
|
-
))}
|
|
205
|
-
</ScrollView>
|
|
206
|
-
</View>
|
|
207
|
-
|
|
208
|
-
{(subTotalAmount !== '' ||
|
|
209
|
-
taxAmount !== '' ||
|
|
210
|
-
shippingAmount !== '') && (
|
|
211
|
-
<View
|
|
212
|
-
style={{
|
|
213
|
-
borderBottomWidth: 1.5, // Thickness of the line
|
|
214
|
-
borderBottomColor: '#E6E6E6', // Color of the line
|
|
215
|
-
borderStyle: 'dashed', // Makes it dashed
|
|
216
|
-
width: '100%', // Full width
|
|
217
|
-
marginVertical: 10,
|
|
218
|
-
marginTop: 4,
|
|
219
|
-
}}
|
|
220
|
-
/>
|
|
221
|
-
)}
|
|
222
|
-
|
|
223
|
-
{subTotalAmount !== '' && (
|
|
224
|
-
<View
|
|
225
|
-
style={{
|
|
226
|
-
flexDirection: 'row',
|
|
227
|
-
justifyContent: 'space-between',
|
|
228
|
-
alignItems: 'center',
|
|
229
|
-
marginBottom: 8,
|
|
230
|
-
paddingHorizontal: 12,
|
|
231
|
-
}}
|
|
232
|
-
>
|
|
233
|
-
<Text
|
|
234
|
-
style={{
|
|
235
|
-
fontFamily: checkoutDetails.fontFamily.regular,
|
|
236
|
-
fontSize: 14,
|
|
237
|
-
color: '#2D2B32',
|
|
238
|
-
}}
|
|
239
|
-
>
|
|
240
|
-
Subtotal
|
|
241
|
-
</Text>
|
|
242
|
-
<Text
|
|
243
|
-
style={{
|
|
244
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
245
|
-
fontSize: 14,
|
|
246
|
-
color: '#2D2B32',
|
|
247
|
-
}}
|
|
248
|
-
>
|
|
249
|
-
<Text
|
|
250
|
-
style={{
|
|
251
|
-
fontFamily: 'Inter-SemiBold',
|
|
252
|
-
fontSize: 14,
|
|
253
|
-
color: '#2D2B32',
|
|
254
|
-
}}
|
|
255
|
-
>
|
|
256
|
-
{' '}
|
|
257
|
-
{checkoutDetails.currencySymbol}
|
|
258
|
-
</Text>
|
|
259
|
-
{subTotalAmount}
|
|
260
|
-
</Text>
|
|
261
|
-
</View>
|
|
262
|
-
)}
|
|
263
|
-
{taxAmount !== '' && (
|
|
264
|
-
<View
|
|
265
|
-
style={{
|
|
266
|
-
flexDirection: 'row',
|
|
267
|
-
justifyContent: 'space-between',
|
|
268
|
-
alignItems: 'center',
|
|
269
|
-
marginBottom: 8,
|
|
270
|
-
paddingHorizontal: 12,
|
|
271
|
-
}}
|
|
272
|
-
>
|
|
273
|
-
<Text
|
|
274
|
-
style={{
|
|
275
|
-
fontFamily: checkoutDetails.fontFamily.regular,
|
|
276
|
-
fontSize: 14,
|
|
277
|
-
color: '#2D2B32',
|
|
278
|
-
}}
|
|
279
|
-
>
|
|
280
|
-
Tax
|
|
281
|
-
</Text>
|
|
282
|
-
<Text
|
|
283
|
-
style={{
|
|
284
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
285
|
-
fontSize: 14,
|
|
286
|
-
color: '#2D2B32',
|
|
287
|
-
}}
|
|
288
|
-
>
|
|
289
|
-
<Text
|
|
290
|
-
style={{
|
|
291
|
-
fontFamily: 'Inter-SemiBold',
|
|
292
|
-
fontSize: 14,
|
|
293
|
-
color: '#2D2B32',
|
|
294
|
-
}}
|
|
295
|
-
>
|
|
296
|
-
{' '}
|
|
297
|
-
{checkoutDetails.currencySymbol}
|
|
298
|
-
</Text>
|
|
299
|
-
{taxAmount}
|
|
300
|
-
</Text>
|
|
301
|
-
</View>
|
|
302
|
-
)}
|
|
303
|
-
{shippingAmount !== '' && (
|
|
304
|
-
<View
|
|
305
|
-
style={{
|
|
306
|
-
flexDirection: 'row',
|
|
307
|
-
justifyContent: 'space-between',
|
|
308
|
-
alignItems: 'center',
|
|
309
|
-
marginBottom: 8,
|
|
310
|
-
paddingHorizontal: 12,
|
|
311
|
-
}}
|
|
312
|
-
>
|
|
313
|
-
<Text
|
|
314
|
-
style={{
|
|
315
|
-
fontFamily: checkoutDetails.fontFamily.regular,
|
|
316
|
-
fontSize: 14,
|
|
317
|
-
color: '#2D2B32',
|
|
318
|
-
}}
|
|
319
|
-
>
|
|
320
|
-
Shipping Amount
|
|
321
|
-
</Text>
|
|
322
|
-
<Text
|
|
323
|
-
style={{
|
|
324
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
325
|
-
fontSize: 14,
|
|
326
|
-
color: '#2D2B32',
|
|
327
|
-
}}
|
|
328
|
-
>
|
|
329
|
-
<Text
|
|
330
|
-
style={{
|
|
331
|
-
fontFamily: 'Inter-SemiBold',
|
|
332
|
-
fontSize: 14,
|
|
333
|
-
color: '#2D2B32',
|
|
334
|
-
}}
|
|
335
|
-
>
|
|
336
|
-
{checkoutDetails.currencySymbol}
|
|
337
|
-
</Text>
|
|
338
|
-
{shippingAmount}
|
|
339
|
-
</Text>
|
|
340
|
-
</View>
|
|
341
|
-
)}
|
|
342
|
-
{surchargeDetails.length != 0 && (
|
|
343
|
-
surchargeDetails
|
|
344
|
-
?.filter(item => {
|
|
345
|
-
const applicable = item?.applicable?.toLowerCase?.();
|
|
346
|
-
|
|
347
|
-
return (
|
|
348
|
-
!applicable || // handles "", null, undefined
|
|
349
|
-
applicable === selectedPaymentMethod?.toLowerCase?.()
|
|
350
|
-
);
|
|
351
|
-
})
|
|
352
|
-
.map((item, index) => (
|
|
353
|
-
<View
|
|
354
|
-
key={index}
|
|
355
|
-
style={{
|
|
356
|
-
flexDirection: 'row',
|
|
357
|
-
justifyContent: 'space-between',
|
|
358
|
-
alignItems: 'center',
|
|
359
|
-
marginBottom: 8,
|
|
360
|
-
paddingHorizontal: 12,
|
|
361
|
-
}}
|
|
362
|
-
>
|
|
363
|
-
<Text
|
|
364
|
-
style={{
|
|
365
|
-
fontFamily: checkoutDetails.fontFamily.regular,
|
|
366
|
-
fontSize: 14,
|
|
367
|
-
color: '#2D2B32',
|
|
368
|
-
}}
|
|
369
|
-
>
|
|
370
|
-
{item.title}
|
|
371
|
-
</Text>
|
|
372
|
-
<Text
|
|
373
|
-
style={{
|
|
374
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
375
|
-
fontSize: 14,
|
|
376
|
-
color: '#2D2B32',
|
|
377
|
-
}}
|
|
378
|
-
>
|
|
379
|
-
<Text
|
|
380
|
-
style={{
|
|
381
|
-
fontFamily: 'Inter-SemiBold',
|
|
382
|
-
fontSize: 14,
|
|
383
|
-
color: '#2D2B32',
|
|
384
|
-
}}
|
|
385
|
-
>
|
|
386
|
-
{checkoutDetails.currencySymbol}
|
|
387
|
-
</Text>
|
|
388
|
-
{item.amount.toLocaleString()}
|
|
389
|
-
</Text>
|
|
390
|
-
</View>
|
|
391
|
-
))
|
|
392
|
-
)}
|
|
393
|
-
<View
|
|
394
|
-
style={{
|
|
395
|
-
flexDirection: 'row',
|
|
396
|
-
justifyContent: 'space-between',
|
|
397
|
-
alignItems: 'center',
|
|
398
|
-
backgroundColor: '#F1F1F1',
|
|
399
|
-
paddingHorizontal: 8,
|
|
400
|
-
paddingVertical: 12,
|
|
401
|
-
borderRadius: 8,
|
|
402
|
-
marginHorizontal: 12,
|
|
403
|
-
}}
|
|
404
|
-
>
|
|
405
|
-
<Text
|
|
406
|
-
style={{
|
|
407
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
408
|
-
fontSize: 16,
|
|
409
|
-
color: '#1D1C20',
|
|
410
|
-
}}
|
|
411
|
-
>
|
|
412
|
-
Total
|
|
413
|
-
</Text>
|
|
414
|
-
<Text
|
|
415
|
-
style={{
|
|
416
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
417
|
-
fontSize: 16,
|
|
418
|
-
color: '#1D1C20',
|
|
419
|
-
}}
|
|
420
|
-
>
|
|
421
|
-
<Text
|
|
422
|
-
style={{
|
|
423
|
-
fontFamily: 'Inter-SemiBold',
|
|
424
|
-
fontSize: 16,
|
|
425
|
-
color: '#1D1C20',
|
|
426
|
-
}}
|
|
427
|
-
>
|
|
428
|
-
{' '}
|
|
429
|
-
{checkoutDetails.currencySymbol}
|
|
430
|
-
</Text>
|
|
431
|
-
{totalAmount}
|
|
432
|
-
</Text>
|
|
433
|
-
</View>
|
|
434
|
-
</View>
|
|
435
|
-
) : (
|
|
436
|
-
<Pressable onPress={() => setIsExpanded(true)}>
|
|
437
|
-
<View
|
|
438
|
-
style={{
|
|
439
|
-
borderColor: '#F1F1F1',
|
|
440
|
-
borderWidth: 1,
|
|
441
|
-
marginHorizontal: 16,
|
|
442
|
-
marginVertical: 8,
|
|
443
|
-
paddingVertical: 16,
|
|
444
|
-
paddingHorizontal: 12,
|
|
445
|
-
backgroundColor: 'white',
|
|
446
|
-
flexDirection: 'row',
|
|
447
|
-
borderRadius: 12,
|
|
448
|
-
justifyContent: 'space-between',
|
|
449
|
-
alignItems: 'center', // Ensures vertical alignment
|
|
450
|
-
}}
|
|
451
|
-
>
|
|
452
|
-
{/* Price Details Text */}
|
|
453
|
-
<Text
|
|
454
|
-
style={{
|
|
455
|
-
fontSize: 14,
|
|
456
|
-
color: '#363840',
|
|
457
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
458
|
-
}}
|
|
459
|
-
>
|
|
460
|
-
Price Details
|
|
461
|
-
</Text>
|
|
462
|
-
|
|
463
|
-
{/* Wrap Price and Arrow in a Row */}
|
|
464
|
-
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
465
|
-
<Text
|
|
466
|
-
style={{
|
|
467
|
-
fontSize: 14,
|
|
468
|
-
color: '#363840',
|
|
469
|
-
fontFamily: checkoutDetails.fontFamily.semiBold,
|
|
470
|
-
}}
|
|
471
|
-
>
|
|
472
|
-
<Text
|
|
473
|
-
style={{
|
|
474
|
-
fontSize: 14,
|
|
475
|
-
color: '#363840',
|
|
476
|
-
fontFamily: 'Inter-SemiBold',
|
|
477
|
-
}}
|
|
478
|
-
>
|
|
479
|
-
{checkoutDetails.currencySymbol}
|
|
480
|
-
</Text>
|
|
481
|
-
{totalAmount}
|
|
482
|
-
</Text>
|
|
483
|
-
|
|
484
|
-
{/* Arrow Icon */}
|
|
485
|
-
|
|
486
|
-
<Image
|
|
487
|
-
source={require('../../assets/images/chervon-down.png')}
|
|
488
|
-
style={{
|
|
489
|
-
height: 6,
|
|
490
|
-
width: 14,
|
|
491
|
-
marginHorizontal: 6, // Space between price and arrow
|
|
492
|
-
alignSelf: 'center',
|
|
493
|
-
}}
|
|
494
|
-
/>
|
|
495
|
-
</View>
|
|
496
|
-
</View>
|
|
497
|
-
</Pressable>
|
|
498
|
-
)}
|
|
499
|
-
</View>
|
|
500
|
-
);
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
export default OrderDetails;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { View, Text, StyleSheet, Pressable } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Modal from 'react-native-modal';
|
|
4
|
-
import LottieView from 'lottie-react-native';
|
|
5
|
-
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
6
|
-
import callUIAnalytics from '../postRequest/callUIAnalytics';
|
|
7
|
-
import { AnalyticsEvents } from '../interface';
|
|
8
|
-
|
|
9
|
-
interface PaymentFailedProps {
|
|
10
|
-
onClick: () => void;
|
|
11
|
-
errorMessage: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const PaymentFailed: React.FC<PaymentFailedProps> = ({
|
|
15
|
-
onClick,
|
|
16
|
-
errorMessage,
|
|
17
|
-
}) => {
|
|
18
|
-
const { checkoutDetails } = checkoutDetailsHandler;
|
|
19
|
-
return (
|
|
20
|
-
<View>
|
|
21
|
-
<Modal isVisible={true} style={styles.modal}>
|
|
22
|
-
<View style={styles.sheet}>
|
|
23
|
-
<LottieView
|
|
24
|
-
source={require('../../assets/animations/payment_failed.json')}
|
|
25
|
-
autoPlay
|
|
26
|
-
loop={false}
|
|
27
|
-
style={{ width: 90, height: 90, alignSelf: 'center' }}
|
|
28
|
-
/>
|
|
29
|
-
<Text style={[styles.successfulHeading, {fontFamily: checkoutDetails.fontFamily.semiBold,}]}>Payment Failed</Text>
|
|
30
|
-
<Text
|
|
31
|
-
style={{
|
|
32
|
-
fontSize: 14,
|
|
33
|
-
fontFamily: checkoutDetails.fontFamily.regular,
|
|
34
|
-
color: '#000000D9',
|
|
35
|
-
textAlign: 'center',
|
|
36
|
-
alignSelf: 'center',
|
|
37
|
-
paddingTop: 8,
|
|
38
|
-
paddingBottom: 16,
|
|
39
|
-
lineHeight: 20,
|
|
40
|
-
}}
|
|
41
|
-
>
|
|
42
|
-
{errorMessage}
|
|
43
|
-
</Text>
|
|
44
|
-
<Pressable
|
|
45
|
-
style={[
|
|
46
|
-
styles.buttonContainer,
|
|
47
|
-
{ backgroundColor: checkoutDetails.buttonColor, borderRadius: checkoutDetails.ctaBorderRadius, },
|
|
48
|
-
]}
|
|
49
|
-
onPress={()=> {
|
|
50
|
-
callUIAnalytics(AnalyticsEvents.PAYMENT_RESULT_SCREEN_DISPLAYED, "Payment Failed Screen button clicked", errorMessage)
|
|
51
|
-
onClick()
|
|
52
|
-
}}
|
|
53
|
-
>
|
|
54
|
-
<Text style={styles.buttonText}>Retry Payment</Text>
|
|
55
|
-
</Pressable>
|
|
56
|
-
{/* <Pressable style={[styles.buttonContainer, {backgroundColor:'white', borderColor:'#1CA672', borderWidth:1}]} onPress={onClick}>
|
|
57
|
-
<Text style={[styles.buttonText, {color:'#1CA672'}]}>Return to Payment Options</Text>
|
|
58
|
-
</Pressable> */}
|
|
59
|
-
</View>
|
|
60
|
-
</Modal>
|
|
61
|
-
</View>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export default PaymentFailed;
|
|
66
|
-
|
|
67
|
-
const styles = StyleSheet.create({
|
|
68
|
-
modal: {
|
|
69
|
-
justifyContent: 'flex-end',
|
|
70
|
-
margin: 0,
|
|
71
|
-
},
|
|
72
|
-
sheet: {
|
|
73
|
-
backgroundColor: 'white',
|
|
74
|
-
padding: 20,
|
|
75
|
-
borderTopLeftRadius: 20,
|
|
76
|
-
borderTopRightRadius: 20,
|
|
77
|
-
},
|
|
78
|
-
successfulHeading: {
|
|
79
|
-
color: '#E84142',
|
|
80
|
-
fontSize: 20,
|
|
81
|
-
alignSelf: 'center',
|
|
82
|
-
paddingTop: 8,
|
|
83
|
-
},
|
|
84
|
-
buttonContainer: {
|
|
85
|
-
flexDirection: 'row',
|
|
86
|
-
justifyContent: 'center',
|
|
87
|
-
marginTop: 12,
|
|
88
|
-
backgroundColor: '#1CA672',
|
|
89
|
-
},
|
|
90
|
-
buttonText: {
|
|
91
|
-
color: 'white',
|
|
92
|
-
fontSize: 16,
|
|
93
|
-
paddingVertical: 12,
|
|
94
|
-
},
|
|
95
|
-
});
|