From 60451131143239737083a740607897a45caa2026 Mon Sep 17 00:00:00 2001 From: pankti459 <22502595+pankti459@users.noreply.github.com> Date: Fri, 24 Aug 2018 19:31:54 +0530 Subject: [PATCH] Update forms.py CRL2-4581:add metadata to stripe charge --- payments/stripe/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/payments/stripe/forms.py b/payments/stripe/forms.py index 26641414f..975150001 100644 --- a/payments/stripe/forms.py +++ b/payments/stripe/forms.py @@ -40,7 +40,8 @@ def clean(self): card=data['stripeToken'], description='%s %s' % ( self.payment.billing_last_name, - self.payment.billing_first_name)) + self.payment.billing_first_name), + metadata={'Job Board Order#':str(self.payment.order.id), 'Client':self.payment.description}) except stripe.CardError as e: # Making sure we retrieve the charge charge_id = e.json_body['error']['charge']