Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the card_type for MasterCard when using Spreedly with Paypal?

Spreedly's docs do not mention anything. Edit: They do indeed. I plead illiteracy.

Paypal's docs say the card type is "MasterCard", but actually trying to authorize with that will get you a "Card type is invalid." response from Paypal.

What is the magic string you need to successfully charge a MasterCard? Examples I have tried which did not work are:

  • MASTERCARD
  • MC
  • mastercard
  • MasterCard
  • mc
like image 801
Patrick McKenzie Avatar asked Mar 08 '11 14:03

Patrick McKenzie


2 Answers

In case others come here looking for the other card type strings, here they all are:

  • MasterCard: master
  • Visa: visa
  • American Express: american_express
  • Discover: discover
like image 136
ntalbott Avatar answered Nov 17 '22 18:11

ntalbott


After some trial and error, I found out that the correct answer is "Master".

This cost me some money, so I thought I would do some constructive venting by leaving some help for the next developer who wondered.

like image 33
Patrick McKenzie Avatar answered Nov 17 '22 17:11

Patrick McKenzie