#Maxime Beaudry - Checkout subscription metadata

1 messages · Page 1 of 1 (latest)

light raptor
#

There isn't a built in setting for that but there is a fairly straightforward way to achieve this. You can use the subscription_data.metadata parameter to set metadata on the subscription. That metadata won't automatically be copied over so you will want to listen to webhook events (probably either invoice.created or invoice.paid) and when that even triggers you can look at the metadata on the subscription and make an API call to populate the same value in your payment intent's metadata

icy solstice
#

Ok, thanks.