#harshitbhargava

1 messages · Page 1 of 1 (latest)

crystal fiberBOT
proven yew
astral tusk
#

Actually we are not using PaymentElement in this flow, we have paymentMethod already so I am directly confirming the payment

proven yew
astral tusk
#

what does online/offline mean

proven yew
#

In what context?

astral tusk
#

mandate_data.customer_acceptance.type
In this what does online /offline mean?

proven yew
#

Offline means they didn't do it online. Maybe they were standing in your store talking to your clerk, for example. Online means they provided the mandate online, so you have an IP and user agent to provide to the API.

astral tusk
#

//Removing code

#

so this is my code, and when I am trying to pay through this it is giving me error, mandate is required

proven yew
#

So you're trying to use a previously-saved CashApp Payment Method?

#

Or are you trying to set up a CashApp Payment Method for future use and also take a payment at the same time?

astral tusk
#

I already have cashApp Payment method

#

I am trying to pay through that

proven yew
astral tusk
#

This thing will work with card /google pay/ apple pay also?

#

I think setup_future_usage is not needed in above code , if payment method is already in customer account, right?

proven yew
#

Correct.

#

And yes, this will work with cards and other wallets in basically the same way.

astral tusk
#

and just want to confirm one thing, why apple pay and google pay is not present in payment_method_types?

proven yew
#

Apple Pay and Google Pay are subsets of the card type.

astral tusk
#

ok

#

You must provide a return_url when confirming a PaymentIntent with the payment method type cashapp.

#

Now I am getting this error

proven yew
#

Can you give me the request ID so I can take a look?

astral tusk
#

deleting

proven yew
astral tusk
#

I have removed setup_future_usage, as what we have discussed

proven yew
#

That's a separate thing.

astral tusk
#

got it my bad

proven yew
#

There's a setup_future_usage property which takes values of off_session and on_session. Separately there's an off_session property that takes values of true and false.

astral tusk
#

btw what does off session means?

astral tusk
#

This PaymentIntent requires a mandate, but no existing mandate was found. Collect mandate acceptance from the customer and try again, providing acceptance data in the mandate_data parameter.

proven yew
#

Can you give me the request ID for that one?

astral tusk
#

//Deleting

proven yew
#

Looking...

#

Oh, the mandate status is pending. It looks like the original Payment Intent with setup_future_usage was never completed.

#

That Payment Intent's status is requires_action.

#

So the Payment Method was never set up for future use properly.

astral tusk
#

I am not getting you, where i have to make chnages for this

proven yew
#

That's the last request made on the original Payment Intent, when the Payment Intent confirmation was attempted, but in the response you can see a next action is required. That next action was never taken, so the Payment Intent never succeeded, and the set up for future use was never performed, and the mandate is not usable.

#

For CashApp to work for future, off-session payments you need to set up the Payment Method with either a Setup Intent or a Payment Intent with setup_future_usage. You started the process with the Payment Intent, but never finished.

astral tusk
#

oh got it

crystal fiberBOT
astral tusk
#

Thanks for the support