#harshitbhargava.
1 messages · Page 1 of 1 (latest)
In stripe logs i am not able to get error, let me share the code
const { error } = await stripe.confirmPayment({
elements,
confirmParams: {
return_url: process.env.REACT_APP_URL + "/driver/confirmation",
},
});
if (error) {
dispatch(loaderActions.show({ show: false }));
if (error.type !== "validation_error")
dispatch(
messageActions.show({
openPopup: true,
messageBody: CD_TOLL_PAYMENT_FAILED_SUB_LABEL,
messageHeader: CD_TOLL_PAYMENT_FAILED_LABEL,
type: "",
showClose: true,
})
);
}
It always goes into error
And payment method also not attached with payment intent
What do you mean by "It always goes into error"?
What is the error you're seeing?
We have added message Body in error it always show me that error
In the above code we have added check if(error), sonit is going into that while paying through apple pay
Is there something which we are doing wrong?
It's hard to say until we see the error message. Could you please print the error message if there's any?
No i cant see any logs in stripe
But i can help you with paymentIntentId
If that works
pi_3NxVbmInbsls4Aao0Ii4WoQR
How do you know that it fails exactly?
It doesn't seem like this PaymentIntent was ever attempted to be confirmed.
So in the above cide you can see there is aline if(error) and if it goes inside that if block then we are opening popup with some message body and that popup is coming
Why can't you console.log(error)?
Actually i am from india and in india apple pay is not there
My some colleagues are from US they are testing this flow
Maybe it would be easier if they write to us directly?
Ok sure