#bibek_api
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/1298577806787215441
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- bibek_api, 1 hour ago, 63 messages
- bibek_code, 21 hours ago, 12 messages
- bibek_code, 23 hours ago, 47 messages
- bibek_code, 1 day ago, 41 messages
- bibek_api, 1 day ago, 23 messages
๐ happy to help
sure thing no worries
if a payment method is attached to your customer you don't need to actually create a Checkout Session to create the subscription
you can directly use it
in this example https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=stripe-hosted#charge-saved-payment-method you can see how it's being used in a one-off payment but it's easily substitued with a subscription creation call
in our system the flow was like this: when user purchases certain tokens using checkout onetime payment and when user inputs card details and tick the checkbox to save the payment method for future payments and in future when user now goes with the subscription plan can we show to choose the payment method that was saved in one time payment i.e. mode=payment?
you want it in the hosted Checkout Session?
yes
Checkout Session doesn't provide that ability
Custom Checkout (or Embedded form) has a beta feature for this https://docs.stripe.com/checkout/custom-checkout/use-saved-payment-methods
no, in stripe hosted checkout page
that's not possible
but in my one account is showing the payment method that is saved in onetime purchase checkout and not in another account
my bad, I stand corrected
the way to save cards so that they would show up later on Checkout Sessions is to use https://docs.stripe.com/payments/checkout/save-during-payment?payment-ui=stripe-hosted#save-payment-methods-to-prefill-them-in-checkout
where you add
payment_method_save: 'enabled',
}```
to your checkout session creation params
when your customer clicks on the checkbox we provide them
the PM will be saved for future usage
and it will show up on future Checkout Sessions. You can learn more about it here https://support.stripe.com/questions/prefilling-saved-cards-in-checkout
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
does it apper to choose the previously saved payment method either it is saved from onetime purchase checkout or subscription checkout ?
yes
but in my one account is showing the payment method that is saved in onetime purchase checkout and not in another account
in one of my account when i checkout from mode=payment it shows the previously saved payment method and when i checkout from mode=subscription it does not show that payment method.
hard to say without seeing specific examples of that
okey, i will share the checkout links. will this be helpful ?