summaryrefslogtreecommitdiff
path: root/addons/note/data/res_users_data.xml
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2019-08-30 22:22:11 +0000
committerJoren Van Onder <jov@odoo.com>2019-09-05 17:25:27 +0000
commit5e13e13a207910aadfa98a1186ba3632303db213 (patch)
tree6e3bcbac6d547e8718a528fb754acb03c25cac27 /addons/note/data/res_users_data.xml
parent0aa4bd1da913961f2f54c1a790c9f78a8ee2531f (diff)
[FIX] payment_authorize: create a customer profile for ACH transactions
The response profile of an ACH transaction won't contain a credit card number since ACH transactions use bank accounts instead. It looks like this: <getCustomerPaymentProfileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <messages> ... </messages> <paymentProfile> <billTo> <firstName>XXX</firstName> <lastName>XXXX</lastName> <address>XXX XXX XXX</address> <city>XXX</city> <state>XX</state> <zip>XXXXX</zip> <country>XXX</country> <phoneNumber>XXXXXXXXX</phoneNumber> </billTo> <customerProfileId>XXXXXXXXX</customerProfileId> <customerPaymentProfileId>XXXXXXXXX</customerPaymentProfileId> <payment> <bankAccount> <accountType>checking</accountType> <routingNumber>XXXXXXXX</routingNumber> <accountNumber>XXXXXXXX</accountNumber> <nameOnAccount>XXX</nameOnAccount> <echeckType>WEB</echeckType> </bankAccount> </payment> </paymentProfile> </getCustomerPaymentProfileResponse> This causes the transaction not to get confirmed in Odoo: ... File ".../authorize_request.py", line 241, in create_customer_profile_from_tx res['name'] = response_profile.find('paymentProfile/payment/creditCard/cardNumber').text AttributeError: 'NoneType' object has no attribute 'text' - - - To solve it fall back on the accountNumber if there's no cardNumber. opw-2062784 closes odoo/odoo#36298 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/note/data/res_users_data.xml')
0 files changed, 0 insertions, 0 deletions