[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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user