#oftysterista_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/1333687277901053992
📝 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.
- oftysterista_api, 5 days ago, 31 messages
- oftysterista_api, 5 days ago, 87 messages
- oftysterista_api, 6 days ago, 33 messages
- oftysterista_best-practices, 6 days ago, 25 messages
Hello
How can we add metadata to subscription. and when the next period comes and the user paid. we still can have the same metadata there?
in the event listener
Hi! You can either add the metadata when you create a subscription (https://docs.stripe.com/api/subscriptions/create#create_subscription-metadata) or you can update the subscription (https://docs.stripe.com/api/subscriptions/update#update_subscription-metadata).
If you don't change the metadata, it will remain.
the metadata will not appear in the paymentIntent?
if i want to generate invoice(my internal invoice not stripe) when the customer successfully charge we dont use paymentIntent_succeeded event listener?
the metadata will not appear in the paymentIntent?
Are you referring to the payment intent created when an Invoice is created for a Subscription?
if i want to generate invoice(my internal invoice not stripe) when the customer successfully charge we dont use paymentIntent_succeeded event listener?
By internal invoice, are you still referring to the Stripe Invoice product?
actually i havent develop it.
but i want to know the best practice is i want to create an invoice outside stripe everytime customer charged.
what event i should listen?
Is the customer paying for a standalone payment or for a Subscription?
let say subscription for noiw
If it's a standalone payment you cna listen to payment_intent.succeeded.
If it's for a subscription you can listen to payment_intent.succeeded , invoice.paid and invoice.payment_succeeded.
what is the different between invoice.paid and invoice.payment_succeeded?
i think i will not use payment_intent.succeeded for subscription. because i dont see the subs metadata there
The difference is that invoice.payment_succeeded events are sent for successful invoice payments, but aren’t sent when you mark an invoice as paid_out_of_band. invoice.paid events, on the other hand, are triggered for both successful payments and out of band payments.
okayy thanks
is that possible that i create external invoice first before customer got charged?
What is an external invoice?