#SeanH20-payments

1 messages ยท Page 1 of 1 (latest)

quiet isle
#

2 is the better option

mystic hazel
#

ah i see, ok, i'll give that a go. it's odd because i was using Setup Intents, so i need to make a new page for paying this Payment Intent and save the card for later. I think i understand, i'll give that a go an see how it works.

#

thanks for you help! ๐Ÿ™‚

mystic hazel
#

@quiet isle the issue is i'm getting this error when creating the payment intent -- You cannot confirm with the off_sessionparameter whensetup_future_usage is also set on the PaymentIntent because you cannot set up future usages when processing payments off-session. - so how do i pay that type of payment intent? i need to add a new card for future usage?

quiet isle
#

you wouldn't be confirming on the server side again with off_session so you shouldn't be getting that error

mystic hazel
#

i see, my question / concern is -- when a new card is added via this way, is that card set up for future use too? so can it be used for a Payment Intent in a months time?

quiet isle
#

it will be if you update the PaymentIntent to have setup_future_usage , yep

#

you either use SetupIntents to save a card if you're not charging it now, or you use a PaymentIntent with setup_future_usage if you are charging it now, they're equivalent in that regard

mystic hazel
#

i see, so i need to create a new page with a card element, and then pop that in the js for this payment intent, after updating the payment intent. i'll give that a go ๐Ÿ™‚

mystic hazel
#

That's all working great this end! Thank you so much for helping me with that, I was a bit confused by the flow. The key thing was to call update on Setup Intent to flip it too a use for future. Cheers!