#zerosodium

1 messages · Page 1 of 1 (latest)

frank badgerBOT
weak canopy
#

Unfortunately, that will only get you part way though since it'll set the metadata on the subscription, and not the Invoice/PI.

plush sparrow
#

so there's no way to attach any information from the embeded checkout that will pipe to the payment intent succeded event?

weak canopy
#

No, currently it's not possible if you're in subscription mode. Your best option would be to retrieve the assocaited Subscription when you get the payment_intent.succeeded event

plush sparrow
#

ah ok, so once I set that, I'll recieve the webhook with the subcriptionid, and lookup the metadata that way, correcto?

weak canopy
#

Almost! To be more accurate, your webhook would include the full PaymentIntent which includes an invoice attribute. You can retrieve that Invoice and expand subscription to get both the Invoice and Subscription (with the metadata you need) in a single request