I’ve now done several dozen tests trying to get Simple Commerce to work as advertised. It only works half way…
EE Version: 2.1.0
EE Build: 20100810
I’m posting $1.00 recurring subscriptions to a LIVE PayPal account (‘cause the PayPal sandbox is still borked) and I also have Debug IPN emails sent to me so I can see the Array coming from PayPal to EE.
Here’s what happens:
1. Login to the site as a member in the “Free Members” member group.
2. Click the Simple Commerce generated “Subscribe Now” link (basically copy/pasted the code from the docs and changed the Success and Cancel template paths)
3. New window opens, login to PayPal, auth the payment, click the link to go back to our site’s Success page.
4. I check EE Members and that member has been switched to the “Paid Members” member group. So far, so good.
5. I check the SC Purchases page, the purchase is listed, but when viewing the detail, the TXN ID field is always blank (see attached screenshot). I can confirm the TXN ID field has a value in the IPN Array PayPal sends to EE. The column is also blank in the exp_simple_commerce_purchases table. No TXN ID value ever gets inserted into the table.
6. I receive both the PayPal email notice that we have a newly subscribed member as well as the SC Admin Email Template message.
7. The member receives their email from PayPal telling they’ve subscribed and they also receive the SC Customer Email Template message.
Except for the missing TXN ID value, all is good so far. Also, I checked the exp_simple_commerce_purchases table and no value is present in the “txn_id” column for any purchases even though the IPN Array from PayPal has valid TXN IDs. And the “subscription_end_date” field is always “0”.
8. Member logs back into their PayPal and cancels their subscription.
9. Member receives an email from PayPal confirming they’ve canceled their subscription
10. I receive the IPN debug message from EE with the PayPal IPN Array values. All are valid for a canceled subscription
11. The member DOES NOT receive their Customer Email Unsubscribe Template message from SC
12. I DO NOT receive my Admin Email Unsubscribe Template message from SC.
13. The member is NOT moved back to the “Free Members” member group as specified in the SC Item config.
I got to thinking, what if, since the member subscribed and paid for an entire month, their member group wouldn’t be updated until 30 days after their purchase_date? So I’ve set the subscription to 1 Day and will see if those members are unsubscribed tomorrow and all the emails and their member group change works then…?
In the mean time, the rows in the exp_simple_commerce_purchases table do not change regardless of if a member has cancelled or not. And the “subscription_end_date” in the table is always set to “0” regardless of if the member is active or has cancelled.
Hope this is an easy and quick fix because we have a membership site ready to go live and the final steps after moving it to the live server were to test the Simple Commerce module at a URL that PayPal could reach…