#michael_19345

1 messages ยท Page 1 of 1 (latest)

young domeBOT
polar urchin
#

๐Ÿ‘‹ happy to help

#

would you mind sharing some more details?

#

the Payment Intent ID? your code and a screen recording if it's possible or a website in test mode where we could replicate the issue?

wet pulsar
#

pi_3OWeFDDY3BzcP9iq08AX7Vcc

#

click through to buy a ticket for an event and then click apple pay on the /order-summary page

polar urchin
#

ok fair enough, would you mind sharing your code please? the front-end code

wet pulsar
#

this has been working in our staging environment for approx 4 weeks now. and stopped working yday.

#

it is working for google pay still, just not apple pay

polar urchin
#

did you try with another payment method (I mean another card on Apple Pay)

wet pulsar
#

yeah, it is happening for a few people on our team

polar urchin
#

is it happening to all or just some?

wet pulsar
#

i shouldnt need to manually close/unmount the payment element on paymentIntent success right?

#

all

young domeBOT
glossy oracle
#

no, you shouldn't need to.

wet pulsar
#

any ideas here?

#

why is the stripe paymentIntent status succeeded but the apple pay modal saying payment not complete

glossy oracle
#

not sure, that can happen if you call event.paymentFailed() in the handler but doesn't seem like you do.

wet pulsar
#

it is somehow calling this:

expressCheckoutElement.on('cancel', async () => {
try {
console.log('calling handleCancelArtixOrder...')
handleCancelArtixOrder();
} catch (error) {
throw new Error(error);
}
});

#

even though i dont click the cancel button in the modal

glossy oracle
#

strange

wet pulsar
#

should i create a support ticket for this?

glossy oracle
#

what's weird to me when I try it on your site is you redirect 'underneath' the popup before it's finished

wet pulsar
#

the redirect is inside this condition:

if (!error && resp.paymentIntent.status === 'succeeded') {
// The payment UI automatically closes with a success animation.
// Your customer is redirected to your return_url.
AppRouter.push('#/order-confirmation');
cartState.stripePaymentSuccessful = true;
}

#

so should only trigger when payment is successful. this was working before. but now that it is saying success even though there is some issue it goes there

glossy oracle
#

I agree yes, seems strange

wet pulsar
#

you dont see anything unusual in the backend?

glossy oracle
#

nope

wet pulsar
#

i see in stripe dashboard that it says this in the events and logs section of the payment:

Pending webhook response
A webhook that is subscribed to the event hasn't successfully responded yet

#

however, if i go to the webhook it says successful