boxpay-checkout-reactnative-sdk 1.0.1-beta21 → 1.0.2-beta2
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/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/results.bin +1 -0
- package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactnativemodule/BuildConfig.dex +0 -0
- package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactnativemodule/CrossPlatform.dex +0 -0
- package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactnativemodule/ReactNativeModulePackage.dex +0 -0
- package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/51980e128be56b1f092a2125129bbdd8/results.bin +1 -0
- package/android/build/.transforms/51980e128be56b1f092a2125129bbdd8/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/reactnativemodule/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +13 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/boxpay-checkout-reactnative-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativemodule/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +20 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +13 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/boxpay-checkout-reactnative-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactnativemodule/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactnativemodule/CrossPlatform.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactnativemodule/ReactNativeModulePackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +30 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/boxpay-checkout-reactnative-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativemodule/CrossPlatform.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativemodule/ReactNativeModulePackage.class +0 -0
- package/lib/module/interface.js.map +1 -1
- package/lib/module/postRequest/fetchCardDetails.js +1 -1
- package/lib/module/postRequest/fetchCardDetails.js.map +1 -1
- package/lib/module/screens/bnplScreen.js +4 -3
- package/lib/module/screens/bnplScreen.js.map +1 -1
- package/lib/module/screens/cardScreen.js +2 -1
- package/lib/module/screens/cardScreen.js.map +1 -1
- package/lib/module/screens/emiScreen.js +2 -1
- package/lib/module/screens/emiScreen.js.map +1 -1
- package/lib/module/screens/mainScreen.js +11 -5
- package/lib/module/screens/mainScreen.js.map +1 -1
- package/lib/module/screens/netBankingScreen.js +4 -3
- package/lib/module/screens/netBankingScreen.js.map +1 -1
- package/lib/module/screens/upiScreen.js +3 -2
- package/lib/module/screens/upiScreen.js.map +1 -1
- package/lib/module/screens/upiTimerScreen.js +2 -1
- package/lib/module/screens/upiTimerScreen.js.map +1 -1
- package/lib/module/screens/walletScreen.js +4 -3
- package/lib/module/screens/walletScreen.js.map +1 -1
- package/lib/module/sdk-version.json +1 -1
- package/lib/module/sharedContext/handlePaymentResponseHandler.js +11 -1
- package/lib/module/sharedContext/handlePaymentResponseHandler.js.map +1 -1
- package/lib/module/utility.js +2 -2
- package/lib/module/utility.js.map +1 -1
- package/lib/typescript/src/interface.d.ts +1 -0
- package/lib/typescript/src/interface.d.ts.map +1 -1
- package/lib/typescript/src/screens/bnplScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/cardScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/emiScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/mainScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/netBankingScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/upiTimerScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/walletScreen.d.ts.map +1 -1
- package/lib/typescript/src/sharedContext/handlePaymentResponseHandler.d.ts +1 -1
- package/lib/typescript/src/sharedContext/handlePaymentResponseHandler.d.ts.map +1 -1
- package/lib/typescript/src/utility.d.ts +2 -2
- package/package.json +3 -2
- package/src/interface.ts +1 -0
- package/src/postRequest/fetchCardDetails.ts +1 -1
- package/src/screens/bnplScreen.tsx +4 -3
- package/src/screens/cardScreen.tsx +2 -1
- package/src/screens/emiScreen.tsx +2 -1
- package/src/screens/mainScreen.tsx +21 -7
- package/src/screens/netBankingScreen.tsx +4 -3
- package/src/screens/upiScreen.tsx +2 -2
- package/src/screens/upiTimerScreen.tsx +2 -1
- package/src/screens/walletScreen.tsx +4 -3
- package/src/sdk-version.json +1 -1
- package/src/sharedContext/handlePaymentResponseHandler.ts +18 -2
- package/src/utility.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HandleFetchStatusOptions, type HandlePaymentOptions, type PaymentClass } from "../interface";
|
|
2
2
|
export declare function handlePaymentResponse({ response, upiId, checkoutDetailsErrorMessage, onSetStatus, onSetTransactionId, onSetPaymentUrl, onSetPaymentHtml, onSetFailedMessage, onShowFailedModal, onShowSuccessModal, onShowSessionExpiredModal, onNavigateToTimer, onOpenQr, onOpenUpiIntent, setLoading }: HandlePaymentOptions): void;
|
|
3
|
-
export declare function handleFetchStatusResponseHandler({ response, checkoutDetailsErrorMessage, onSetStatus, onSetTransactionId, onSetFailedMessage, onShowFailedModal, onShowSuccessModal, onShowSessionExpiredModal, setLoading, stopBackgroundApiTask }: HandleFetchStatusOptions): void;
|
|
3
|
+
export declare function handleFetchStatusResponseHandler({ response, checkoutDetailsErrorMessage, onSetStatus, onSetTransactionId, onSetFailedMessage, onShowFailedModal, onShowSuccessModal, onShowSessionExpiredModal, setLoading, stopBackgroundApiTask, isFromUPIIntentFlow }: HandleFetchStatusOptions): void;
|
|
4
4
|
interface fetchPaymentMethodHandlerArgs {
|
|
5
5
|
paymentType: string;
|
|
6
6
|
setList: (list: PaymentClass[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlePaymentResponseHandler.d.ts","sourceRoot":"","sources":["../../../../src/sharedContext/handlePaymentResponseHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAA6D,MAAM,cAAc,CAAC;AAMtK,wBAAgB,qBAAqB,CAAC,EAClC,QAAQ,EACR,KAAK,EACL,2BAA2B,EAC3B,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,QAAQ,EACR,eAAe,EACf,UAAU,EACX,EAAE,oBAAoB,QA4GxB;AAED,wBAAgB,gCAAgC,CAAC,EAC7C,QAAQ,EACR,2BAA2B,EAC3B,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,UAAU,EACV,qBAAqB,
|
|
1
|
+
{"version":3,"file":"handlePaymentResponseHandler.d.ts","sourceRoot":"","sources":["../../../../src/sharedContext/handlePaymentResponseHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAA6D,MAAM,cAAc,CAAC;AAMtK,wBAAgB,qBAAqB,CAAC,EAClC,QAAQ,EACR,KAAK,EACL,2BAA2B,EAC3B,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,QAAQ,EACR,eAAe,EACf,UAAU,EACX,EAAE,oBAAoB,QA4GxB;AAED,wBAAgB,gCAAgC,CAAC,EAC7C,QAAQ,EACR,2BAA2B,EAC3B,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACtB,EAAG,wBAAwB,QA2E3B;AAED,UAAU,6BAA6B;IACnC,WAAW,EAAG,MAAM,CAAC;IACrB,OAAO,EAAG,CAAC,IAAI,EAAC,YAAY,EAAE,KAAK,IAAI,CAAA;CAC1C;AAED,wBAAsB,yBAAyB,CAAC,EAC5C,WAAW,EACX,OAAO,EACV,EAAC,6BAA6B,iBAsB9B;AAED,UAAU,yBAAyB;IAC/B,kBAAkB,EAAG,CAAC,IAAI,EAAC,YAAY,EAAE,KAAK,IAAI,CAAC;IACnD,oBAAoB,EAAG,CAAC,IAAI,EAAG,YAAY,EAAE,KAAK,IAAI,CAAC;IACvD,qBAAqB,EAAG,CAAC,IAAI,EAAG,YAAY,EAAE,KAAK,IAAI,CAAA;CAC1D;AAGD,wBAAsB,4BAA4B,CAAC,EAAC,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAC,EAAG,yBAAyB,iBAwC/I"}
|
|
@@ -8,8 +8,8 @@ export declare function getDeviceDetails(): {
|
|
|
8
8
|
deviceBrandName: string;
|
|
9
9
|
};
|
|
10
10
|
export declare function getBrowserData(): {
|
|
11
|
-
screenHeight:
|
|
12
|
-
screenWidth:
|
|
11
|
+
screenHeight: string;
|
|
12
|
+
screenWidth: string;
|
|
13
13
|
acceptHeader: string;
|
|
14
14
|
userAgentHeader: string;
|
|
15
15
|
browserLanguage: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "boxpay-checkout-reactnative-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2-beta2",
|
|
4
4
|
"description": "Boxpay Payment Gateway",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"typecheck": "tsc",
|
|
33
33
|
"clean": "del-cli lib",
|
|
34
34
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
35
|
-
"
|
|
35
|
+
"build" : "bob build",
|
|
36
|
+
"prepare": "echo \"{ \\\"version\\\": \\\"$(node -p 'require(\"./package.json\").version')\\\" }\" > src/sdk-version.json && cp -r assets lib/assets",
|
|
36
37
|
"release": "release-it --only-version"
|
|
37
38
|
},
|
|
38
39
|
"keywords": [
|
package/src/interface.ts
CHANGED
|
@@ -6,7 +6,7 @@ const fetchCardDetails = async (
|
|
|
6
6
|
) : Promise<FetchCardDetailsResponse>=> {
|
|
7
7
|
const API_URL = `/bank-identification-numbers/${cardNumber}`;
|
|
8
8
|
try {
|
|
9
|
-
const response = await api.
|
|
9
|
+
const response = await api.post(API_URL);
|
|
10
10
|
return {apiStatus : APIStatus.Success, data : response.data}
|
|
11
11
|
} catch (error) {
|
|
12
12
|
return { apiStatus : APIStatus.Failed, data : {status: { reasonCode: 'API_FAILED', reason: `${error}` }} };
|
|
@@ -117,7 +117,8 @@ const BNPLScreen = ({ navigation }: Props) => {
|
|
|
117
117
|
setSessionExppireModalState(true)
|
|
118
118
|
},
|
|
119
119
|
setLoading: setLoading,
|
|
120
|
-
stopBackgroundApiTask: stopBackgroundApiTask
|
|
120
|
+
stopBackgroundApiTask: stopBackgroundApiTask,
|
|
121
|
+
isFromUPIIntentFlow : false
|
|
121
122
|
});
|
|
122
123
|
};
|
|
123
124
|
|
|
@@ -134,10 +135,10 @@ const BNPLScreen = ({ navigation }: Props) => {
|
|
|
134
135
|
};
|
|
135
136
|
|
|
136
137
|
useEffect(() => {
|
|
137
|
-
if (paymentUrl) {
|
|
138
|
+
if (paymentUrl || paymentHtml) {
|
|
138
139
|
setShowWebView(true);
|
|
139
140
|
}
|
|
140
|
-
}, [paymentUrl]);
|
|
141
|
+
}, [paymentUrl, paymentHtml]);
|
|
141
142
|
|
|
142
143
|
const onProceedForward = async (_: string, instrumentType: string) => {
|
|
143
144
|
setLoading(true);
|
|
@@ -476,7 +476,8 @@ const CardScreen = ({ route, navigation }: Props) => {
|
|
|
476
476
|
setSessionExppireModalState(true)
|
|
477
477
|
},
|
|
478
478
|
setLoading: setLoading,
|
|
479
|
-
stopBackgroundApiTask: stopBackgroundApiTask
|
|
479
|
+
stopBackgroundApiTask: stopBackgroundApiTask,
|
|
480
|
+
isFromUPIIntentFlow : false
|
|
480
481
|
});
|
|
481
482
|
};
|
|
482
483
|
|
|
@@ -221,7 +221,8 @@ const EmiScreen = ({ navigation }: Props) => {
|
|
|
221
221
|
setSessionExppireModalOpen(true)
|
|
222
222
|
},
|
|
223
223
|
setLoading: setLoading,
|
|
224
|
-
stopBackgroundApiTask: stopBackgroundApiTask
|
|
224
|
+
stopBackgroundApiTask: stopBackgroundApiTask,
|
|
225
|
+
isFromUPIIntentFlow : false
|
|
225
226
|
});
|
|
226
227
|
};
|
|
227
228
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { View, Text, BackHandler, AppState, Image, ScrollView, StatusBar, Alert } from 'react-native'; // Added ScrollView
|
|
2
|
+
import { View, Text, BackHandler, AppState, Image, ScrollView, StatusBar, Alert, type AppStateStatus } from 'react-native'; // Added ScrollView
|
|
3
3
|
import Header from '../components/header';
|
|
4
4
|
import upiPostRequest from '../postRequest/upiPostRequest';
|
|
5
5
|
import { decode as atob } from 'base-64';
|
|
@@ -217,22 +217,32 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
217
217
|
|
|
218
218
|
const openUPIIntent = async (url: string) => {
|
|
219
219
|
try {
|
|
220
|
-
|
|
220
|
+
appStateListenerRef.current?.remove?.();
|
|
221
221
|
appStateListenerRef.current = AppState.addEventListener(
|
|
222
|
-
|
|
222
|
+
"change",
|
|
223
223
|
handleAppStateChange
|
|
224
224
|
);
|
|
225
|
+
|
|
225
226
|
isUpiOpeningRef.current = true;
|
|
227
|
+
|
|
228
|
+
await Linking.openURL(url);
|
|
229
|
+
|
|
226
230
|
} catch (error) {
|
|
227
231
|
isUpiOpeningRef.current = false;
|
|
228
|
-
callUIAnalytics(
|
|
232
|
+
callUIAnalytics(
|
|
233
|
+
AnalyticsEvents.FAILED_TO_LAUNCH_UPI_INTENT,
|
|
234
|
+
"Index Screen open UPI Intent failed",
|
|
235
|
+
`${error}`
|
|
236
|
+
);
|
|
229
237
|
setFailedModalState(true);
|
|
230
238
|
setLoadingState(false);
|
|
231
239
|
}
|
|
232
240
|
};
|
|
233
241
|
|
|
234
|
-
const handleAppStateChange = () => {
|
|
235
|
-
|
|
242
|
+
const handleAppStateChange = (nextState: AppStateStatus) => {
|
|
243
|
+
console.log(nextState, isUpiOpeningRef.current);
|
|
244
|
+
|
|
245
|
+
if (nextState === "active" && isUpiOpeningRef.current) {
|
|
236
246
|
callFetchStatusApi();
|
|
237
247
|
}
|
|
238
248
|
};
|
|
@@ -245,6 +255,7 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
245
255
|
|
|
246
256
|
const callFetchStatusApi = async () => {
|
|
247
257
|
const response = await fetchStatus();
|
|
258
|
+
console.log(`${response} ===fetchs statur response`)
|
|
248
259
|
handleFetchStatusResponseHandler({
|
|
249
260
|
response: response,
|
|
250
261
|
checkoutDetailsErrorMessage: checkoutDetailsHandler.checkoutDetails.errorMessage,
|
|
@@ -257,7 +268,8 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
257
268
|
setSuccessModalState(true);
|
|
258
269
|
},
|
|
259
270
|
onShowSessionExpiredModal: () => setSessionExppireModalState(true),
|
|
260
|
-
setLoading: setLoadingState
|
|
271
|
+
setLoading: setLoadingState,
|
|
272
|
+
isFromUPIIntentFlow : isUpiOpeningRef.current
|
|
261
273
|
});
|
|
262
274
|
appStateListenerRef.current?.remove();
|
|
263
275
|
isUpiOpeningRef.current = false;
|
|
@@ -500,6 +512,8 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
500
512
|
});
|
|
501
513
|
if(shopperToken != null && shopperToken != "") {
|
|
502
514
|
getRecommendedInstruments()
|
|
515
|
+
} else {
|
|
516
|
+
setIsFirstLoading(false)
|
|
503
517
|
}
|
|
504
518
|
callUIAnalytics(AnalyticsEvents.CHECKOUT_LOADED,"Index Screen Session Loaded","")
|
|
505
519
|
break;
|
|
@@ -150,7 +150,8 @@ const NetBankingScreen = ({ navigation }: Props) => {
|
|
|
150
150
|
setSessionExppireModalState(true)
|
|
151
151
|
},
|
|
152
152
|
setLoading: setLoading,
|
|
153
|
-
stopBackgroundApiTask: stopBackgroundApiTask
|
|
153
|
+
stopBackgroundApiTask: stopBackgroundApiTask,
|
|
154
|
+
isFromUPIIntentFlow : false
|
|
154
155
|
});
|
|
155
156
|
};
|
|
156
157
|
|
|
@@ -167,10 +168,10 @@ const NetBankingScreen = ({ navigation }: Props) => {
|
|
|
167
168
|
};
|
|
168
169
|
|
|
169
170
|
useEffect(() => {
|
|
170
|
-
if (paymentUrl) {
|
|
171
|
+
if (paymentUrl || paymentHtml) {
|
|
171
172
|
setShowWebView(true);
|
|
172
173
|
}
|
|
173
|
-
}, [paymentUrl]);
|
|
174
|
+
}, [paymentUrl, paymentHtml]);
|
|
174
175
|
|
|
175
176
|
const onProceedForward = async (_: string, instrumentType: string) => {
|
|
176
177
|
setLoading(true);
|
|
@@ -387,7 +387,7 @@ const UpiScreen: React.FC<UpiScreenProps> = ({
|
|
|
387
387
|
onPress={() => handleUpiCollectChevronClick()}
|
|
388
388
|
>
|
|
389
389
|
{/* Icon and Text Wrapper */}
|
|
390
|
-
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
390
|
+
<View style={{ flexDirection: 'row', alignItems: 'center', paddingBottom : 16 }}>
|
|
391
391
|
<Image
|
|
392
392
|
source={require('../../assets/images/add_icon.png')}
|
|
393
393
|
style={[styles.imageStyle,{
|
|
@@ -420,7 +420,7 @@ const UpiScreen: React.FC<UpiScreenProps> = ({
|
|
|
420
420
|
)}
|
|
421
421
|
|
|
422
422
|
{upiCollectVisible && (
|
|
423
|
-
<View style={{ paddingBottom:
|
|
423
|
+
<View style={{ paddingBottom: 16 }}>
|
|
424
424
|
<TextInput
|
|
425
425
|
mode="outlined"
|
|
426
426
|
label={
|
|
@@ -140,7 +140,8 @@ const WalletScreen = ({ navigation }: Props) => {
|
|
|
140
140
|
setSessionExppireModalState(true)
|
|
141
141
|
},
|
|
142
142
|
setLoading: setLoading,
|
|
143
|
-
stopBackgroundApiTask: stopBackgroundApiTask
|
|
143
|
+
stopBackgroundApiTask: stopBackgroundApiTask,
|
|
144
|
+
isFromUPIIntentFlow : false
|
|
144
145
|
});
|
|
145
146
|
};
|
|
146
147
|
|
|
@@ -157,10 +158,10 @@ const WalletScreen = ({ navigation }: Props) => {
|
|
|
157
158
|
};
|
|
158
159
|
|
|
159
160
|
useEffect(() => {
|
|
160
|
-
if (paymentUrl) {
|
|
161
|
+
if (paymentUrl || paymentHtml) {
|
|
161
162
|
setShowWebView(true);
|
|
162
163
|
}
|
|
163
|
-
}, [paymentUrl]);
|
|
164
|
+
}, [paymentUrl, paymentHtml]);
|
|
164
165
|
|
|
165
166
|
const onProceedForward = async (_: string, instrumentType: string) => {
|
|
166
167
|
setLoading(true);
|
package/src/sdk-version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "1.0.
|
|
1
|
+
{ "version": "1.0.2-beta2" }
|
|
@@ -140,7 +140,8 @@ export function handleFetchStatusResponseHandler({
|
|
|
140
140
|
onShowSuccessModal,
|
|
141
141
|
onShowSessionExpiredModal,
|
|
142
142
|
setLoading,
|
|
143
|
-
stopBackgroundApiTask
|
|
143
|
+
stopBackgroundApiTask,
|
|
144
|
+
isFromUPIIntentFlow
|
|
144
145
|
} : HandleFetchStatusOptions) {
|
|
145
146
|
switch(response.apiStatus) {
|
|
146
147
|
case APIStatus.Success: {
|
|
@@ -189,8 +190,23 @@ export function handleFetchStatusResponseHandler({
|
|
|
189
190
|
|
|
190
191
|
default:
|
|
191
192
|
{
|
|
193
|
+
if(isFromUPIIntentFlow) {
|
|
194
|
+
const fallback = checkoutDetailsErrorMessage;
|
|
195
|
+
const errorMessage =
|
|
196
|
+
reasonCode?.startsWith('UF')
|
|
197
|
+
? reason?.includes(':')
|
|
198
|
+
? reason.split(':')[1]?.trim() ?? fallback
|
|
199
|
+
: reason ?? fallback
|
|
200
|
+
: fallback;
|
|
201
|
+
|
|
202
|
+
onSetFailedMessage(errorMessage);
|
|
203
|
+
onSetStatus(TransactionStatus.Failed);
|
|
204
|
+
onShowFailedModal();
|
|
205
|
+
stopBackgroundApiTask?.();
|
|
206
|
+
setLoading?.(false);
|
|
207
|
+
}
|
|
192
208
|
break;
|
|
193
|
-
|
|
209
|
+
}
|
|
194
210
|
}
|
|
195
211
|
}
|
|
196
212
|
break;
|
package/src/utility.ts
CHANGED
|
@@ -36,8 +36,8 @@ export function getDeviceDetails() {
|
|
|
36
36
|
|
|
37
37
|
export function getBrowserData() {
|
|
38
38
|
return {
|
|
39
|
-
screenHeight: height,
|
|
40
|
-
screenWidth: width,
|
|
39
|
+
screenHeight: Math.trunc(height).toString(),
|
|
40
|
+
screenWidth: Math.trunc(width).toString(),
|
|
41
41
|
acceptHeader: 'application/json',
|
|
42
42
|
userAgentHeader: 'Expo App',
|
|
43
43
|
browserLanguage: 'en_US',
|