I am having an issue configuring the WPP module. I followed the instructions on the following site:

http://www.drupalcommerce.org/node/2382

These instructions have helped me get through the bulk of the set up. However I cannot seam to complete a transaction using this module.

I was able to set up a test account with Paypal and I entered the API information from the Paypal sandbox account including the user name, password and signature, which were all provided by paypal.

When I attempted to complete a transaction I got the following error mesage as reported by the DRupal log.

PayPal WPP response:

Array
(
[TIMESTAMP] => 2012-03-25T21:07:50Z
[CORRELATIONID] => 845f96fe5a99e
[ACK] => Failure
[VERSION] => 76.0
[BUILD] => 2649250
[L_ERRORCODE0] => 10501
[L_SHORTMESSAGE0] => Invalid Configuration
[L_LONGMESSAGE0] => This transaction cannot be processed due to an invalid merchant configuration.
[L_SEVERITYCODE0] => Error
[AMT] => 9.00
[CURRENCYCODE] => CAD

Since I am getting an error code 10501, I thought this would be something that could help understand why I cannot complete the transaction.

However, since the WPP module is fairly simple, I am not sure what else I need to do to set up the account and process a test transaction.

Under rules I was able to find a rule titled "Paypal WPP- credit card" inside this rule I found an action titled " Enable payment method: PayPal WPP - Credit Card"

I entered the API information from Paypal as mentioned above, then I selected Sandbox, Authorization and capture as well as the Logging choices API request messages and API response messages.

Can you tell me what this error is referring to? Did I miss something in the configuation or is it a bug?

Comments

spineless’s picture

I took a look at the rules setting and I noticed that the rule labeled " PayPal WPP - Credit Card" has a status of "overridden" . What does this mean? What other rule could possibly override this rule? Maybe this is the reason why I have the error above.

Any ideas?

Rob_Feature’s picture

I'm getting this with the "Live" account credentials so I dont think it's sandbox related.

andyg5000’s picture

Overridden just means that you've updated the default values of the module. This is normal (you've put in your own settings). As for the original issue, can you post your request log as well?

andyg5000’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)
mlaw’s picture

I'm having the same issue as well. Latest install of Drupal and Commerce PayPal (on WAMP server, localhost). Seems pretty straight forward and have all the API keys correctly input. Is this a PayPal issue or a Drupal issue? Was looking at PayPal error codes, but they are not much help.

