[FIX] payment_authorize: send the full reference for s2s transactions

invoiceNumber is limited to 20 characters so if the reference in Odoo
is longer we send an incomplete reference. This makes it hard to match
up S2S payment.transactions in Odoo with their counterparts in the
Authorize.net portal.

To solve this send the full reference in the description field (which
has a max length of 255 characters [1]).

[1] https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-customer-profile

closes odoo/odoo#64179

X-original-commit: 5504ad189f66c63b930ae5a6f5838b8478ba28ec
Signed-off-by: jorenvo <jorenvo@users.noreply.github.com>
This commit is contained in:
Joren Van Onder
2021-01-06 22:35:09 +00:00
parent 996c2eadf1
commit 5c113a8f50
@@ -212,7 +212,8 @@ class AuthorizeAPI():
}
},
'order': {
'invoiceNumber': reference[:20]
'invoiceNumber': reference[:20],
'description': reference[:255],
}
}
@@ -265,7 +266,8 @@ class AuthorizeAPI():
}
},
'order': {
'invoiceNumber': reference[:20]
'invoiceNumber': reference[:20],
'description': reference[:255],
}
}