ordering-ui-react-native 0.21.48-test-3 → 0.21.48-test-5
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
|
@@ -186,8 +186,9 @@ export const StripeMethodForm = (props: StripeMethodFormParams) => {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
useEffect(() => {
|
|
189
|
+
showToast(ToastType.Error, `Supported: ${isApplePaySupported}, ${paymethod}`, 10000)
|
|
189
190
|
if (isApplePaySupported && applePay.includes(paymethod)) {
|
|
190
|
-
showToast(ToastType.Success, 'ENABLED TEST PRO')
|
|
191
|
+
showToast(ToastType.Success, 'ENABLED TEST PRO', 12000)
|
|
191
192
|
setMethodPaySupported({
|
|
192
193
|
enabled: true,
|
|
193
194
|
loading: false
|
|
@@ -404,10 +404,6 @@ const CheckoutUI = (props: any) => {
|
|
|
404
404
|
return (
|
|
405
405
|
<>
|
|
406
406
|
<Container noPadding>
|
|
407
|
-
<OText>
|
|
408
|
-
si esta viendo esto uste ha instalado correctamente mi rama :)
|
|
409
|
-
gateway: {JSON.stringify(paymethodSelected)}
|
|
410
|
-
</OText>
|
|
411
407
|
<View style={styles.wrapperNavbar}>
|
|
412
408
|
<NavBar
|
|
413
409
|
title={t('CHECKOUT', 'Checkout')}
|
|
@@ -232,6 +232,9 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
232
232
|
|
|
233
233
|
return (
|
|
234
234
|
<PMContainer>
|
|
235
|
+
<OText>
|
|
236
|
+
isOpenPaymethod: {JSON.stringify(isOpenMethod)}
|
|
237
|
+
</OText>
|
|
235
238
|
{paymethodsList.paymethods.length > 0 && (
|
|
236
239
|
<FlatList
|
|
237
240
|
horizontal
|
|
@@ -350,10 +353,10 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
350
353
|
</View>
|
|
351
354
|
)}
|
|
352
355
|
{/* Google pay, Apple pay */}
|
|
353
|
-
{methodsPay.includes(isOpenMethod?.paymethod?.gateway) && (
|
|
356
|
+
{methodsPay.includes(isOpenMethod?.paymethod?.gateway || paymethodSelected?.gateway) && (
|
|
354
357
|
<StripeElementsForm
|
|
355
358
|
cart={cart}
|
|
356
|
-
paymethod={isOpenMethod?.paymethod?.gateway}
|
|
359
|
+
paymethod={isOpenMethod?.paymethod?.gateway || paymethodSelected?.gateway}
|
|
357
360
|
methodsPay={methodsPay}
|
|
358
361
|
businessId={props.businessId}
|
|
359
362
|
publicKey={isOpenMethod?.paymethod?.credentials?.publishable || isOpenMethod?.paymethod?.credentials?.publishable_key}
|
|
@@ -197,6 +197,11 @@ const StripeElementsFormUI = (props: any) => {
|
|
|
197
197
|
|
|
198
198
|
return (
|
|
199
199
|
<View style={{ ...styles.container, height: methodsPay?.includes(paymethod) ? 'auto' : height - top - bottom - 60 - (isKeyboardShow ? 250 : 0) }}>
|
|
200
|
+
<OText>
|
|
201
|
+
paymethod: {paymethod} -
|
|
202
|
+
public key: {publicKey} -
|
|
203
|
+
merchantId: {merchantId}
|
|
204
|
+
</OText>
|
|
200
205
|
{publicKey ? (
|
|
201
206
|
<View style={{ flex: 1 }}>
|
|
202
207
|
<StripeProvider
|