#tonz18_webhooks
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/1293074439017205760
đ 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.
- tonz18_webhooks, 16 hours ago, 18 messages
- No, you customer is unable to change the email address if
customer_emailis set - What data do you want to match?
- Thanks
- how do I match the invoice.paid to checkout.session.completed to ensure payment was successful
You should listen to invoice.paid event to get notified about invoice payment status. checkout.session.completed is fired when your customer completes the payment, the payment status could still be pending.
yes i understand that.
But when I recieve invoice.paid how do I link it to the already recieved checkout.session.complted.??
Sure, you can get the subscription ID from the invoice object, and call this API https://docs.stripe.com/api/checkout/sessions/list#list_checkout_sessions-subscription to get the ID of the checkout session that created this subscription.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
kk and also how to i genrate a link for the user to manager their billing settings at a later date
You mean billing portal? https://docs.stripe.com/customer-management/integrate-customer-portal
yh
how long can it take for the invoice.paid to be called after theh subcribtion.complted?
like im not 100% sure what todo with the data from checkout.session.completed
It depends on the payment method that your customer use. For exmaple if it's a delayed payment method like ACH https://docs.stripe.com/payments/ach-direct-debit, it will take up to a few days.
can we disable ACH
and what are we meant todo between checkout.session.completed invoice.paid
Yes, you can disable ACH in https://dashboard.stripe.com/settings/billing/invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
In checkout.session.completed event, it will return the subscription created: https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-subscription
Similar in invoice.paid event, it will return subscription as well: https://docs.stripe.com/api/invoices/object#invoice_object-subscription
You can use subscription from both events to link them together. You should listen to invoice.paid event for the successful payment on the subscription.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
via the cli can we simulate a invoice.paid event that has a subscription attached to it?
invoice.paid event in CLI only simulates one-time invoice, not with subscription
You'd need to integrate subscription flow in order to get invoice.paid event on subscription
ok
Will i also get a invoice.paid call if a ccustomer was to renew or upgrade there subscription?
renewal: yes
upgrade: yes only if an invoice is generated after the update
can you explain the upgrade scenario
im currently testing with invoice.paid but every call im getting is nilling_reason subscription_upgrade. Even when its a new subscription
subscription id is sub_1Q7XyhESSezYwJ0nS0mtyXTv
https://dashboard.stripe.com/test/logs/req_k2GNuaDZUWCgQg that's the because the API version that the checkout page uses to create the subscription is 2018-09-06, and subscription_create was only introduced in https://docs.stripe.com/upgrades#2018-10-31
Thanks for calling out this, I'd feed back to the checkout team