#maayanvia

1 messages · Page 1 of 1 (latest)

wicked sequoiaBOT
glad willow
#

Hi, let me help you with this.

jolly flax
#

req_xUfw1tHPsIdzmA: When confirming a PaymentIntent with a paypal PaymentMethod and setup_future_usage, mandate_data is required.

#

thanks !

glad willow
#

It's because you used setup_future_usage: "on_session",
Are you required to use this?

jolly flax
#

the user will be present when he make the charge. so i need to declare on session

glad willow
#

You don't need to use this parameter at all, if you're not planning to set up future usage.

#

Then the error will be solved.

jolly flax
#

i am. i want to save it's detailed for future usage .

#

but he will be present. i don't want him to type all over again his account details

glad willow
#

This will not pre-fill the Payment Method details.

#

What are you trying to achieve, on the high-level, actually?

jolly flax
#

at the beginning the user will add his payment account i will save the payment method id for future usage.
when i'll need to charge the user (he will be on_session) i will create a payment intent using the paymentmethod id i saved and charge him

glad willow
#

You can use the setup_future_usage: "off_session" for this, which will mean the customer won't need to complete 3DS. "on_session" is not used that often.

jolly flax
#

there are some legal documentation and limitation i should be awae of using the paypal off_session

glad willow
jolly flax
#

thank you

wicked sequoiaBOT
glad willow
#

Happy to help.