#rbole

1 messages · Page 1 of 1 (latest)

ornate gustBOT
quick bloom
#

+1 was just about to ask the same question

nocturne sluice
quick bloom
#

very cool

nocturne sluice
quick bloom
#

can we also find metadata from the subscription inside the latest_charge attr?

nocturne sluice
#

You should be able to find the metadata of the subscription by further expanding the subscription object under the invoice with expanding latest_charge.invoice.subscription field

quick bloom
#

also one last question, whats the best way to check if a payment intent is a payment or subscription? Is there field to check payment type?

nocturne sluice
#

You can either check whether latest_charge.invoice.subscription is present or look for the description of the payment intent.

burnt fossil
#

If I use stripe trigger invoice.paid for local development, in the result the subscriptions seems to be null. the subscription: null,

quick bloom
nocturne sluice
#

If I use stripe trigger invoice.paid for local development, in the result the subscriptions seems to be null. the subscription: null
Can you share the event ID (evt_xxx)?

#

I see invoice field outside of latest charge, can't I just retrieve and expand tha directly?
invoice field is under the latest_charge. What do you want to retrieve?

quick bloom
#

what does the invoice field on top referer to? Isn't it the same as the one from latest_charge?

nocturne sluice
#

Ah I see! Then it's possible to expand invoice.subscription directly