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

534 Views Asked by At

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
3

There are 3 best solutions below

0
On BEST ANSWER

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
0
On

List of supported cards and their identifiers https://docs.spreedly.com/reference/supported-cards/. List of credit card numbers to use https://docs.spreedly.com/reference/test-data/.

0
On

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.