Sent info (I X'd out some info for privacy):

PayPal WPP request to https://api-3t.sandbox.paypal.com/nvp:
Array
(
[METHOD] => DoDirectPayment
[PAYMENTACTION] => Sale
[NOTIFYURL] => http://localhost/drupalck/commerce_paypal/ipn/paypal_wpp%7Ccommerce_paym...
[CREDITCARDTYPE] => Visa
[ACCT] => XXXXXXXXXXXX7099
[EXPDATE] => 082017
[AMT] => 1580.87
[CURRENCYCODE] => USD
[CVV2] => XXX
[INVNUM] => 4-1344532080
[CUSTOM] => Order 4
[DESC] => 1x PROD-XXXX
[EMAIL] => email@sitename.com
[IPADDRESS] => ::1
[FIRSTNAME] => XXX
[LASTNAME] => XXX
[STREET] => XXX
[STREET2] =>
[CITY] => Toronto
[STATE] => ON
[COUNTRYCODE] => CA
[ZIP] => XXX XXX
[USER] => name_1344521633_biz_api1.sitename.com
[PWD] => XXXXXXXXXX
[SIGNATURE] => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[VERSION] => 76.0
)

And the response log:

PayPal WPP response:
Array
(
[TIMESTAMP] => 2012-08-09T17:07:56Z
[CORRELATIONID] => 4273179e584e7
[ACK] => Failure
[VERSION] => 76.0
[BUILD] => 3435050
[L_ERRORCODE0] => 10501
[L_SHORTMESSAGE0] => Invalid Data
[L_LONGMESSAGE0] => This transaction cannot be processed.
[L_SEVERITYCODE0] => Error
[AMT] => 1580.87
[CURRENCYCODE] => USD
)

andyg5000’s picture

Status: Postponed (maintainer needs more info) » Fixed

Hey @mlaw,
The problem is with your local dev server configuration. Basically the ip_address() function cannot determine your IP and is setting "::1" as your ip. PayPal is rejecting this because it is not a valid IP.

Request Problem:
[IPADDRESS] => ::1
Should Be:
[IPADDRESS] => 127.0.0.1

see http://api.drupal.org/api/drupal/includes!bootstrap.inc/function/ip_addr...

mlaw’s picture

Thanks for the quick reply. I changed over to 127.0.0.1 and still got the same error 10501. At this point, I'm very puzzled.

PayPal WPP request to https://api-3t.sandbox.paypal.com/nvp:

Array
(
[METHOD] => DoDirectPayment
[PAYMENTACTION] => Sale
[NOTIFYURL] => http://127.0.0.1/drupalck/commerce_paypal/ipn/paypal_wpp%7Ccommerce_paym...
[CREDITCARDTYPE] => Visa
[ACCT] => XXXXXXXXXXXX0457
[EXPDATE] => 082017
[AMT] => 1399
[CURRENCYCODE] => USD
[CVV2] => XXX
[INVNUM] => 6-1344534428
[CUSTOM] => Order 6
[DESC] => 1x PROD-XXXX
[EMAIL] => email@sitename.com
[IPADDRESS] => 127.0.0.1
[FIRSTNAME] => XXXX
[LASTNAME] => XXX
[STREET] => 1234 Main St
[STREET2] =>
[CITY] => Buffalo
[STATE] => NY
[COUNTRYCODE] => US
[ZIP] => 14303
[USER] => name_1344521633_biz_api1.sitename.com
[PWD] => XXXXXXXXXX
[SIGNATURE] => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[VERSION] => 76.0
)

And response:

PayPal WPP response:

Array
(
[TIMESTAMP] => 2012-08-09T17:47:05Z
[CORRELATIONID] => 521ca69f15f6d
[ACK] => Failure
[VERSION] => 76.0
[BUILD] => 3435050
[L_ERRORCODE0] => 10501
[L_SHORTMESSAGE0] => Invalid Configuration
[L_LONGMESSAGE0] => This transaction cannot be processed due to an invalid merchant configuration.
[L_SEVERITYCODE0] => Error
[AMT] => 1399.00
[CURRENCYCODE] => USD
)

andyg5000’s picture

Status: Fixed » Active

Well you got a different error response at least. I'm setting this back to active and will try to reproduce again (haven't been able to yet).

andyg5000’s picture

Status: Active » Closed (works as designed)

This error appears to be caused by Direct Pay not being enabled on the PayPal account and is not caused by a misconfiguration with Commerce PayPal.

https://www.x.com/developers/paypal/forums/paypal-sandbox/transaction-ca...

mlaw’s picture

Thanks for all the helpful info. I'll look into this further and post up my results.

MrPeanut’s picture

I'm getting this error using Live (not sandbox). I am using Advanced (not Pro).

I enabled Express Checkout in the API Access settings in PayPal and copied the API username, password, and signature to the rule in Drupal Commerce.

Any other thoughts?

mlaw’s picture

This is how I resolved my Error 10501 issue. Thanks to andyg5000 for the guidance.

So, to get a properly functioning Sandbox PayPal Web Payment Pro (WPP) account do this:

  1. Register for an account at https://developer.paypal.com/
  2. Create a preconfigured U.S. seller test account with the option "Seller (Use to represent yourself as the merchant)" (do not choose the option "PayPal Payments Pro")
  3. Go to https://ppmts.custhelp.com/app/home and click Contact Technical Support. Submit a ticket that says you are developing a new site and request that they manually enable WPP for your sandbox account. This is also known as "manually accepting the billing agreement". Provide them with your U.S. seller test account (usually looks like name_1344533052_per@devsite.com).
  4. Wait for response (I was approved in a few hours)
  5. Enter the proper API username, API password, and API signature into your Commerce PayPal payment configuration. Turn on API logging to see pass/fail status.
  6. Test away!
arojoal’s picture

I have testes my configuration with sandbox and is working fine but when I switch to my Live configurations I get the same Error:

