It's quite possible I've missed a setting or configuration. I've looked all around in the issue queue and can't seem to find anyone with the same error.

Currently using uc 6.x-2.7, uc_recurring 6.x-2.x-dev, and using order-based recurring ordering with Paypal WPP (sandbox). Everything seems to be working great together, but once a user adds a recurring order and finishes checkout (after checkout/review), a message is displayed saying

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.

However, the cart is emptied and the initial order (non-recurring) is created and properly billed.

When I view the order from the admin UI, I see the following in Admin Comments:

10/29/2011
6:09:30 PM 1 Authorize and capture immediately
Success: 11.00 USD
Address: Address and postal code matched
CVV2: Match

10/29/2011
6:09:32 PM 1 Recurring Payment Setup Failed.
Error: 11518: Billing period must be one of Day, Week, SemiMonth, or Year
Error: 11516: Billing frequency must be > 0 and be less than or equal to one year

Anyone come across this? Any pointers appreciated.

Comments

skh’s picture

Should probably mention: I've tested with a few frequencies (day, week month), all with the same result above.

Starting to think this may be a sandbox issue?

skh’s picture

Title: Paypal WPP Reporting invalid billing period (11518) and frequency (11516) » Paypal WPP Reporting invalid billing period (11518) and frequency (11516) when Intervals not pluralized
Component: Gateway Integration » Documentation
Status: Active » Needs review

After debugging the $nvp_request variable in uc_recurring_hosted.module, I found the cause was the syntax of the "Available Recurring Interval Options".

You must make sure that the key for each value is plural, for example:

1 week|Weekly

will cause a request with the interval set to "Wee" instead of "Week", which is the format required by Paypal.

1 weeks|Weekly

will work properly.

This might be worth adding to the description on eg. admin/store/settings/orders/edit/recurring.

tinker’s picture

Status: Needs review » Active

This is a very old issue. Is this still a problem? FYI 'needs review' status is to be used when a patch is submitted and needs to be reviewed.

skh’s picture

Issue summary: View changes
Status: Active » Closed (fixed)