#Tony Thomas - subscritions
1 messages · Page 1 of 1 (latest)
Hi there!
No it's not possible to directly set the PaymentIntent metadata when creating the subscription. But when the PayemntIntent are created, you can update them to include metadata.
so that I can distinguish it easily from the webhooks ?
Note that the PaymentIntent has aninvoiceproperty that can help with this
Aha, okey - maybe coming in that reverse direction should be the way to go then. Paymentintent -> Invoice -> Metadata
And note that the invoice has a subscription property.
And instead of listening to payment_intent.succeeded you could listen to invoice.payment_succeeded.
It really depends what you are trying to do.