From fcd1a1a7a1534c3d2a6572e5cd91c650d76d685f Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Thu, 26 Mar 2020 08:48:47 +0000 Subject: [PATCH] [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) --- addons/payment_authorize/models/authorize_request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/payment_authorize/models/authorize_request.py b/addons/payment_authorize/models/authorize_request.py index ffb915101a0..4d28aed0396 100644 --- a/addons/payment_authorize/models/authorize_request.py +++ b/addons/payment_authorize/models/authorize_request.py @@ -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': {