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

Add BIN for Maestro #4799

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* CyberSource: Enable auto void on r230 [aenand] #4794
* Redsys: Set appropriate request fields for stored credentials with CITs and MITs [BritneyS] #4784
* Stripe & Stripe PI: Validate API Key [almalee24] #4801
* Add BIN for Maestro [jcreiff] #4799

== Version 1.129.0 (May 3rd, 2023)
* Adyen: Update selectedBrand mapping for Google Pay [jcreiff] #4763
Expand Down
2 changes: 1 addition & 1 deletion lib/active_merchant/billing/credit_card_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module CreditCardMethods
MAESTRO_BINS = Set.new(
%w[ 500057
501018 501043 501045 501047 501049 501051 501072 501075 501083 501087 501089 501095
501500
501500 501623
501879 502113 502120 502121 502301
503175 503337 503645 503670
504310 504338 504363 504533 504587 504620 504639 504656 504738 504781 504910
Expand Down
4 changes: 2 additions & 2 deletions test/unit/credit_card_methods_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def maestro_card_numbers
6390000000000000 6390700000000000 6390990000000000
6761999999999999 6763000000000000 6799999999999999
5000330000000000 5811499999999999 5010410000000000
5010630000000000 5892440000000000
5010630000000000 5892440000000000 5016230000000000
]
end

Expand All @@ -28,7 +28,7 @@ def non_maestro_card_numbers
def maestro_bins
%w[500032 500057 501015 501016 501018 501020 501021 501023 501024 501025 501026 501027 501028 501029
501038 501039 501040 501041 501043 501045 501047 501049 501051 501053 501054 501055 501056 501057
501058 501060 501061 501062 501063 501066 501067 501072 501075 501083 501087
501058 501060 501061 501062 501063 501066 501067 501072 501075 501083 501087 501623
501800 501089 501091 501092 501095 501104 501105 501107 501108 501500 501879
502000 502113 502301 503175 503645 503800
503670 504310 504338 504363 504533 504587 504620 504639 504656 504738 504781 504910
Expand Down