#harshitbhargava.

1 messages · Page 1 of 1 (latest)

coral drumBOT
dusky lichen
#

Hi. Let me help you with this.

#

What's the error?

buoyant blaze
#

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

dusky lichen
#

What do you mean by "It always goes into error"?
What is the error you're seeing?

buoyant blaze
#

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?

dusky lichen
#

It's hard to say until we see the error message. Could you please print the error message if there's any?

buoyant blaze
#

No i cant see any logs in stripe

#

But i can help you with paymentIntentId

#

If that works

#

pi_3NxVbmInbsls4Aao0Ii4WoQR

dusky lichen
#

How do you know that it fails exactly?

dusky lichen
buoyant blaze
dusky lichen
#

Why can't you console.log(error)?

buoyant blaze
#

Actually i am from india and in india apple pay is not there

#

My some colleagues are from US they are testing this flow

dusky lichen
#

Maybe it would be easier if they write to us directly?

buoyant blaze
#

Ok sure