Help With IPN Handling Member Subscription
Hi everyone.
I have altered my code to do paypal subscriptions for membership packs. however, although when completing the order process activates the pack, sets up the paypal subscription and notifies the customer, when the next payment is taken the membership does not renew.
I can only assume that the IPN handler code obviously does not know what to do with the response from each payment. I could really really do with getting this to work for my business model.
I enabled paypal IPN debugging to get an understanding what PayPal is sending though. I am receiving the following:
-------
Array
(
[transaction_subject] => Membership for 2 days
[payment_date] => 05:18:27 Nov 06, 2012 PST
[txn_type] => subscr_payment
[subscr_id] => I-W5XIE508HY0F
[last_name] => Bloggs
[residence_country] => GB
[item_name] => Membership for 2 days
[payment_gross] =>
[mc_currency] => GBP
[business] =>
info@themainsite.co.uk
[payment_type] => instant
[protection_eligibility] => Ineligible
[verify_sign] => AzWJqzB39MxDuMJE3UTjnqu10.Z5AagAZTVgTPb-Z8zU-RA9bOSB4vLX
[payer_status] => verified
[payer_email] =>
customer@paypalemail.co.uk
[txn_id] => 3DX158363E614410K
[receiver_email] =>
info@themainsite.co.uk
[first_name] => Joe
[payer_id] => E38NAT7Z3K7DS
[receiver_id] => A6MCAXWNFP772
[item_number] => Basic
[payment_status] => Completed
[payment_fee] =>
[mc_fee] => 0.23
[mc_gross] => 1.00
[custom] => 831238ee21ce5ccd
[charset] => windows-1252
[notify_version] => 3.7
[ipn_track_id] => 26d8609bb431a
)
-------
Its worth noting at this point that when i review transactions in the admin panel, only normal paypal transactions are showing, so the first thing noticed is the transactions are not added to the database.
From looking at the paypal ipn code, it looks like it uses the current session as it is and gets the users info to marry up the transaction to the user (I think??).
In order for it to work I assume two things are needed, firstly, transactions need to be captured and added to the transaction table, and secondly, these auto payments need to marry up to the member pack that are associated with in order to run some code to activate and renew them.
I really really really hope someone can help me with this.
Many thank in advance and just let me know if you need me to explain anything further.
Cheers
Phil