#Nepotist

1 messages ยท Page 1 of 1 (latest)

dense acornBOT
polar grotto
#

Hey again

eager elm
#

๐Ÿ‘‹

polar grotto
#

Looking

eager elm
#

I tried a few different things on the Payment Intent.

polar grotto
#

It won't just grab the mandate, since it is always possible for a PaymentMethod to have multiple mandates

eager elm
#

I tried that here: req_ZhswXhbHmGyXBO

polar grotto
#

Ah indeed.

eager elm
#

The setup_future_usage is already set to "off_session" on the Payment Intent before I can confirm it. ๐Ÿ˜•

polar grotto
#

Yeah... that is due to the Subscription behavior

#

I'm going to need to file some feedback to get this flow smoothed out

#

That said

#

Let's try something different.

#

When you create the Subscription try setting the Paypal PM as the default_payment_method for the Sub and use payment_behavior: allow_incomplete

#

This will attempt payment immediately upon creating the Sub and use the Paypal PM

eager elm
#

okay, give me a moment

#

I tried that a few different ways and either had an error or had to redirect again to get it to work.

#

Something interesting for you: pi_3NEC76Geos9eOLE81Uk8vZ8h

#

If you create a subscription as you suggested, the return_url on the Payment Intent created by the subscription is null

polar grotto
#

Okay I'm going to need to spin up a repro on my end here to figure this out. I haven't played with Paypal that much yet myself as it is relatively new to GA.

#

Give me a few mins

eager elm
#

No problem, thanks for taking a deeper look ๐Ÿ™‚

dense acornBOT
polar grotto
#

Okay.

#

@eager elm try setting off_session: true when you create your Subscription

#

That should negate setup_future_usage on the PaymentIntent

#

And should fix the issues here I believe

eager elm
#

Cool, trying it ๐Ÿ‘

#

All right! That worked in Postman. I will give it a shot with my devs in the local environment and see how it goes. Thank you so much!

polar grotto
#

๐ŸŽ‰

eager elm
#

You are a wizard!

#

๐Ÿง™