Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorize.net: truncate nameOnAccount for bank refunds #4808

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

jcreiff
Copy link
Contributor

@jcreiff jcreiff commented Jun 12, 2023

The API specification requires that the string be no longer than 22 characters; refunds will fail if this limit is exceeded

CER-670

REMOTE
85 tests, 304 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

UNIT
122 tests, 688 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

LOCAL
5525 tests, 77482 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

760 files inspected, no offenses detected

@jcreiff jcreiff requested a review from a team June 12, 2023 14:06
Copy link
Contributor

@rachelkirk rachelkirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve, but Tina is my spirit animal. 🍔

@@ -835,6 +835,18 @@ def test_successful_echeck_refund
assert_match %r{The transaction cannot be found}, refund.message, 'Only allowed to refund transactions that have settled. This is the best we can do for now testing wise.'
end

def test_successful_echeck_refund_truncates_long_account_name
check_with_long_name = check(name: 'Michelangelo Donatello-Raphael')
purchase = @gateway.purchase(@amount, check_with_long_name, @options)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You got beef with Leonardo?

The API specification requires that the string be no longer than 22 characters; refunds will fail if this limit is exceeded

CER-670

REMOTE
85 tests, 304 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

UNIT
122 tests, 688 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

LOCAL
5525 tests, 77482 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

760 files inspected, no offenses detected
@jcreiff jcreiff force-pushed the authorize_net_nameOnAccount_truncate branch from 2720a9c to 7fbffa0 Compare June 15, 2023 19:44
@jcreiff jcreiff merged commit 7fbffa0 into master Jun 15, 2023
@jcreiff jcreiff deleted the authorize_net_nameOnAccount_truncate branch June 15, 2023 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants