#amar_api

1 messages · Page 1 of 1 (latest)

weary runeBOT
sonic fableBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

weary runeBOT
#

đź‘‹ Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1246105014540439552

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

marsh tendon
#

I had a request about this a few minutes ago and I followed this article https://support.stripe.com/questions/prefilling-saved-cards-in-checkout to add "payment_method_data": {
"allow_redisplay"
:
"always"
,
}, to my checkout

#

So I completed this checkout session req_lYO5eobGLpCcJ4

weary runeBOT
marsh tendon
#

Then I created a new checkout req_vtpxwVmUtcnMwn but my payment method didn't show

cold fulcrum
#

Hi there đź‘‹ since you're in running in subscription mode, my suspicion is that you aren't seeing those because a billing address isn't being collected, whcih is a requirement for reshowing payment methods in subscription mode:
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=stripe-hosted#handling-existing-customers

If you set billing_address_collection to required and step through this again, do you then see the Payment Method filled on the return visit?
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-billing_address_collection

marsh tendon
#

Will this work instead: saved_payment_method_options: {
payment_method_save: 'enabled',
},

cold fulcrum
#

You said it doesn't in your testing, right?

marsh tendon
#

Well I'm trying this: payment_method_data:{ "allow_redisplay": allow_redisplay }

#

But you just sent this documentaiton

cold fulcrum
#

Hm, that's the section I meant to link to, and not the section I'm seeing when clicking the link. I wanted to direct you to section of the documentation that explained the requirements for saved payment methods to appear in Subscription mode:

In subscription mode, Stripe processes the customer’s default payment method if it’s a card. Otherwise Stripe processes the most recent card. The Checkout page requires a valid billing address, billing name, and billing email to prefill the customer’s card details.

cold fulcrum
#

Can you share IDs?

marsh tendon
#

req_lyEnrjcf32hJ84

#

req_dGmiKeUoAF0OER

cold fulcrum
marsh tendon
cold fulcrum
#

Do you have a test site that I can hit to see that behavior?

marsh tendon
#

It's ok we can come back to that

marsh tendon
marsh tendon
cold fulcrum
#

Both of those sessions are still open, neither one has been completed.

marsh tendon
#

ok I'll try again

#

Completed one with these params

#

then I made a new session and it's still not saved