From 2a09289e32058fb6b16cab65ae1b962fbbd76b8a Mon Sep 17 00:00:00 2001 From: Toufik Benjaa <tbe@odoo.com> Date: Tue, 27 Mar 2018 17:56:59 +0200 Subject: [PATCH] [FIX] payment_stripe: Create stripe charge with email - When creating a Stripe charge, we have the possibility to send the customer email. This is then used by Stripe to send a payment notification (receipt) to the customer. This was never done by Odoo, this commit introduce this feature. OPW-1829945 --- addons/payment_stripe/models/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment_stripe/models/payment.py b/addons/payment_stripe/models/payment.py index 72c02fc5aeda..515dd3bcd1c3 100644 --- a/addons/payment_stripe/models/payment.py +++ b/addons/payment_stripe/models/payment.py @@ -109,7 +109,7 @@ class PaymentTransactionStripe(models.Model): @api.multi def stripe_s2s_do_transaction(self, **kwargs): self.ensure_one() - result = self._create_stripe_charge(acquirer_ref=self.payment_token_id.acquirer_ref) + result = self._create_stripe_charge(acquirer_ref=self.payment_token_id.acquirer_ref, email=self.partner_email) return self._stripe_s2s_validate_tree(result) @api.model -- GitLab