Search code examples
ruby-on-railsrubystripe-paymentsstripe-connect

Stripe gem - Discover, Diners Club and JCB cards - Your card is not supported


I am using stripe gem and I am trying to add a credit card with the following code as the documentation suggests:

Stripe::Token.create(
  :card => {
    :number => "4242424242424242",
    :exp_month => 1,
    :exp_year => 2017,
    :cvc => "314"
  },
)

I tried all of the test card numbers from this page of stripe and it seems it doesn't work for the diners club, discover and JCB.

The error I am getting from stripe is Stripe::CardError: Your card is not supported when I am using one of the above cards, but it works fine with visa, mastercard and american express. Why is this happening? Should I enable the cards from somewhere on the stripe panel or should I pass some extra parameter?


Solution

  • Only U.S. businesses can accept Diners Club, Discover and JCB. I think you have a non-US stripe account.