I've been trying to implement WPP (UK) with Ubercart 6.x-2.2 with my WPP sandbox gateway.

I can confirm that paypal is taking the money (both drupals logs confirm this and my paypal sandbox account) but no recurring payment is being setup (confirmed in PayPal account).

The error I am getting is

"Your order cannot be completed, because we could not process your recurring payment. Please review your payment details and contact us to complete your order if the problem persists."

Am available on irc.freenode.net in #drupaluk #drupal and #drupal-ubercart to discuss further or via this issue.

Comments

didlix’s picture

On the order history:

[4371] Recurring Payment Setup Failed.
Error: 10004: Invalid argument

Which I understand to be a internal paypal error *goes to check*

univate’s picture

I have found that paypal sandbox does not support everything the real paypal does, atleast in the case of WPS you can't test subscriptions.

that0n3guy’s picture

Univate, I have been testing uc_recurring w/ sandbox for months now and not had any problems (on the paypal side).

univate’s picture

So does Paypal sandbox now support Paypal WPS subscriptions? lasted time I tried (probably 6 months ago) it didn't work, while the same code on the live Paypal system did work.

I was just mentioning this as any issue I have experienced with paypal's sandbox, incase that was possibly the issue here?

ethr’s picture

Make sure you have DPRP enabled here is a good thread on setup

https://www.x.com/message/180945

univate’s picture

Priority: Major » Normal
Status: Active » Fixed

Assuming that was the issue?

developer-x’s picture

I had the same problem and was able to fix it - I'm going to submit a patch - but for a quick hack to get it working, do the following:

1. Goto /ubercart/payment/uc_paypal/
2. Open uc_paypal.module
3. In function uc_recurring_paypal_wpp_process, on line 640, change 'VERSION' => '3.0" to 'VERSION' => '6.0'

Hope that helps

- x

webchick’s picture

Status: Fixed » Active

Hm. I'm also having problems. Here's what I've done so far:

- Followed the directions at https://www.x.com/docs/DOC-1379 to create a Paypal sandbox.
- Created a test customer with a $500 balance, and a test business owner (a "website payments pro" type).
- Copy/pasted my API info from Paypal into Ubercart's payment settings.
- Under Payment settings, told it to use a CC gateway of "PayPal Website Payments Pro", and marked Credit card (paypal_wpp) as a valid payment type under the Recurring Payments tab.
- Changed my test user's e-mail address to the one for the customer in Paypal.
- Created a "subscription" product class, and added recurring payments of $50.00/day (to ease in testing), a role assignment, and http://drupal.org/project/uc_atctweaks to empty cart before adding the product, + redirect to checkout page.
- Created a subscription product node.
- Clicked "Add to cart" on the product node.
- Fill out some dummy CC info (4111111111111111 - found at https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card...) the exact e-mail, credit card #, and expiration date of the "customer" test account in the Paypal sandbox, and clicked "Submit".
- Got to the review screen, I try and click "Submit order", but I get:

"We were unable to process your credit card payment. Please verify your card details and try again. If the problem persists, contact us to complete your order."

Any ideas on which of the 11,000 steps I might've missed here? ;) And/or debugging tips?

EDIT: Oh. And I also tried changing the Paypal API version per #7, but to no avail.
EDIT: Updated customer test instructions.

webchick’s picture

Oh. Hm. In my case though, payment isn't taken. At least I don't think so. My test customer's account balance remains at $500, and there is nothing under the "Test email" tab in the sandbox to point at any transaction, failed, passed, or otherwise...

cwithout’s picture

I was having this issue with WPP. Then I started wondering where the recurring payments were being handled for WPP. So decided to try enabling the Recurring - Hosted Gateways module even though it only says it's for Authorize.net ARB and Paypal WPS. It's now working in the sandbox. Apparently WPP requires Recurring - Hosted Gateways as well, even though it doesn't say it's used for WPP.

lookatyeti’s picture

webchick - are you on a localhost? I don't think that Paypal will return payment information to a localhost instance (even the paypal sandbox), could be wrong, but might help

webchick’s picture

Yeah, that was definitely at least one of my problems. :\ I had to set up a http://www.dyndns.com/ account so that I could talk to PayPal.

eric.chenchao’s picture

subscribe