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

Commit

Permalink
Merge pull request #244 from stripe/jenan-remove-visa-electron
Browse files Browse the repository at this point in the history
Remove `visaelectron` from card brands.
  • Loading branch information
jenanwise authored Aug 23, 2016
2 parents 88fcc8a + 24969c7 commit 96fb32d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Supported card types are:
* Discover
* UnionPay
* JCB
* Visa Electron
* Maestro
* Forbrugsforeningen
* Dankort
Expand Down Expand Up @@ -160,7 +159,6 @@ Returns a card type. Either:
* `discover`
* `unionpay`
* `jcb`
* `visaelectron`
* `maestro`
* `forbrugsforeningen`
* `dankort`
Expand Down
7 changes: 0 additions & 7 deletions lib/jquery.payment.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/jquery.payment.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions src/jquery.payment.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ $.payment.cards = cards = [
cvcLength: [3]
luhn: true
}
{
type: 'visaelectron'
patterns: [
4026, 417500, 4405, 4508, 4844, 4913, 4917
]
format: defaultFormat
length: [16]
cvcLength: [3]
luhn: true
}
{
type: 'maestro'
patterns: [
Expand Down
4 changes: 0 additions & 4 deletions test/specs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ describe 'jquery.payment', ->
assert.equal topic, false

it 'should validate for all card types', ->
assert($.payment.validateCardNumber('4917300800000000'), 'visaelectron')

assert($.payment.validateCardNumber('6759649826438453'), 'maestro')

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

it 'should return correct type for all test numbers', ->
assert.equal($.payment.cardType('4917300800000000'), 'visaelectron')

assert.equal($.payment.cardType('6759649826438453'), 'maestro')
assert.equal($.payment.cardType('6220180012340012345'), 'maestro')

Expand Down

0 comments on commit 96fb32d

Please sign in to comment.