Simple Membership Plugin › Forums › Simple Membership Plugin › Email activation on plan upgrade
Tagged: activation auto-login
- This topic has 1 reply, 2 voices, and was last updated 7 years, 9 months ago by
The Assurer.
-
AuthorPosts
-
February 7, 2019 at 3:38 am #17286
alt-tab
ParticipantHi there,
Love the plugin and add-ons, can see a lot of thought has gone into it and it also shows in the code 🙂
I’m trying to get a scenario working for me but am stuck.
I want users to register before making a stripe payment. AFter the payment they will be upgraded from an initial free plan to a paid one and get access to paid content. I’ve followed the steps from your article here and it works, except I can’t get the users to activate their account by email after payment.
So the following works right now:
- Register for free account
- Activate by email
- Manually Log In
- Redirect to Payment Page
- Make Payment in Stripe Pop up
- Redirect to paid content after successful payment
What I want to happen is:
- Register for free account
- Auto login after registration and redirect to payment page
- Make Payment in Stripe Pop up
- Send activation email
- Click activation email to activate member in paid membership level
- Redirect to paid content
No matter what settings I’ve tried, I can only get the activation to work the first way, by setting the activation required checkbox on the free plan. Only checking it on the paid plan doesn’t seem to do anything, and the experience is the user is activated straight away and logged in, without having to log in at all, and not getting any activation email.
Here is my log file for the scenario that works without email activation even though it is checked on the paid plan
------------------------------------------------------------------ [02/07/2019 3:09 AM] - SUCCESS: Member registration complete email sent to: johndoe@gmail.com. From email address value used: xyz <noreply@xyz.uk> [02/07/2019 3:09 AM] - SUCCESS: Auto login after registration feature is enabled in settings. Performing auto login for user: johndoe [02/07/2019 3:09 AM] - SUCCESS: Handling auto login request... [02/07/2019 3:09 AM] - SUCCESS: Auto login request completed for: johndoe [02/07/2019 3:09 AM] - SUCCESS: Updating the account status value of member (19) to: active [02/07/2019 3:09 AM] - SUCCESS: Member registration complete email sent to: johndoe@gmail.com. From email address value used: tabarruk <noreply@xyz.uk> [02/07/2019 3:09 AM] - SUCCESS: Admin notification email sent to: admin@xyz.uk [02/07/2019 3:10 AM] - SUCCESS: After login redirection addon. Checking if member need to be redirected. [02/07/2019 3:12 AM] - SUCCESS: Stripe Subscription IPN received. Processing request... [02/07/2019 3:12 AM] - SUCCESS: Sandbox payment mode is enabled. Using test API key details. [02/07/2019 3:12 AM] - SUCCESS: Stripe Subscription successful. [02/07/2019 3:12 AM] - SUCCESS: swpm_handle_subsc_signup_stand_alone(). Custom value: subsc_ref=3&user_ip=673.44.41.14&swpm_id=19, Unique reference: cus_EU1nbbIkJa4My [02/07/2019 3:12 AM] - SUCCESS: Modifying the existing membership profile... Member ID: 19 [02/07/2019 3:12 AM] - SUCCESS: Setting access starts date value to: 2019-02-07 [02/07/2019 3:12 AM] - SUCCESS: Updating the current membership level (2) of this member to the newly paid level (3) [02/07/2019 3:12 AM] - SUCCESS: swpm_membership_level_changed action triggered. Member ID: 19, Old Level: 2, New Level: 3 [02/07/2019 3:12 AM] - SUCCESS: Retrieving user record for member ID: 19 [02/07/2019 3:12 AM] - SUCCESS: Calling user role update function. [02/07/2019 3:12 AM] - SUCCESS: User role updated. [02/07/2019 3:12 AM] - SUCCESS: Member signup/upgrade completion email successfully sent to: johndoe@gmail.com [02/07/2019 3:12 AM] - SUCCESS: Transaction data saved. [02/07/2019 3:12 AM] - SUCCESS: Redirecting customer to: http://xyz.uk/members-area/?payment=done [02/07/2019 3:12 AM] - SUCCESS: End of Stripe Subscription IPN processing. ------------------------------------------------------------------Can anyone help or suggest things I can try or if I’m missing something? Or is this just not possible?
February 7, 2019 at 7:34 pm #17294The Assurer
ModeratorThe “complete registration” (it is NOT an “activation”) email is sent only at the time of initial registration. Any action that creates a free account, counts as “activation.” The difference between scenario 1 and 2, is that in #2, you “trust” the registered email address given is valid.
Why do you want the member to revalidate their email address, in scenario 2?
-
AuthorPosts
- You must be logged in to reply to this topic.