ordering-ui-react-native 0.21.96 → 0.21.97
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/package.json
CHANGED
|
@@ -200,7 +200,11 @@ const CartUI = (props: any) => {
|
|
|
200
200
|
if (cart?.business_id) {
|
|
201
201
|
setOpenUpselling(true)
|
|
202
202
|
} else {
|
|
203
|
-
|
|
203
|
+
onNavigationRedirect('CheckoutNavigator', {
|
|
204
|
+
screen: 'CheckoutPage',
|
|
205
|
+
cartUuid: cart?.uuid,
|
|
206
|
+
cartTotal: cart?.total
|
|
207
|
+
}, true)
|
|
204
208
|
}
|
|
205
209
|
}
|
|
206
210
|
|
|
@@ -101,7 +101,8 @@ const CheckoutUI = (props: any) => {
|
|
|
101
101
|
currency,
|
|
102
102
|
merchantId,
|
|
103
103
|
setPlaceSpotNumber,
|
|
104
|
-
maxDate
|
|
104
|
+
maxDate,
|
|
105
|
+
urlscheme
|
|
105
106
|
} = props
|
|
106
107
|
|
|
107
108
|
const theme = useTheme();
|
|
@@ -817,6 +818,7 @@ const CheckoutUI = (props: any) => {
|
|
|
817
818
|
handlePaymentMethodClickCustom={handlePaymentMethodClick}
|
|
818
819
|
handlePlaceOrder={handlePlaceOrder}
|
|
819
820
|
merchantId={merchantId}
|
|
821
|
+
urlscheme={urlscheme}
|
|
820
822
|
setMethodPaySupported={setMethodPaySupported}
|
|
821
823
|
methodPaySupported={methodPaySupported}
|
|
822
824
|
placeByMethodPay={placeByMethodPay}
|
|
@@ -65,6 +65,7 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
65
65
|
handlePaymentMethodClickCustom,
|
|
66
66
|
handlePlaceOrder,
|
|
67
67
|
merchantId,
|
|
68
|
+
urlscheme,
|
|
68
69
|
setMethodPaySupported,
|
|
69
70
|
placeByMethodPay,
|
|
70
71
|
methodPaySupported,
|
|
@@ -360,6 +361,7 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
360
361
|
handleSource={handlePaymethodDataChange}
|
|
361
362
|
onCancel={() => handlePaymethodClick(null)}
|
|
362
363
|
merchantId={merchantId}
|
|
364
|
+
urlscheme={urlscheme}
|
|
363
365
|
setMethodPaySupported={setMethodPaySupported}
|
|
364
366
|
methodPaySupported={methodPaySupported}
|
|
365
367
|
placeByMethodPay={placeByMethodPay}
|
|
@@ -407,6 +409,7 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
407
409
|
handleSource={handlePaymethodDataChange}
|
|
408
410
|
onCancel={() => handlePaymethodClick(null)}
|
|
409
411
|
merchantId={merchantId}
|
|
412
|
+
urlscheme={urlscheme}
|
|
410
413
|
publicKeyAddCard={isOpenMethod?.paymethod?.credentials?.stripe?.publishable}
|
|
411
414
|
/>
|
|
412
415
|
</KeyboardAvoidingView>
|
|
@@ -34,7 +34,8 @@ const StripeElementsFormUI = (props: any) => {
|
|
|
34
34
|
methodPaySupported,
|
|
35
35
|
setPlaceByMethodPay,
|
|
36
36
|
cartTotal,
|
|
37
|
-
publicKeyAddCard
|
|
37
|
+
publicKeyAddCard,
|
|
38
|
+
urlScheme
|
|
38
39
|
} = props;
|
|
39
40
|
|
|
40
41
|
const theme = useTheme();
|
|
@@ -204,7 +205,7 @@ const StripeElementsFormUI = (props: any) => {
|
|
|
204
205
|
<StripeProvider
|
|
205
206
|
publishableKey={isToSave}
|
|
206
207
|
merchantIdentifier={merchantId}
|
|
207
|
-
urlScheme={
|
|
208
|
+
urlScheme={`${urlScheme}://checkout/${cart?.uuid}`}
|
|
208
209
|
>
|
|
209
210
|
{methodsPay?.includes(paymethod) ? (
|
|
210
211
|
<StripeMethodForm
|