#bibek_api

1 messages ยท Page 1 of 1 (latest)

brittle hearthBOT
#

๐Ÿ‘‹ 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.

austere mulch
#

๐Ÿ‘‹ happy to help

runic marsh
#

Hello, thank you for all your previous help.

#

can you help me with this question?

austere mulch
#

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

runic marsh
#

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?

austere mulch
#

you want it in the hosted Checkout Session?

runic marsh
#

yes

austere mulch
#

Checkout Session doesn't provide that ability

runic marsh
#

no, in stripe hosted checkout page

austere mulch
#

that's not possible

runic marsh
#

but in my one account is showing the payment method that is saved in onetime purchase checkout and not in another account

brittle hearthBOT
austere mulch
#

my bad, I stand corrected

#

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

runic marsh
#

does it apper to choose the previously saved payment method either it is saved from onetime purchase checkout or subscription checkout ?

austere mulch
#

yes

runic marsh
#

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.

rose cape
#

hard to say without seeing specific examples of that

runic marsh
#

okey, i will share the checkout links. will this be helpful ?