Skip to content
This repository was archived by the owner on Jan 10, 2018. It is now read-only.

Commit 24969c7

Browse files
committed
Remove visaelectron.
We don't differentiate other Visa-branded sub-Visa brands (e.g. "Visa Debit"), there aren't clear public BIN range distinctions, and we had some false positives. Users who really want to differentiate Visa Electron can add their own custom ranges. This is a breaking change.
1 parent 88fcc8a commit 24969c7

File tree

5 files changed

+1
-24
lines changed

5 files changed

+1
-24
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Supported card types are:
4040
* Discover
4141
* UnionPay
4242
* JCB
43-
* Visa Electron
4443
* Maestro
4544
* Forbrugsforeningen
4645
* Dankort
@@ -160,7 +159,6 @@ Returns a card type. Either:
160159
* `discover`
161160
* `unionpay`
162161
* `jcb`
163-
* `visaelectron`
164162
* `maestro`
165163
* `forbrugsforeningen`
166164
* `dankort`

lib/jquery.payment.js

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/jquery.payment.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.payment.coffee

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ $.payment.cards = cards = [
3939
cvcLength: [3]
4040
luhn: true
4141
}
42-
{
43-
type: 'visaelectron'
44-
patterns: [
45-
4026, 417500, 4405, 4508, 4844, 4913, 4917
46-
]
47-
format: defaultFormat
48-
length: [16]
49-
cvcLength: [3]
50-
luhn: true
51-
}
5242
{
5343
type: 'maestro'
5444
patterns: [

test/specs.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ describe 'jquery.payment', ->
3939
assert.equal topic, false
4040

4141
it 'should validate for all card types', ->
42-
assert($.payment.validateCardNumber('4917300800000000'), 'visaelectron')
43-
4442
assert($.payment.validateCardNumber('6759649826438453'), 'maestro')
4543

4644
assert($.payment.validateCardNumber('6007220000000004'), 'forbrugsforeningen')
@@ -241,8 +239,6 @@ describe 'jquery.payment', ->
241239
assert.equal topic, null
242240

243241
it 'should return correct type for all test numbers', ->
244-
assert.equal($.payment.cardType('4917300800000000'), 'visaelectron')
245-
246242
assert.equal($.payment.cardType('6759649826438453'), 'maestro')
247243
assert.equal($.payment.cardType('6220180012340012345'), 'maestro')
248244

0 commit comments

Comments
 (0)