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

Cybersource: update supported card types #2477

Merged
merged 2 commits into from Jun 21, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,6 +1,7 @@
= ActiveMerchant CHANGELOG

== HEAD
* Cybersource: update supported card types [bdewater] #2477
* Moneris: Add 3DS fields for decrypted Apple and Android Pay data [davidsantoso] #2457
* Trexle: Add gateway support [hossamhossny] #2351
* QuickPay V10: Return last response for purchase and authorize [curiousepic] #2461
Expand Down
9 changes: 7 additions & 2 deletions lib/active_merchant/billing/gateways/cyber_source.rb
Expand Up @@ -26,7 +26,7 @@ class CyberSourceGateway < Gateway

XSD_VERSION = "1.121"

self.supported_cardtypes = [:visa, :master, :american_express, :discover]
self.supported_cardtypes = [:visa, :master, :american_express, :discover, :diners_club, :jcb, :switch, :dankort, :maestro]
self.supported_countries = %w(US BR CA CN DK FI FR DE JP MX NO SE GB SG LB)

self.default_currency = 'USD'
Expand All @@ -39,7 +39,12 @@ class CyberSourceGateway < Gateway
:visa => '001',
:master => '002',
:american_express => '003',
:discover => '004'
:discover => '004',
:diners_club => '005',
:jcb => '007',
:switch => '024',
:dankort => '034',
:maestro => '042'
}

@@response_codes = {
Expand Down