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.
Files changed (169) hide show
  1. package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/results.bin +1 -0
  2. package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactnativemodule/BuildConfig.dex +0 -0
  3. package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactnativemodule/CrossPlatform.dex +0 -0
  4. package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/reactnativemodule/ReactNativeModulePackage.dex +0 -0
  5. package/android/build/.transforms/12e42e27ef76bd16cfb008411805adb5/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  6. package/android/build/.transforms/51980e128be56b1f092a2125129bbdd8/results.bin +1 -0
  7. package/android/build/.transforms/51980e128be56b1f092a2125129bbdd8/transformed/classes/classes_dex/classes.dex +0 -0
  8. package/android/build/generated/source/buildConfig/debug/com/reactnativemodule/BuildConfig.java +10 -0
  9. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +13 -0
  10. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  11. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  12. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  13. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  14. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  15. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  16. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  17. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  18. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  19. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  20. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  21. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/boxpay-checkout-reactnative-sdk_debug.kotlin_module +0 -0
  22. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativemodule/BuildConfig.class +0 -0
  23. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
  24. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +20 -0
  25. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +13 -0
  26. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  27. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  28. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/boxpay-checkout-reactnative-sdk_debug.kotlin_module +0 -0
  29. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactnativemodule/BuildConfig.class +0 -0
  30. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactnativemodule/CrossPlatform.class +0 -0
  31. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/reactnativemodule/ReactNativeModulePackage.class +0 -0
  32. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  33. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
  34. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  35. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  36. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  37. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  38. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  39. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  46. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  47. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  48. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  115. package/android/build/outputs/logs/manifest-merger-debug-report.txt +30 -0
  116. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  117. package/android/build/tmp/kotlin-classes/debug/META-INF/boxpay-checkout-reactnative-sdk_debug.kotlin_module +0 -0
  118. package/android/build/tmp/kotlin-classes/debug/com/reactnativemodule/CrossPlatform.class +0 -0
  119. package/android/build/tmp/kotlin-classes/debug/com/reactnativemodule/ReactNativeModulePackage.class +0 -0
  120. package/lib/module/interface.js.map +1 -1
  121. package/lib/module/postRequest/fetchCardDetails.js +1 -1
  122. package/lib/module/postRequest/fetchCardDetails.js.map +1 -1
  123. package/lib/module/screens/bnplScreen.js +4 -3
  124. package/lib/module/screens/bnplScreen.js.map +1 -1
  125. package/lib/module/screens/cardScreen.js +2 -1
  126. package/lib/module/screens/cardScreen.js.map +1 -1
  127. package/lib/module/screens/emiScreen.js +2 -1
  128. package/lib/module/screens/emiScreen.js.map +1 -1
  129. package/lib/module/screens/mainScreen.js +11 -5
  130. package/lib/module/screens/mainScreen.js.map +1 -1
  131. package/lib/module/screens/netBankingScreen.js +4 -3
  132. package/lib/module/screens/netBankingScreen.js.map +1 -1
  133. package/lib/module/screens/upiScreen.js +3 -2
  134. package/lib/module/screens/upiScreen.js.map +1 -1
  135. package/lib/module/screens/upiTimerScreen.js +2 -1
  136. package/lib/module/screens/upiTimerScreen.js.map +1 -1
  137. package/lib/module/screens/walletScreen.js +4 -3
  138. package/lib/module/screens/walletScreen.js.map +1 -1
  139. package/lib/module/sdk-version.json +1 -1
  140. package/lib/module/sharedContext/handlePaymentResponseHandler.js +11 -1
  141. package/lib/module/sharedContext/handlePaymentResponseHandler.js.map +1 -1
  142. package/lib/module/utility.js +2 -2
  143. package/lib/module/utility.js.map +1 -1
  144. package/lib/typescript/src/interface.d.ts +1 -0
  145. package/lib/typescript/src/interface.d.ts.map +1 -1
  146. package/lib/typescript/src/screens/bnplScreen.d.ts.map +1 -1
  147. package/lib/typescript/src/screens/cardScreen.d.ts.map +1 -1
  148. package/lib/typescript/src/screens/emiScreen.d.ts.map +1 -1
  149. package/lib/typescript/src/screens/mainScreen.d.ts.map +1 -1
  150. package/lib/typescript/src/screens/netBankingScreen.d.ts.map +1 -1
  151. package/lib/typescript/src/screens/upiTimerScreen.d.ts.map +1 -1
  152. package/lib/typescript/src/screens/walletScreen.d.ts.map +1 -1
  153. package/lib/typescript/src/sharedContext/handlePaymentResponseHandler.d.ts +1 -1
  154. package/lib/typescript/src/sharedContext/handlePaymentResponseHandler.d.ts.map +1 -1
  155. package/lib/typescript/src/utility.d.ts +2 -2
  156. package/package.json +3 -2
  157. package/src/interface.ts +1 -0
  158. package/src/postRequest/fetchCardDetails.ts +1 -1
  159. package/src/screens/bnplScreen.tsx +4 -3
  160. package/src/screens/cardScreen.tsx +2 -1
  161. package/src/screens/emiScreen.tsx +2 -1
  162. package/src/screens/mainScreen.tsx +21 -7
  163. package/src/screens/netBankingScreen.tsx +4 -3
  164. package/src/screens/upiScreen.tsx +2 -2
  165. package/src/screens/upiTimerScreen.tsx +2 -1
  166. package/src/screens/walletScreen.tsx +4 -3
  167. package/src/sdk-version.json +1 -1
  168. package/src/sharedContext/handlePaymentResponseHandler.ts +18 -2
  169. 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,EACxB,EAAG,wBAAwB,QA4D3B;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"}
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: number;
12
- screenWidth: number;
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.1-beta21",
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
- "prepare": "echo \"{ \\\"version\\\": \\\"$(node -p 'require(\"./package.json\").version')\\\" }\" > src/sdk-version.json && bob build && cp -r assets lib/assets",
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
@@ -378,6 +378,7 @@ export interface HandleFetchStatusOptions {
378
378
  onShowSessionExpiredModal: () => void;
379
379
  setLoading?: (loading: boolean) => void;
380
380
  stopBackgroundApiTask? : () => void
381
+ isFromUPIIntentFlow : boolean
381
382
  }
382
383
 
383
384
  export enum TransactionStatus {
@@ -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.get(API_URL);
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
- await Linking.openURL(url); // Open the UPI app
220
+ appStateListenerRef.current?.remove?.();
221
221
  appStateListenerRef.current = AppState.addEventListener(
222
- 'change',
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(AnalyticsEvents.FAILED_TO_LAUNCH_UPI_INTENT,"Index Screen open UPI Intent failed",`${error}`)
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
- if (AppState.currentState === 'active' && isUpiOpeningRef.current) {
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: isUpiCollectVisible && (!isUpiQRVisible && !isTablet) ? 16 : 0 }}>
423
+ <View style={{ paddingBottom: 16 }}>
424
424
  <TextInput
425
425
  mode="outlined"
426
426
  label={
@@ -121,7 +121,8 @@ const UpiTimerScreen = ({ route, navigation }: Props) => {
121
121
  },
122
122
  onShowSessionExpiredModal: () => {
123
123
  setSessionExppireModalState(true)
124
- }
124
+ },
125
+ isFromUPIIntentFlow : false
125
126
  });
126
127
  };
127
128
 
@@ -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);
@@ -1 +1 @@
1
- { "version": "1.0.1-beta21" }
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',