#TBM
1 messages · Page 1 of 1 (latest)
👋 @obtuse walrus How could I help?
#1070135276950802593 message i was told i can recieve metadata through an invoice.created event. How do i make sure there is metadadata in the intitial payment using https://dashboard.stripe.com/test/customers/cus_NH1TmDQuQBNYdp?create=subscription&subscription_default_customer=cus_NH1TmDQuQBNYdp this method of creating a subscirption?
What my coworker meant is that once you receive invoice.created event, you can add metadata to the invoice. Not that you can retrieve metadata from invoice.created event.
Metadata is not populated/propagated from subscription to invoices automatically by Stripe. You have to add to invoices on your own after an invoice is created.
so when a customer pays a subscription, how do i know if the new payment is connected to the old one then?
When a customer pays to an invoice of a subscription, the invoice.paid event will contain subscription ID under subscription parameter. It will allow you to understand which subscription that the payment is connected to: https://stripe.com/docs/api/invoices/object#invoice_object-subscription
Ok. So for testing purposes, i want the subscription to have a metadata. How would i do that when creating a subscription in the dashboard?
is it possible?
im trying to use a test clock.
The subscription creation in Dashboard doesn't support adding metadata, but you can add metadata in the Subscription page after a subscription is created.
I need to go to sleep now so ill have to test this later. So for clarification can you send me the link to the subscription page please?