PayPal WPP request to https://api-3t.paypal.com/nvp:
Array
(
[METHOD] => DoDirectPayment
[PAYMENTACTION] => Sale
[NOTIFYURL] => http://cozydrupal.gynaika.net/commerce_paypal/ipn/paypal_wpp%7Ccommerce_...
[CREDITCARDTYPE] => Visa
[ACCT] => XXXXXXXXXXXX4018
[EXPDATE] => 112014
[AMT] => 18
[CURRENCYCODE] => USD
[CVV2] => XXX
[INVNUM] => 19-1358374253
[CUSTOM] => Order 19
[DESC] => 1x Iron on transfer
[EMAIL] => arojo@gynaika.net
[IPADDRESS] => 192.168.1.33
[FIRSTNAME] => alex
[LASTNAME] => rojo
[STREET] => paseo oriamendi 122
[STREET2] =>
[CITY] => donostia
[STATE] => gipuzkoa
[COUNTRYCODE] => ES
[ZIP] => 20009
[USER] => ............
[PWD] => XXXXXXXXXXXXXXXX
[SIGNATURE] => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[VERSION] => 76.0
)

PayPal WPP response:
Array
(
[TIMESTAMP] => 2013-01-16T22:10:55Z
[CORRELATIONID] => b4a9773e10892
[ACK] => Failure
[VERSION] => 76.0
[BUILD] => 4137385
[L_ERRORCODE0] => 10501
[L_SHORTMESSAGE0] => Invalid Configuration
[L_LONGMESSAGE0] => This transaction cannot be processed due to an invalid merchant configuration.
[L_SEVERITYCODE0] => Error
[AMT] => 18.00
[CURRENCYCODE] => USD
)

Any ideas?

Kristina Katalinic’s picture

Version: 7.x-1.x-dev » 7.x-2.3
Category: Support request » Bug report
Issue summary: View changes
Status: Closed (works as designed) » Active

I can confirm this is happening on my live site as well. Also I have no idea where the WPP is getting the $45.00 amount from as the actual sale account is $795.00

Remote ID	
Message	Authorization and capture - Failure
Error 10501: This transaction cannot be processed due to an invalid merchant configuration.
Amount	$45.00
Status	Failure
Remote status	Sale
Created	Wed, 01/22/2014 - 14:56
Payload	
Array
(
    [1390366584] => Array
        (
            [TIMESTAMP] => 2014-01-22T04:56:27Z
            [CORRELATIONID] => 8a32df35d813d
            [ACK] => Failure
            [VERSION] => 76.0
            [BUILD] => 8943548
            [L_ERRORCODE0] => 10501
            [L_SHORTMESSAGE0] => Invalid Configuration
            [L_LONGMESSAGE0] => This transaction cannot be processed due to an invalid merchant configuration.
            [L_SEVERITYCODE0] => Error
            [AMT] => 45.00
            [CURRENCYCODE] => USD
        )

)

Sandbox returns a different error but either way it just cannot successfully accept a credit card payment.

PayPal server response:
MESSAGE	PayPal server response:
Array
(
    [TIMESTAMP] => 2014-01-22T07:47:17Z
    [CORRELATIONID] => 80efbabe5f573
    [ACK] => Failure
    [VERSION] => 76.0
    [BUILD] => 8943548
    [L_ERRORCODE0] => 10525
    [L_SHORTMESSAGE0] => Invalid Data
    [L_LONGMESSAGE0] => This transaction cannot be processed. The amount to be charged is zero.
    [L_SEVERITYCODE0] => Error
    [AMT] => -700.00
    [CURRENCYCODE] => USD
)
SEVERITY	notice
HOSTNAME	1.120.184.159
OPERATIONS	
rszrama’s picture

Version: 7.x-2.3 » 7.x-2.x-dev
Category: Bug report » Support request
Priority: Critical » Normal

Have you contacted PayPal support yet?

skyredwang’s picture

This error is because you probably haven't "upgraded" your sandbox to "Pro". Go to your developer sandbox profile, then click upgrade.

webdrips’s picture

FYI, to follow up on #16 because it's easy to miss:

  1. Log on to developer.paypal.com
  2. Click the Accounts Link on the left
  3. Create a new account if you haven't already done so
  4. Copy your facilitator account if you haven't already done so using the blue icons on the far right of the table
  5. For you xxx-facilitator-1 account, click Profile
  6. Under account type, click "Upgrade to Pro"

Note you can also grab your API credentials for the account by clicking the Profile link, then the "API Credentials" tab.

capellic’s picture

@webdrips, thank you very much for distilling that down!

Dev8.addweb’s picture

Hi All,

I check this thread comment, from these mostly related to facing 10501 response error.

If response not done success and return with some error code then please check paypal response column 'L_ERRORCODE0'. If this response field return 10501 that means you need to check your configuration settings.

