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
Comment #1
skh commentedShould 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?
Comment #2
skh commentedAfter 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:
will cause a request with the interval set to "Wee" instead of "Week", which is the format required by Paypal.
will work properly.
This might be worth adding to the description on eg. admin/store/settings/orders/edit/recurring.
Comment #3
tinker commentedThis 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.
Comment #4
skh commented