Search code examples
paypalpaypal-rest-sdk

Paypal pro API and validation error while payment


I'm using Paypal Pro API (not the hosted payments) to process my website payments. It works fine with some credit cards and I'm able to finish the payment but for mastercard type I get following error from API:

Value is invalid (must be visa, mastercard, amex or discover)

Please note that I'm using mastercard but still I get that error. Is there any configuration or options in Paypal control panel to enable or disable accepted cards?


Solution

  • The value needs to be MasterCard as opposed to mastercard. It is case sensitive.