pinax-stripe-light icon indicating copy to clipboard operation
pinax-stripe-light copied to clipboard

Add optional metadata to a charge

Open benjamindell opened this issue 9 years ago • 2 comments

When making a one off charge (though I suspect this could also be the case for subscription payments too), it is often useful to send a custom field to Stripe so that it is attached to that specific charge (i.e. such as the ID of the product that you have charged the customer for). Your customer.charge method does not allow the metadata argument to be passed. Is this something you'd consider adding? Right now it looks like we'll have to add this in ourselves which i'd ideally prefer not to do.

benjamindell avatar Apr 08 '15 11:04 benjamindell

:+1: on supporting metadata access

paltman avatar Nov 28 '15 05:11 paltman

Metadata should be supported for all objects. There is some WIP in https://github.com/pinax/pinax-stripe/pull/536, where it has been done for subscriptions, but it should really be done in a generic way.

blueyed avatar Aug 28 '18 13:08 blueyed