|Posted: Friday Nov 30th, 2012 at 10:15 am #33010|
I’ve been using s2member on my website for a while now, accepting payments through PayPal and iDeal. Using the S2Member Pro PayPal Form acting as a free registration form like below, in combination with a payment check via PHP with my payment service provider, this works like a charm.[s2Member-Pro-PayPal-Form register="1" level="2" ccaps="MYCUSTOMCAPS" desc="MYDESCRIPTIONl" custom="MYDOMAIN>COM" tp="3" tt="M" captcha="clean" /]
The only problem that I seem to have is the moment a user decides to renew his/her account, which happens on a regular basis because iDeal payments do not offer the possibility of recurring payments. I have attempted to implement a billing modification form like the one below:[s2Member-Pro-PayPal-Form register="1" level="2" ccaps="MYCUSTOMCAPS" desc="MYDESCRIPTION" custom="MYDOMAIN.COM" tp="3" tt="M" captcha="clean" modify="1" /]
Unfortunately this doesn’t work because the user is prompted to fill in all the fields as if he/she is a new member. Probably this is the case because the user first needs to navigate away from my website to his/her bank to make the payment before navigating back. Now, technically it would be easiest, for both myself and the user, should the system automatically update the user’s current capability and EOT upon returning to my website and successfully verifying the iDeal payment made. Searching through the forums, I came up with some leads to changing the user role [$user->set_role(“s2member_level1”);], but I can’t quite figure out how to update a user’s EOT. Here’s what I would need:
Please note that this code is typed inside a page made within WordPress with PHPExec installed.
I sure am hoping one of you guys can help me out here. It would be much appreciated!
- s2Member® Products