#Дмитрий Кузьмин

1 messages · Page 1 of 1 (latest)

sick vigilBOT
tall otter
#

Hi! It's best to get it from the invoice.paid webhook event.

#

But how would you get an Invoice ID before creating a Subscription?

sick vigilBOT
tidal needle
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

tepid spear
#

That is, I create a checkout with the data that I would like to receive at invoice.paid, to mark them with myself. But I couldn't find any way to transfer the data via checkout.

tepid spear
tidal needle
#

But I couldn't find any way to transfer the data via checkout.
Data can't be transferred from one object to another in general when using Stripe APIs.
Can I pass the identifier through "checkout" in subscription_data.metadata and then get it in invoice.subscription ?
You can set metadata in checkout's subscription_data.metadata and get it from the Subscription object

tepid spear
#

Okay. Thank you.