#rohith_webhooks
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
🔗 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/1211996907380154370
📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.
⏲️ 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. Thank you for your patience!
The eventId you've shared is checkout.session.completed
Here are all the available webhook events for monitoring the Subscription:
https://docs.stripe.com/billing/subscriptions/webhooks
if you listen to the invoice.paid event you should get the end_date field:
https://docs.stripe.com/api/invoices/object#invoice_object-period_end
eventId evt_1OoONOCdRI7rcOCIh9IS57Av
You have the period in lines.data[0].period
I saw period_start and period_end under object which has same date
There is one more thing.
When I added pricing table, I have edited conformation page redirect to my localhost. But it is not working
I saw period_start and period_end under object which has same date
No it's not the same date:
"period": {
"end": 1711537146,
"start": 1709031546
}
Please double check
Can you share the pricing table link ?
Did you mean pricing table id
Yes
prctbl_1Oh9BbCdRI7rcOCIEeLwEEPv
You are looking at the wrong place, please refer to what I've shared with you earlier: lines.data[0].period
thanks, checking...
Ok the redirection is set and I see your link http://localhost:5173/success
How did you make your tests ?
I know I was looking at wrong place. That's what I am saying
I am running react on my laptop
I will check now and confirm it
I just made a test and the redirection is working fine.
It is not working on mine
I have tested in ordinary html it is still not working
Can you show me how did you do?
Are you seeing the pricing table at least ?
yes
after completion what are you seeing ? can you share some screenshots or recording ?
hi! I'm taking over this thread.
can you share your pricing table ID (prctbl_xxx)?
is it this one? prctbl_1Oh9BbCdRI7rcOCIEeLwEEPv
thanks! give me a few minutes to look into this.
ok
are you sure you are using this Pricing Table ID? can you share your code?
<script async src="https://js.stripe.com/v3/pricing-table.js"></script>
<stripe-pricing-table
pricing-table-id="prctbl_1Oh9BbCdRI7rcOCIEeLwEEPv"
publishable-key="pk_test_51HkpbmCdRI7rcOCIuJJ83ln8xZiJV65ydgncPvT3yc0MqK2HJKVmLjsR2A7ttU2jOebWWA4B5I7KRqja6PFHXAoI00nzMHkq4d"
>
</stripe-pricing-table>
you only set a redirect URL for the prmium plan:
the other plan have a convirmation page setup:
Ok
So, I need to change in all the plan
My bad
If I have doubt pricing plan or subscription in which section I need to click and fill in help channel
I'm not sure I understand your new question. can you clarify?
if you have a new question, you can jsut write it here
Stripe support have new method for asking question
If I have doubt pricing table or subscription inside stripe in which section I need to click and fill in help channel
I just told you: if you have a new question, just post it here in this thread and I can help
Both of you thanks
This thread won't shut down like the last method did after a while.
yes after some time we automatically close the thread, but then you can create a new one. and which button to click depends on your exact question.