ordering-ui-react-native 0.21.48-test-3 → 0.21.48-test-4
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
|
@@ -232,6 +232,9 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
232
232
|
|
|
233
233
|
return (
|
|
234
234
|
<PMContainer>
|
|
235
|
+
<OText>
|
|
236
|
+
isOpenPaymethod: {isOpenMethod?.paymethod?.gateway}
|
|
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,9 @@ 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
|
+
</OText>
|
|
200
203
|
{publicKey ? (
|
|
201
204
|
<View style={{ flex: 1 }}>
|
|
202
205
|
<StripeProvider
|