#AlAlva
1 messages ยท Page 1 of 1 (latest)
Hello ๐
When you say checkout what flow exactly are you referring to?
Can you share an example?
when i say checkout, i am creating a checkout session, meaning i'm trying to invoice customer for a purchase.
I have the user select from 2 cards that they have added to be saved on their account, i select a card that is Not the Default card, i want the user to use a different (not Default card) and as mentioned it doesn't show the Stripe checkout page with that Default card, instead it show the other Not Default) let me see if i can share some pictures
the first picture is from the Stripe dashboard showing that the default card is one that shows that last 4 digits default to 4242 but on the second picture it shows the invoice trying to charge a non defaulted card 4444
i believe but not 100% sure that its supposed to charge on the defaulted card?
As far as I know, Checkout actually pulls the most recent payment method that was successfully charged rather than pulling the default one.
how can i have the user select a specific card that they want a charge to go onto?
i thought that the default card was the one to charge
here is an example of where i'm having the user select the card that they have on file to charge what they have on their cart.
Looking...
I don't think there's a way you can pass a PaymentMethod to a Session unfortunately.
They'd need to manually change it on the Checkout page.
but the checkout doesn't give you options to change to a different unless you enter the card manually again. When i use any other site and i save credit cards it allows me to select which cards.
when i go to the Stripe Checkout i can't change to other cards that they have on file but does allow me to add a new card to charge.
Yeah Checkout only supports listing cards that were saved with Link at the moment. Unfortunately you can't list other saved payment methods at the moment
is there another way that doesn't use Checkout?
If you make your own custom page, you can list those payment methods for them to use
i'm not sure if we are on the same page, i'm not trying to list the payment methods the customer saved on file, i'm trying that have Stripe charge a credit card that they selected. I'm already able to show the user the cards that they have on file, i just want Stripe to charge the card that the user selected. I thought that by having the user select from one of the card that it would make it "default" and Stripe would charge on that card. Let me know if i'm incorrect
Gotcha, thanks for taking a step back and explaining. Unfortunately like hanzo said I don't think you can specify a card to use like that at the moment. Checkout just uses the most recent. I can put in a feature request to allow this but at the moment I don't think it is supported
Do you think the Create an Invoice might be able to do what i want it to do? i've never used it but it looks like a Payment Method is listed as an optional Parameter. LMK. THANKS! https://stripe.com/docs/api/invoices/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Good question. I think so though I'm not able to test to confirm that right now. Can you try creating an invoice like that to confirm?
let me give it a shot
I'm going to close this thread for now but if you have questions after your test we can always re-open this thread or start a new one