#taykcrane_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1270182098967199817
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I'm afraid there is no-code solution to collect the payment method only, be it using Setup Intent or not.
A Stripe customer has to be created first, then using code to create a Checkout Session in setup mode (https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=stripe-hosted) or use Setup Intent directly (https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements) to collect and save a payment method.
So you're saying it has to be done using the API? What if I created a payment link for a $0 product? If the payment is completed, wouldn't that effectively create the customer with default credit card?
@daring solstice
You will not be able to create a Payment Link with $0 product
Saving a payment method can only be done with API
Thanks @daring solstice . Can you think of any other way that I can store a customer's default payment method without writing custom code to hit the Stripe API directly? Or am I completely shit outta luck?
There is a workaround for it by using Customer Portal. You'd need:
- Create a customer with the email address in the Dashboard
- Use no-code customer portal to collect the payment method: https://docs.stripe.com/customer-management/activate-no-code-customer-portal
I see. So this is basically a way for a customer to self-manage their Customer account, can add their own payment methods, etc. I see how this could work, though it's a lot of extra steps that my customers have to jump through just to store a credit card on file.
Do I have that right @daring solstice ?