Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › eMember – PayPal payment from different email address creates new user
- This topic has 8 replies, 3 voices, and was last updated 9 years, 9 months ago by pierschip.
-
AuthorPosts
-
January 28, 2015 at 8:55 pm #12135pierschipMember
Hi,
I have a WordPress 4.1 site with eMember v8.9.4. I have a page with a PayPal button which buys a membership level upgrade from a free level.
If I click this button with an existing user and pay using a PayPal account with the same email address as the existing user then the membership level is upgraded as expected.
If I pay with a PayPal account with a different email address then the membership level is not upgraded for the logged in, existing user and a new user is created instead with the same email address as the PayPal account and the membership level ID that I specified in the PayPal button.
I have enabled debugging and the subscription_handle_debug_log says:
[01/28/2015 8:39 PM] – SUCCESS :Could not find any record using the given email address (xxxx@xxxxxxx.org.uk). Attempting to query database using the unique reference: 3LL14192ME3X03227
[01/28/2015 8:39 PM] – SUCCESS :Membership level ID: 7
[01/28/2015 8:39 PM] – SUCCESS :Member signup URL :/membership/join/registration/?member_id=18&code=c7ea2ef4bcdbb210edf24223fa991909
[01/28/2015 8:39 PM] – SUCCESS :Member signup/upgrade completion email successfully sent
Most users will register with the same email address that they use for PayPal but I need to allow for them to use a different one. Please would you let me know how I can prevent eMember from creating a new user instead of updating the membership of the logged in user who makes the purchase.
Thanks,
Piers
January 29, 2015 at 12:42 am #68323adminKeymasterHi, The currently logged in user’s data is missing in that transaction so the plugin couldn’t find the profile.
Read the “Advanced Integration” section from the following page:
Update your PayPal button accordingly then do an upgrade test while being logged into the site. If the user is logged into the site as a member when making the payment, it will upgrade that account (regardless of the email address).
January 30, 2015 at 9:10 am #68324pierschipMemberI have tried putting the hidden variables for notify_url and custom in the button html rather than the paypal button’s advanced variables section, but a new account is still created if the email address is different to the PayPal one.
The user who wants to upgrade is logged into the site while making the payment, and once the payment is complete it returns to the site with the user still logged in but not upgraded.
January 30, 2015 at 10:18 pm #68325adminKeymasterPlease post a link to the page where you have the button so I can inspect it. Also share details of a test member account so I can log into the site then inspect if data is getting added to the button correctly.
February 1, 2015 at 9:19 pm #68326pierschipMemberPlease could you provide an email address I can send the login details to?
Thanks,
Piers
February 1, 2015 at 9:51 pm #68327February 4, 2015 at 8:43 am #68328pierschipMemberI have submitted a contact form with the login details and the URL of the page with the PayPal buttons.
February 4, 2015 at 10:57 pm #68329adminKeymasterThe code shown in the advanced integration section is not present in your button/form code. I have explained it in my email reply.
February 10, 2015 at 7:53 am #68330pierschipMemberThank you – adding the advanced integration code to the PayPal button forms ALLOWS members to pay using a different PayPal address to the one they registered on the site with.
-
AuthorPosts
- You must be logged in to reply to this topic.