Using commerce kickstart 1.2 as a starting point (so Drupal 7.2) and the latest dev versions of paypal_WPS and commerce_subscription from their respective project pages I'm having a few problems getting it all to work nicely together.
I'm using a UK sandbox account on a publicly available server running apache 2.2 and php 5.3.
I've created a subscription product that recurs each day.
Adding the product to the cart and checking out via Paypal WPS goes well however after this it's all a bit more random. Most of the time when I click on 'Agree to Pay' on the Paypal site the order is moved from the shopping cart to the order screen (not always though) and the payment is assigned to the order (this always seems to happen even if the order stays in the shopping cart section).
The new user account is created but the subscription role is almost never assigned but occasionally it is and when it is I can't work out any pattern as to why.
Looking at the log messages there are a number of notices and errors and most of them seem to be caused by Paypal trying to process the ipn again and again so I presume Paypal is not being told that the IPN has been received.
The first error seems to occur due to the commerce_subscription module and is reported as
Notice: Undefined property: stdClass::$subscription in commerce_subscription_commerce_paypal_ipn_process() (line 986 of /home/test/public_html/sites/all/modules/commerce_subscription/commerce_subscription.module).
This line is
$recurrence->subscription->value($subscription_id);
$subscription_id does contain a valid id from the last row in the 'commerce_subscription' table but this row doesn't usually contain a uid value. If it does contain the correct uid then the subscription role looks to be applied corectly.
The value of $recurrence prior to this is
stdClass Object
(
[subscription_recurrance_id] =>
[subscription_id] =>
[type] => 1
[sequence] => 1
[payment] =>
)
I'm getting a bit lost at this point as to how the code is running and what it's trying to do so does anyone have any guidance on where to go from here please?