#artdudejoe
1 messages · Page 1 of 1 (latest)
You're receiving that error because the Payment Method isn't being attached to a Customer before it is being consumed.
The ability to save Payment Methods from Terminal payments so they can be reused later is currently only available to US-based accounts. If that covers you, then the parameter that is likely missing is setup_future_usage, which you would specify while creating the Payment Intent.
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
This guide shows examples of the code used for this step:
https://stripe.com/docs/terminal/features/saving-cards/save-after-payment?terminal-sdk-platform=js
Yay, setup_future_usage! that's what is missing. Not so very obvious.
Thanks @quasi zenith
Happy to help!
Use off_session because I am retrieving status after the initial call, right?
The value that you want to provide there depends on whether or not your customer will be "present" when you're processing the future payments. If your Customer will always be on your site then you'll want to use on_session, if it is likely that you will try to process a payment when your customer is not present then you'll want to use off_session.
Ah, right. The whole idea is that our connect accounts need to a way to charge a card if they are a no show for an appointment. So, they will not be present. Thanks again. Happy holidays to you!
Thank you, Happy Holidays to you as well!