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

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?

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

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?

Category:bug» support
Status:Active» Postponed (maintainer needs more info)

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
)

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

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
)

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

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

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

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?

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!

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?

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

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

Have you contacted PayPal support yet?