#raulgq

1 messages · Page 1 of 1 (latest)

ancient irisBOT
fresh mountain
#

Hello!

#

Right now we don't have a way to propagate the metadata that was set on a subscription down to it's charges

#

The only workaround I can think of is to listen for payment intent creation for a subscription, update the payment intent to set metadata, and once the payment intent is paid it would copy that metadata down to the cahrge

midnight kiln
#

ok, when I confirm a payment Can I send the metadata ?

#
  • a payment intent
fresh mountain
#

No, you'd have to set the metadata on the payment intent BEFORE it's being confirmed

midnight kiln
#

ok I'll try that

#

one more question

#

Can I create a rule to select an specific price_id ? or is needed set the price_id like a metadata to the payment intent ?

fresh mountain
#

As far as I know there's no way to create a rule checking for a specific price ID - you'd need to put in the metadata