#developer_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/1329777385368977488
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
I'm sorry I don't understand your question
what exactly are you trying to do?
We are using stripe hosted check page for recurring payment (as subscription /user/month plan), and we are able to make the transaction also using two different payment methods i.e, cards, us bank account, but what all changes we need to do on our side to handle the user flow who has subscribed to any plan. Do we need to setup any webhooks to listen to the events also
I have tried all the possible 3 ways to handle the payment, but now we are using the stipe hosted checkout page, but i'm not having any idea how will i handle the userflow now. How would i check handle a single user payment can access the same account
Once the user makes the payment for any plan, does the stipe handle all the future payments itself, and tell us using the webhooks
you just copy-pasted your message, so that doesn't help.
but what all changes we need to do on our side to handle the user flow who has subscribed to any plan.
what doe that mean? what "user flow"?
i mean if a user buy an adjustable_quantity plan for others users also, so what infos we need to store on your side (databasse) and which apis we need to use
so what infos we need to store on your side (databasse) and which apis we need to use
it depends. what exactly are you trying to do, and what is the issue?
okay so it i make a recurring payment, so stripe will charge the customer automatically after that, if user select anually plan
await this.stripe.checkout.sessions.create({
payment_method_types: ['card', 'us_bank_account'],
mode: 'subscription',
line_items: [
{
price: 'priceId',
quantity: 1,
adjustable_quantity: {
enabled: true,
minimum: 1,
maximum: 10,
},
},
],
success_url: ${localhost}?session_id={{CHECKOUT_SESSION_ID}},
cancel_url: ${localhost}?canceled=true,
automatic_tax: { enabled: true },
});
and tell me is this code correct?
okay so it i make a recurring payment, so stripe will charge the customer automatically after that, if user select anually plan
yes, once the Checkout Session is succesfull, Stripe will automatically charge the user at every billing cycle
and tell me is this code correct?
the best way to check if a code is correct is to try it in test mode