#artdudejoe

1 messages · Page 1 of 1 (latest)

safe zealotBOT
quasi zenith
#

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

glass matrix
#

Yay, setup_future_usage! that's what is missing. Not so very obvious.

#

Thanks @quasi zenith

quasi zenith
#

Happy to help!

glass matrix
#

Use off_session because I am retrieving status after the initial call, right?

quasi zenith
#

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.

glass matrix
#

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!

quasi zenith
#

Thank you, Happy Holidays to you as well!