Page 1 of 1
PayPal Pro Form - Prefill Update Form?

Posted:
November 26th, 2011, 11:56 pm
by blewis
I am using s2member pro with PayPal Recurring. So far my setup seems to be working just fine. However, I was curious about one thing. I have a "Billing Update" form as part of my user profile section which will allow members to update their card info should it be about to expire. When they click on the page, it just shows the empty form. Should this form be pre-filled with existing PayPal profile information? If not, why not? Wouldn't it make a lot more sense to prefill existing info, since the most common update is only an expiration date change? I can understand if they have to enter all of the credit card info again, but the address? That's easily pulled from the PP profile.
Thanks,
Bryan
Re: PayPal Pro Form - Prefill Update Form?

Posted:
November 28th, 2011, 8:38 pm
by Cristián Lávaque
Pro-form gets prefilled with the profile info when the user is logged in. Make sure you show it to a logged in user only. You can do it with simple conditionals or a page restriction.
WP Admin -> s2Member -> Restriction Options -> Page
WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals
Re: PayPal Pro Form - Prefill Update Form?

Posted:
November 28th, 2011, 8:52 pm
by blewis
The user is logged inn but the update form is blank. The only unusual thing is that this user was migrated from an older membership system (not s2Member). So I manually set their gateway to PayPal and entered their recurring PayPal subscriber ID in the admin 9and manually assigned them Level #1). Could this cause the issue?
Thanks,
Bryan
Re: PayPal Pro Form - Prefill Update Form?

Posted:
November 30th, 2011, 6:35 pm
by Cristián Lávaque
It shouldn't be causing a problem. The user still has a profile, it's stored just as any other, and this should populate the pro-form's profile fields. Do other users have the pro-form populated when the are logged in at the time they load it?
Maybe you have a JavaScript problem. As a test, could you change the theme to the default TwentyEleven and see if the pro-form now works? If it still doesn't, could you deactivate the other plugins one by one and check the form after each? This way you could identify what's causing the problem and get it fixed or replace it with an alternative.
Re: PayPal Pro Form - Prefill Update Form?

Posted:
November 30th, 2011, 6:47 pm
by blewis
None of the users are showing update data pre-filled.
Because the site is now live, I would have to wait to do this sort of thing in an off time. I can tell you that the error console does not show any JS errors. I will try the theme switch as soon as possible
Thanks,
Bryan