boxpay-checkout-reactnative-sdk 1.0.0-beta24 → 1.0.0-beta25
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/lib/module/components/savedAddressBottomSheet.js +8 -7
- package/lib/module/components/savedAddressBottomSheet.js.map +1 -1
- package/lib/module/screens/addressScreen.js +5 -1
- package/lib/module/screens/addressScreen.js.map +1 -1
- package/lib/module/screens/bnplScreen.js +5 -1
- package/lib/module/screens/bnplScreen.js.map +1 -1
- package/lib/module/screens/cardScreen.js +5 -1
- package/lib/module/screens/cardScreen.js.map +1 -1
- package/lib/module/screens/emiScreen.js +5 -1
- package/lib/module/screens/emiScreen.js.map +1 -1
- package/lib/module/screens/mainScreen.js +0 -1
- package/lib/module/screens/mainScreen.js.map +1 -1
- package/lib/module/screens/netBankingScreen.js +5 -1
- package/lib/module/screens/netBankingScreen.js.map +1 -1
- package/lib/module/screens/savedAddressScreen.js +10 -3
- package/lib/module/screens/savedAddressScreen.js.map +1 -1
- package/lib/module/screens/upiTimerScreen.js +3 -1
- package/lib/module/screens/upiTimerScreen.js.map +1 -1
- package/lib/module/screens/walletScreen.js +5 -1
- package/lib/module/screens/walletScreen.js.map +1 -1
- package/lib/module/serviceRequest.js +3 -5
- package/lib/module/serviceRequest.js.map +1 -1
- package/lib/typescript/src/components/savedAddressBottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/screens/addressScreen.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/savedAddressScreen.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/serviceRequest.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/savedAddressBottomSheet.tsx +7 -6
- package/src/screens/addressScreen.tsx +5 -1
- package/src/screens/bnplScreen.tsx +5 -1
- package/src/screens/cardScreen.tsx +5 -1
- package/src/screens/emiScreen.tsx +5 -1
- package/src/screens/mainScreen.tsx +0 -1
- package/src/screens/netBankingScreen.tsx +5 -1
- package/src/screens/savedAddressScreen.tsx +12 -4
- package/src/screens/upiTimerScreen.tsx +3 -1
- package/src/screens/walletScreen.tsx +5 -1
- package/src/serviceRequest.ts +1 -3
- package/LICENSE +0 -20
|
@@ -85,23 +85,24 @@ const styles = StyleSheet.create({
|
|
|
85
85
|
marginBottom: 12,
|
|
86
86
|
},
|
|
87
87
|
icon: {
|
|
88
|
-
width:
|
|
89
|
-
height:
|
|
88
|
+
width: 20,
|
|
89
|
+
height: 20,
|
|
90
90
|
marginRight: 12,
|
|
91
|
-
tintColor: "#
|
|
91
|
+
tintColor: "#2D2B32",
|
|
92
92
|
},
|
|
93
93
|
textContainer: {
|
|
94
94
|
flex: 1,
|
|
95
95
|
},
|
|
96
96
|
label: {
|
|
97
97
|
fontSize: 16,
|
|
98
|
-
|
|
99
|
-
color: "#
|
|
98
|
+
fontFamily:"Poppins-SemiBold",
|
|
99
|
+
color: "#2D2B32",
|
|
100
100
|
},
|
|
101
101
|
address: {
|
|
102
102
|
fontSize: 14,
|
|
103
|
-
color: "#
|
|
103
|
+
color: "#4F4D55",
|
|
104
104
|
marginTop: 4,
|
|
105
|
+
fontFamily:"Poppins-Regular"
|
|
105
106
|
},
|
|
106
107
|
divider: {
|
|
107
108
|
height: 1,
|
|
@@ -487,7 +487,6 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
487
487
|
onPaymentResult: onPaymentResult,
|
|
488
488
|
});
|
|
489
489
|
if(shopperToken != null && shopperToken != "") {
|
|
490
|
-
checkoutDetailsHandler.checkoutDetails.shopperToken = shopperToken
|
|
491
490
|
getRecommendedInstruments()
|
|
492
491
|
}
|
|
493
492
|
callUIAnalytics(AnalyticsEvents.CHECKOUT_LOADED,"Index Screen Session Loaded","")
|
|
@@ -112,13 +112,21 @@ const SavedAddressScreen = ({ navigation }: Props) => {
|
|
|
112
112
|
|
|
113
113
|
useEffect(() => {
|
|
114
114
|
const backHandler = BackHandler.addEventListener(
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
'hardwareBackPress',
|
|
116
|
+
() => {
|
|
117
|
+
if (loading) {
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
return onProceedBack(); // Allow back navigation if not loading
|
|
121
|
+
}
|
|
117
122
|
);
|
|
123
|
+
|
|
118
124
|
return () => {
|
|
119
|
-
backHandler
|
|
125
|
+
if (backHandler) {
|
|
126
|
+
backHandler.remove();
|
|
127
|
+
}
|
|
120
128
|
};
|
|
121
|
-
|
|
129
|
+
});
|
|
122
130
|
useEffect(() => {
|
|
123
131
|
if(updateAddress || isEditClicked) {
|
|
124
132
|
const { firstName, lastName } = extractNames(selectedAddress?.name ?? "");
|
package/src/serviceRequest.ts
CHANGED
|
@@ -2,9 +2,6 @@ import axios from 'axios';
|
|
|
2
2
|
import { generateRandomAlphanumericString, getEndpoint } from './utils/stringUtils'; // adjust path accordingly
|
|
3
3
|
import { checkoutDetailsHandler } from './sharedContext/checkoutDetailsHandler';
|
|
4
4
|
|
|
5
|
-
// Create an Axios instance if needed
|
|
6
|
-
|
|
7
|
-
const { checkoutDetails } = checkoutDetailsHandler;
|
|
8
5
|
// const version = process.env.SDK_VERSION
|
|
9
6
|
|
|
10
7
|
const api = axios.create({});
|
|
@@ -12,6 +9,7 @@ const api = axios.create({});
|
|
|
12
9
|
// Add request interceptor
|
|
13
10
|
api.interceptors.request.use(
|
|
14
11
|
(config) => {
|
|
12
|
+
const { checkoutDetails } = checkoutDetailsHandler;
|
|
15
13
|
config.baseURL = `${getEndpoint(checkoutDetails.env)}${checkoutDetails.token}`
|
|
16
14
|
config.headers['X-Request-Id'] = generateRandomAlphanumericString(10);
|
|
17
15
|
config.headers['X-Client-Connector-Name'] = 'React Native SDK';
|
package/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 ishika bansal
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
in the Software without restriction, including without limitation the rights
|
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
SOFTWARE.
|