Skip to content
Snippets Groups Projects
Commit 647a5fd7 authored by mafo-odoo's avatar mafo-odoo
Browse files

[FIX] payment_stripe: allow payment for client without mail


Problem: If you have a customer assigned to an invoice/quotation
without an e-mail address and then share a payment link with
the customer. If the customer clicks on 'Pay', he won't be
redirected to Stripe's checkout page. He'll get instead 'Invalid
e-mail address: False' (see the image attached).

Explanation:
When there is no e-mail address defined, Odoo sends 'False' to
Stripe but Stripe sees it as the e-mail address which is indeed
Invalid. To solve the issue we replace False by None for the email
value of a customer without email address.

opw-3007866

closes odoo/odoo#102778

X-original-commit: beb580c2
Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: default avatarFockedey Martin (mafo) <mafo@odoo.com>
parent 20902df5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment