summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorToufik Benjaa <tbe@odoo.com>2018-03-27 17:56:59 +0200
committerToufik Benjaa <tbe@odoo.com>2018-04-11 11:58:55 +0200
commit2a09289e32058fb6b16cab65ae1b962fbbd76b8a (patch)
tree54fb33a863c1fec56961cf8f2dd90de9dc376093 /addons
parentd64ce530711d924f2814f6646390967ab2441d7f (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/payment_stripe/models/payment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_stripe/models/payment.py b/addons/payment_stripe/models/payment.py
index 72c02fc5aed..515dd3bcd1c 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