6

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
Patrick McKenzie
  • 4,066
  • 24
  • 23

3 Answers3

8

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.

Patrick McKenzie
  • 4,066
  • 24
  • 23
8

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
ntalbott
  • 256
  • 1
  • 5
0

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/.

Dmitry Polyakovsky
  • 1,535
  • 11
  • 31