#sarvesh3742_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/1217772634494730311
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
HI
Could you please share more details ?
Yes, we want to integrate Subscription with 15 days trial and it should not ask user about payment but after trial is over user should see a page to enter the card details and pay to use the application further. Which API to use to achive this goal?
this in php application so provide help support to php
You can use Stripe Checkout for this. Firstly you create a Checkout Session without collecting the payment method following this guide:
https://docs.stripe.com/payments/checkout/free-trials
Then you follow step 2 in that guide in oder to ask the customer to fill their payment method
ok, this will be for recurring payment subscriptions right?
Yes
ok and we want to give the 50% discount on the 1st payment and recurring payments will be chare with full plan amount, so what to do for this?
After the Subscription is created, you can achieve this using the Dashboard or the APIs:
https://docs.stripe.com/billing/subscriptions/coupons
ok we want to do it using APIs only
when trial period is over, webhook event will send us stripe payment page link which we need to show user to capture a payment or we need to create our page to render Stripe Payment Form with JS and post to Stripe?
The webhook event is just for updating the status and notify your integration
So yes you can invite the customer to your webpage and ask them to complete their payment
or you can configure Stripe Emailing from your dashboard
And Stripe will send the customer an email automatically and ask them to enter their card details.
ok, thanks will check this option also
Happy to help!