Please refer for more paypal error code use paypal site (https://developer.paypal.com/docs/classic/api/errorcodes/).

@Kristina Katalinic : You need to check your all configure variable values because from paypal first response error say that there is some configuration issue ([L_ERRORCODE0] => 10501) so once check and set proper all configuration values.

For the paypal second response is throw 'The amount to be charged is zero', This is because paypal not support zero or less then zero amount transaction but in you case amount is -700.00 USD. See https://developer.paypal.com/webapps/developer/docs/classic/express-chec...

Please feel free to contact for more about paypal module related issue/doubt.

Thanks!

dunx’s picture

Title: Paypal WPP confiuration Error 10501 » Paypal WPP configuration Error 10501
TechnoTim2010’s picture

Hi

An existing site (live for 4 months) uses Paypal WPS but non-UK EU customers need to have a paypal acct to pay by Credit/Debit Card. This is a problem, Paypal advise Paypal Business Pro is the way to go.

I am trying to set up a sandbox for testing and I am also getting the same 10501 error. Paypal Tech Support state this is an error with my paypal sandbox "seller" account not being properly updated to act as a test account for Paypal Business Pro. They are endeavouring to fix this.

This is clearly at odds with #19 but in keeping with #12 and #17

The messages I am receiving and sending are:

Array
(
[TIMESTAMP] => 2015-08-18T22:16:01Z
[CORRELATIONID] => 7f42850228e27
[ACK] => Failure
[VERSION] => 76.0
[BUILD] => 000000
[L_ERRORCODE0] => 10501
[L_SHORTMESSAGE0] => Invalid Configuration
[L_LONGMESSAGE0] => This transaction cannot be processed due to an invalid merchant configuration.
[L_SEVERITYCODE0] => Error
[AMT] => 639.03
[CURRENCYCODE] => GBP
)
My server sent
PayPal API request to https://api-3t.sandbox.paypal.com/nvp:

Array
(
[METHOD] => DoDirectPayment
[PAYMENTACTION] => Sale
[NOTIFYURL] => http://mydevsite/commerce_paypal/ipn/paypal_wpp%7Ccommerce_payment_paypa...
[BUTTONSOURCE] => CommerceGuys_Cart_PPP
[CREDITCARDTYPE] => Visa
[ACCT] => XXXXXXXXXXXX3618
[EXPDATE] => 052020
[AMT] => 639.03
[CURRENCYCODE] => GBP
[INVNUM] => 3462-xxxxxxxx
[CUSTOM] => Order 3462
[DESC] => 1x NOT_SP1_02-TP, 100x NOT_DN0_01-TP
[EMAIL] => info@mysite.co.uk
[IPADDRESS] => xx.xx.xxx.xx
[FIRSTNAME] => Timothy
[LASTNAME] => D Regester
[STREET] => The House
[STREET2] => The Street
[CITY] => The Town
[STATE] => Suffolk
[COUNTRYCODE] => GB
[ZIP] => AB1 1AB
[USER] => tom_api1.mytestdomain.co.uk
[PWD] => XXXXXXXXXXXXXXXX
[SIGNATURE] => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[VERSION] => 76.0
)

Which are similar to the other responses received.

Also I am somewhat confused by the fact that the Paypal WPP submodule collects credit card details onsite, this means the site will need an SSL. My colleague tells me that when she set it up it collected credit card details offsite not onsite.

Any thoughts? Any suggestions? Do I need an SSL?

TechnoTim2010’s picture

As an update, Paypal Tech Support suggest it is an issue with malformed Paypal Developer sandbox accounts upgraded to Business Pro being malformed. As yet (over 2 months) there is no known solution or workaround.

It would be interesting to know if anyone has upgraded their account recently and not received error 10501.

Regards

Tim

BeatnikDude’s picture

I was also receiving the PayPal WPP response: ... [L_ERRORCODE0] => 10501

    This is how I got past it:
  1. Create an account at @ https://developer.paypal.com/
  2. Under "Sandbox Accounts", click "Create Account", select Type: "Merchant", fill out etc.
  3. Under this new account select "Profile", Under "Account type" click "Upgrade to Pro"
DrupalWoody’s picture

If you've been testing other payment methods on a test site, be sure you clear out your payment transaction tables before you try to use PayPal. If you have a test order that's only partway through checkout and can't finish, check to see if the order has old payment transactions. Delete each payment transaction for that order and then try to run the order again.

I got the 10501 error, and a couple of other errors (setting the transaction to $0.00) when I did orders on a test site that still had old payment transaction tests for Example Payment.