diff options
| author | Damien Bouvy <dbo@odoo.com> | 2020-03-26 08:48:47 +0000 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2020-03-26 10:57:20 +0000 |
| commit | fcd1a1a7a1534c3d2a6572e5cd91c650d76d685f (patch) | |
| tree | 9c8fe35466fea3410a9f58b6f08e64e07b35171f | |
| parent | 50e425ce02bc7b2476dc9b97286a550e945abdb7 (diff) | |
[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>
| -rw-r--r-- | addons/payment_authorize/models/authorize_request.py | 3 |
1 files changed, 2 insertions, 1 deletions
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': { |
