#animesh5991_webhooks
1 messages · Page 1 of 1 (latest)
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.
- animesh5991_api, 5 days ago, 19 messages
- animesh5991_api, 5 days ago, 23 messages
👋 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/1230442085375676448
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
This can be found on the Charge object: https://docs.stripe.com/api/charges/object#charge_object-receipt_url
can i also get this url which comes on this pay online button?
THis is thie one
https://invoice.stripe.com/i/acct_1OkSl7JX5V9XswsN/live_YWNjdF8xT2tTbDdKWDVWOVhzd3NOLF[…]dXUxVkJuS3BEMktjSTh2dWtjdjBjLDEwMzcwMDQzMQ02006NvfVqjd?s=db
That's the Invoice.hosted_invoice_url: https://docs.stripe.com/api/invoices/object#invoice_object-hosted_invoice_url
And for a payment intent will this be available with the charge object?
the hosted url i mean
The hosted invoice or receipt you mean?
Invoice URL or receipt URL?
The PaymentIntent.invoice.hosted_invoice_url will contain the Invoice URL, and the PaymentIntent.latest_charge.receipt_url will contain the Receipt URL
cool
You will need to expand the invoice and latest_charge properties: https://docs.stripe.com/expand
And one more question, I want to get the fee that stripe charges for the subscription and payment intents, can i get these details through the webhook?
You can get the PaymentIntent via payment_intent.succeeded, and then from there get the latest_charge and then the balance_transaction object. You will find the fee on the Balance Transaction: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee
For both the payment_intent and subscription this will work?
i have to hit multiple apis for this right? can be done with expand?
Yes. Subscriptions create an Invoice object on every billing cycle, and that Invoice uses a PaymentIntent to charge the customers.
Yes, you can expand: latest_charge.balance_transaction
https://docs.stripe.com/expand
Happy to help.