[FIX] payment_authorize: include phone in customer profile

It is possible to define required fields from the Authorize.net backend
without which no customer profile can be created. These fields include
data that Odoo sometimes does not have at all (fax number, anyone?);
however including the phone number is a meaningful option.

Before this commit, if the 'phone number' was required by the
Authorize.net configuration and was correctly set in Odoo, this still
did not work because we did not include the phone number with the
customer profile creation request payload.

We do now.

opw-2215332

closes odoo/odoo#48420

X-original-commit: 034c04efa4ccecd40f657eae97ef2b04934d570c
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
Damien Bouvy
2020-03-26 10:57:20 +00:00
parent 50e425ce02
commit fcd1a1a7a1
@@ -90,7 +90,8 @@ class AuthorizeAPI():
'city': partner.city,
'state': partner.state_id.name or None,
'zip': partner.zip or '',
'country': partner.country_id.name or None
'country': partner.country_id.name or None,
'phoneNumber': partner.phone or '',
},
'payment': {
'opaqueData': {