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

StripePI: Update eci format #5097

Merged
merged 1 commit into from
Apr 17, 2024
Merged

StripePI: Update eci format #5097

merged 1 commit into from
Apr 17, 2024

Conversation

almalee24
Copy link
Contributor

Update eci format to always be two digits.

Unit:
60 tests, 311 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

Remote:
93 tests, 444 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

@almalee24 almalee24 requested a review from a team April 16, 2024 21:21
Copy link
Contributor

@DustinHaefele DustinHaefele left a comment

Choose a reason for hiding this comment

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

This looks good. I left one change to ensure we don't throw an error if eci_value is nil, but if you put that change in I approve!

def format_eci(payment_method, options)
eci_value = payment_method.respond_to?(:eci) ? payment_method.eci : options[:eci]

if eci_value.length == 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if eci_value.length == 1
if eci_value&.length == 1

Update eci format to always be two digits.

Unit:
60 tests, 311 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
93 tests, 444 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
@almalee24 almalee24 merged commit 6cfbd1e into master Apr 17, 2024
0 of 5 checks passed
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