#jazz_code
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/1428535269757288538
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there, give me awhile to catch up
First image shows saved card. Second image shows after clicking pencil icon.
What about clicking the ellipsis button besides the pencil? would it give you the option to remove the card?
When you click ellipses that is what is shown in the first image a pencil icon.. You would expect a trash can to delete. Seems strange to have this menu and only display 'edit'.. It "feels" like I should be able to add more options.
Hmm i get what you mean, let me check further
Thanks.. I've been looking at this for 2 days... Lol. Even signed up to discord for the first time.
Running 2025-08-27.basil if that helps
Thanks for the wait, finally found it: https://docs.stripe.com/api/customer_sessions/create#create_customer_session-components-payment_element-features-payment_method_remove
You have to enable removal on the Customer Session linked to the Payment Element
Oh man.. Well done. I'm not strong in backend, but will this work with PaymentIntent I believe that is what my backend dev is using..
It should work regardless of payment intent
The Customer Session is what is being used with our Payment Element to display previously saved card
Ok I will give it a shot.. Thanks for your help. really appreciate it.
You're welcome ๐
Reporting back it worked.. Champion!
๐ awesome!
Does this feature also save other payment methods, like Afterpay or Apple pay?
Or just cards.
Apple Pay is wallet payment method that is actually a card underneath,~~ so it will be saved as a card.~~ But Afterpay I do not think so
You can save payment method that can be used for future usage. Afterpay you can't
Interesting about Apple. I get that it is a card, but wouldn't think Stripe could save it... Above my pay grade.. I`ll let you go now. Thanks.
You can display Afterpay as a payment method though
Yeah I have got all other methods showing just not in this test and not with Saved Cards.
BTW for anyone reading this... We had to upgrade from basil to a newer API to get this working.
You mean to enable the removal of saved payment method on your Payment Element?