#harshitbhargava

1 messages · Page 1 of 1 (latest)

frozen jacinthBOT
peak jolt
#

What's the error?

#

And can you share the pi_xxx ID?

pliant parrot
#

Can you please check this RequestId: req_axAqTDYYhH5ex5

peak jolt
#

Checking now

#

The error explains the issue:

mandate_data is not allowed because this payment intent already has a reusable Cash App Pay payment method attached to it.
You ned to remove the payment_method param from your confirmCashappPayment call as the Payment Intent already has a PM assigned

pliant parrot
#

We haven't add this paymentmethod in payment intent, how it comes?

#

It automatically picks cashapp payment method id from customers account?

peak jolt
#

Bear with me

#

If you're confirming the PI with a previously setup Payment Method, then omit the setup_future_usage param

frozen jacinthBOT
pliant parrot
#

we are not sending setup_future_usage

#

Suppose we have multiple cash app, then how we are going to decide which cash app we are going to use?
As you suggest to remove payment id

#

For this we need unique identifier

zinc wave
#

Hi! I'm taking over this thread.

pliant parrot
#

No, I dont know from where it is coming

#

await stripe.confirmCashappPayment(props.clientSecret, {

  payment_method: props.paymentId,

  return_url: <any>

});
#

This is my code

zinc wave
#

yonnoj already explained what you need to change:

You ned to remove the payment_method param from your confirmCashappPayment call as the Payment Intent already has a PM assigned

pliant parrot
#

If you're confirming the PI with a previously setup Payment Method, then omit the setup_future_usage param

In this how we can omit setup future usage

zinc wave
#

I don't understand your question. Have you tried the suggestion above?

remove the payment_method param from your confirmCashappPayment call

pliant parrot
#

yes, then it is saying setupFuture usage is required,

Then I try to send like this
payment_methods: {
type:"cah_app"
}
the the payment is success, but it is taking random PM id from available cashapp payment method

#

I have multiple cash app payment method

zinc wave
#

Can you share request ID of your new tests?

pliant parrot
#

Sorry I lost that requestId,

#

But there is new issue . iw ill explain you

#

In my account, I have multiple cashApp Payment id. Now I am doing payment with one of the payment id
and my code looks like this:

await stripe.confirmCashappPayment(props.clientSecret, {

 payment_method: {

type:"cash_app"
},

  return_url: <any>

});

So it is taking any random paymentId from available payment id of cash app . and make the payment successfull, it is not taking selected payment id

#

How I can resolve that?

zinc wave
#

Can you share a PaymentIntent ID or request ID where you saw this?

pliant parrot
#

yes sure

#

pi_3NBwntInbsls4Aao2IULpU8C

#

In the above PI, I initiated the payment through "pm_1NBwhXInbsls4AaoUu74REMl", but in response the pM id is different

zinc wave
#

As mentioned before, can you try to:

  • Remove setup_future_usage when you create the PaymentIntent
  • And also add back payment_method: props.paymentId when confirming the PaymentIntent