[FIX] payment_stripe: add email for shipping partner

Before this commit, the shipping partner was created without an email
address.

After this commit, the shipping partner will be created with the email
given by the customer on the express checkout form.

closes odoo/odoo#120037

X-original-commit: 527b498811d3e3f83ca64bf58f5c0a882432bf87
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Valentin Chevalier
2023-04-28 12:26:46 +02:00
parent 09ac15e2dd
commit f18bdad78a
@@ -105,6 +105,7 @@ paymentExpressCheckoutForm.include({
if (this.txContext.shippingInfoRequired) {
addresses.shipping_address = {
name: ev.shippingAddress.recipient,
email: ev.payerEmail,
phone: ev.shippingAddress.phone,
street: ev.shippingAddress.addressLine[0],
street2: ev.shippingAddress.addressLine[1],