[Membership 2 Pro] How to make payment a one-step (instead of current two-steps) in Membership2?

Hi, currently when a user clicks on the SIGNUP button (generated by the [ms-membership-buy] shortcode), instead of going straight to PayPal, he's being taken to yet another extremely confusing page, where he needs to click on "COMPLETE PAYMENT" button and THEN he's taken to the PayPal page.
Where do I tweak the code in order to take the user to PayPal immediately when he clicks the SIGNUP button?
Or, alternatively, how do I generate a correct COMPLETE PAYMENT button so that it would return the right information about the logged in user who just paid the payment?
Thank you

  • Adam Czajczyk

    Hello Rohit

    I hope you're well today and thank you for your question!

    When a [ms-membership-buy id="123"] (where 123 is an ID of a membership) shortcode is used it displays a button/link and after clicking on this:

    - a logged out user should be taken to a registration form (because they have to be users to be able to become members) and then a "summary" page is displayed with a membership name, price, an option to add coupon code (if coupons are enabled) and a payment button;

    - a logged in user should be taken straight to that "summary" page (skipping the registration form)

    The default page looks similar to this (this is with Twenty Seventeen theme and PayPal in "sandbox" mode):

    Is this the page you're referring to? You mentioned "complete payment" so I'm not sure. If it's different to what you are getting would you please share a screenshot or point me to any location at any of your sites where I can see/check it live?

    I'd just like to avoid any confusions on my end in order to be able to give you a proper answer :slight_smile:

    Best regards,
    Adam

  • Rohit

    Thanks for your reply Adam, yes - I'm referring to exactly that "summary" page. I'm only talking about registered, logged-in users.
    As you've correctly outlined, there's two steps for such users:
    1. Click on the button generated by [ms-membership-buy id="123"] to be taken to summary page,
    2. Click on the PayPal button to be taken to PayPal.

    I want to know what to tweak in order to either:
    A) Click on [ms-membership-buy id="123"] and get to PayPal immediately (ideal option)
    or, if that's extremely difficult, then how to:
    B) generate the last-step PayPal button that would take the user to PayPal immediately.

    In any solution, I still want, of course, to be able to correctly capture in the call back the user ID, and the rest of the info that's normally passed back from PayPal.

  • Predrag Dubajic

    Hi Rohit,

    I'm afraid that something like this is not possible out of the box and it would require custom coding to accomplish.

    We previously had API Docs in the plugin but we had to temporarily remove them due to some SEO issues, so I've attached them here and you can download the file, unzip it and then from docs folder open index.html in your browser to check API Docs that could help you with creating a custom solution for your desired process.

    Best regards,
    Predrag