Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal Sandbox - Invalid Merchant Configuration error 10501?

I'm trying to do a DoDirectPayment with the Sandbox API

I have been testing with code that I know works but my API credentials are getting the following error back from the Sandbox API

[L_ERRORCODE0] => 10501
[L_SHORTMESSAGE0] => Invalid Configuration
[L_LONGMESSAGE0] => This transaction cannot be processed due to an invalid merchant configuration

After looking up the error code I found that the problem "Occurs when the billing agreement is disabled or inactive."

I have searched Google intensively for how to Agree to the Billing Agreement in the sandbox but to no prevail

Has anyone had this issue and know how to switch it on?

like image 624
Sean H Jenkins Avatar asked May 11 '12 14:05

Sean H Jenkins


3 Answers

Like the the other answers say, you need to to enable Payments Pro in your sandbox account. As of July 2013, you can do this with the steps below.

  1. Login to your developer.paypal.com account
  2. Go to Applications -> Sandbox Accounts
  3. Click the sandbox account you want to upgrade to Pro, and then click 'profile'
  4. There should be an Upgrade to Pro option in the dialog that pops up

Note the paypal developer website has been changing quite a bit recently, so your mileage may vary...

like image 135
zlovelady Avatar answered Jan 01 '23 21:01

zlovelady


There was recently a redesign of the developer site.

I don't know about existing accounts, but for new accounts you cannot use the default "facilitator" sandbox test account for testing the classic api ... you have to make a new business sandbox test account and use the credentials from that. This is true even though the "facilitator" account is a business account.

The sandbox accounts are created in https://developer.paypal.com/ -> Applications -> Sandbox accounts (link on left side) -> Create Account (button on right side)

like image 23
A Dumb Rhine King Avatar answered Jan 01 '23 22:01

A Dumb Rhine King


It means your sandbox test account is not set up for Payments Pro.
Go to https://developer.paypal.com > Test accounts > preconfigured and create a preconfigured US Website Payments Pro test account.

like image 24
Robert Avatar answered Jan 01 '23 22:01

Robert