pinax / pinax-stripe-light

a payments Django app for Stripe
MIT License
684 stars 285 forks source link

Add optional metadata to a charge #158

Open benjamindell opened 9 years ago

benjamindell commented 9 years ago

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.

paltman commented 8 years ago

:+1: on supporting metadata access

blueyed commented 6 years ago

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.