#krsacme
1 messages ยท Page 1 of 1 (latest)
it is on web
We don't see ApplePay option in mac - both chrome and safari. Only GoolePay shows up and it worked fine.
We are seeing ApplePay in iphone browser - both chrome and safari same behavior
you shouldn't be seing ApplePay on Chrome
that's expected
would you mind sharing a link to your test mode website?
yeah.
once this is loaded, you need to select Lantana Place
And once moved to next page, select Smile More
then our checkout window will open. fill basic details and then click Continue to Pay
then PaymentElement will open up
would you mind sharing your code please?
taking a look
I don't see handleSubmit function code since you're passing it as a prop
let me get that..
give me few mins, i will share it.
dispatch({
type: DRAWER_STATE_UPDATED,
payload: {
drawerState: 'checkout_stripe_payment',
props: {
setStripeSetupIntent: false,
values,
handleSubmit: () => setInvokeSubmit(true),
},
},
});
its part of this file
taking a look
useEffect(() => {
invokeSubmit && handleSubmit();
}, [invokeSubmit]);
this is the reason
the handleSubmit should be called by your click button event and not based on the react useEffect hook
ok. pass it as props is not a problem, but it should be invoked in the same context - correct?
yes in the same event handler
so instead of handleSubmit: () => setInvokeSubmit(true), you should just pass handleSubmit
ok. we will make the modifications and try it. Thanks.
let me know if you need any more help