#Tony Thomas - subscritions

1 messages · Page 1 of 1 (latest)

heavy marsh
#

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 an invoice property that can help with this

cerulean heart
#

Aha, okey - maybe coming in that reverse direction should be the way to go then. Paymentintent -> Invoice -> Metadata

heavy marsh
#

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.

cerulean heart
#

Aha, yes. I am planning to do exactly that.

#

invoice.payment_scuceeded seems to be thing to look forward to