MemberPress - All-In-One Membership Plugin for WordPress

MemberPress - All-In-One Membership Plugin for WordPress v1.12.2

No permission to download

Marshall

New member
Nov 2, 2022
4
0
1
Please I need an Update ---->>>>> MemberPress + BuddyPress Integration

Thanks for this Great Plugin Null****


Please Update 👇👇👇👇👇👇
MemberPress + BuddyPress Integration
 
Last edited:

w810

Member
Apr 11, 2021
35
12
8
@Tomz @NullMaster can you share the following addons with us? Thanks in advance.

Account Nav Tabs
Cancel Override
Membership Registration Restrictions
Churn Buster
 
Last edited:

wodehouseblues

Member
Trusted Uploader
Dec 12, 2020
24
47
13
Does anyone have this plugin? I am trying to set it up so that memberships can be purchased through WooCommerce because I use Square through Woo Commerce

MemberPress WooCommerce Plus​

There is also a Memberpress Square plugin, but I need the pro version of that to do recurring. So if anyone has either of those, it would be deeply appreciated
 

the_truth

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Mar 22, 2021
471
308
63
i have received this email:
Without an active license key, MemberPress cannot be managed on the backend. Your frontend will remain intact, but you can’t: Issue customer refunds, Add new members, Manage memberships. Fortunately, this problem is easy to fix by doing the following:

  • Go to MemberPress.com and make your selection. Pricing.
  • Click here to enter and activate your new license key.
  • That’s it!
We’re here to help you get things back up and running. Let us know if you need assistance.

@Tomz it's not fully nulled :(
 
  • Sad
Reactions: Pixelate

tanierlyons

Well-known member
Staff member
Administrative
Moderator
May 24, 2018
75,065
111,715
120

jesbod

Member
Dec 12, 2022
39
22
8
This version is MemberPress Basic and not nulled like the previous Pro v1.9.51
I got error configuration screen when activating it
Pls double-check. Thanks
 
  • Like
Reactions: Pixelate

tokkok

New member
May 2, 2022
2
2
3
Does anyone know how to change the default timezone in Memberpress from UTC to any other?
 
Last edited:

the_truth

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Mar 22, 2021
471
308
63
@Tomz @NullMaster @Akbaba @KaoVN @Legolas @lgokul @TassieNZ @xLab to configure stripe or new paypal, when I press connect to Stripe or on button for PayPal it redirect me to website "https://auth.caseproof.com/connect/memberpress" and it asks me for email and password.

I have finded the code of this function on file: \memberpress\app\controllers\MeprAuthenticatorCtrl.php

But i have tried to null it without any success for bypass this limitation.

When you don't enter email and password give this error: "Your MemberPress.com account and Stripe gateway have been disconnected. Please re-connect the Stripe gateway by clicking the button below in order to start taking payments again.

Someone with major skills, can complete to null it for have complete list of payments method?

This is the code which block the connections of other payments method:

PHP:
<?php

if(!defined('ABSPATH')) {die('You are not allowed to call this page directly.');}

class MeprAuthenticatorCtrl extends MeprBaseCtrl
{
  public function load_hooks() {
    if(!defined('MEPR_AUTH_SERVICE_DOMAIN')) {
      define('MEPR_AUTH_SERVICE_DOMAIN', 'auth.caseproof.com');
    }
    define('MEPR_AUTH_SERVICE_URL', 'https://' . MEPR_AUTH_SERVICE_DOMAIN);

    add_action( 'admin_init', array( $this, 'clear_connection_data' ) );
    add_action( 'init', array( $this, 'process_connect' ) );
    add_action( 'init', array( $this, 'process_disconnect' ) );
  }

  public function clear_connection_data() {
    if ( isset( $_GET['mp-clear-connection-data'] ) ) {
      // Admins only
      if ( current_user_can( 'manage_options' ) ) {
        delete_option( 'mepr_authenticator_site_uuid' );
        delete_option( 'mepr_authenticator_account_email' );
        delete_option( 'mepr_authenticator_secret_token' );
      }
    }
  }

  /**
   * Process a Connect
   *
   * @return void
   */
 
  public function process_connect() {

    // Make sure we've entered our Authenticator process
    if ( ! isset( $_GET['mepr-connect'] ) || 'true' !== $_GET['mepr-connect'] ) {
      return;
    }

    // Validate the nonce on the WP side of things
    if ( ! isset( $_GET['nonce'] ) || ! wp_verify_nonce( $_GET['nonce'], 'mepr-connect' ) ) {
      return;
    }

    // Make sure the user is authorized
    if ( ! MeprUtils::is_mepr_admin() ) {
      return;
    }

    $site_uuid = sanitize_text_field( $_GET['site_uuid'] );
    $auth_code = sanitize_text_field( $_GET['auth_code'] );

    // GET request to obtain token
    $response = wp_remote_get( MEPR_AUTH_SERVICE_URL . "/api/tokens/{$site_uuid}", array(
      'sslverify' => false,
      'headers' => array(
        'accept' => 'application/json'
      ),
      'body' => array(
        'auth_code' => $auth_code
      )
    ) );

    $body = json_decode( wp_remote_retrieve_body( $response ), true );

    if ( isset( $body['account_email'] ) && ! empty( $body['account_email'] ) ) {
      $email_saved = update_option( 'mepr_authenticator_account_email', sanitize_text_field( $body['account_email'] ) );
    }

    if ( isset( $body['secret_token'] ) && ! empty( $body['secret_token'] ) ) {
      $token_saved = update_option( 'mepr_authenticator_secret_token', sanitize_text_field( $body['secret_token'] ) );
    }

    if ( isset( $body['user_uuid'] ) && ! empty( $body['user_uuid'] ) ) {
      $user_uuid_saved = update_option( 'mepr_authenticator_user_uuid', sanitize_text_field( $body['user_uuid'] ) );
    }

    if ( $site_uuid ) {
      update_option( 'mepr_authenticator_site_uuid', $site_uuid );
    }

    if ( isset( $_GET['stripe_connect'] ) && 'true' === $_GET['stripe_connect'] && isset( $_GET['method_id'] ) && ! empty( $_GET['method_id'] ) ) {
      wp_redirect( MeprStripeGateway::get_stripe_connect_url( $_GET['method_id'] ) );
      exit;
    }

    $redirect_url = remove_query_arg( array( 'mepr-connect', 'nonce', 'site_uuid', 'user_uuid', 'auth_code', 'license_key' ) );

    $license_key = isset( $_GET['license_key'] ) ? sanitize_text_field( wp_unslash( $_GET['license_key'] ) ) : '';

    if( ! empty( $license_key ) ) {
      try {
        MeprUpdateCtrl::activate_license( $license_key );
      }
      catch( Exception $e ) {
        $redirect_url = add_query_arg( 'license_error', urlencode( $e->getMessage() ), $redirect_url );
      }
    }

    wp_redirect( $redirect_url );
    exit;
  }

  /**
   * Process a Disconnect
   *
   * @return void
   */

  public function process_disconnect() {

    // Make sure we've entered our Authenticator process
    if ( ! isset( $_GET['mepr-disconnect'] ) || 'true' !== $_GET['mepr-disconnect'] ) {
      return;
    }

    // Validate the nonce on the WP side of things
    if ( ! isset( $_GET['nonce'] ) || ! wp_verify_nonce( $_GET['nonce'], 'mepr-disconnect' ) ) {
      return;
    }

    // Make sure the user is authorized
    if ( ! MeprUtils::is_mepr_admin() ) {
      return;
    }

    $site_email = get_option( 'mepr_authenticator_account_email' );
    $site_uuid = get_option( 'mepr_authenticator_site_uuid' );

    MeprHooks::do_action('mepr_memberpress_com_pre_disconnect', $site_uuid, $site_email);

    // Create token payload
    $payload = array(
      'email' => $site_email,
      'site_uuid' => $site_uuid
    );

    // Create JWT
    $jwt = self::generate_jwt( $payload );

    // DELETE request to obtain token
    $response = wp_remote_request( MEPR_AUTH_SERVICE_URL . "/api/disconnect/memberpress", array(
      'method' => 'DELETE',
      'sslverify' => false,
      'headers' => MeprUtils::jwt_header($jwt, MEPR_AUTH_SERVICE_DOMAIN),
    ) );

    $body = json_decode( wp_remote_retrieve_body( $response ), true );

    if ( isset( $body['disconnected'] ) && true === $body['disconnected'] ) {
      delete_option( 'mepr_authenticator_account_email' );
      delete_option( 'mepr_authenticator_secret_token' );
      delete_option( 'mepr_authenticator_site_uuid', $site_uuid );
    }

    wp_redirect( remove_query_arg( array( 'mepr-disconnect', 'nonce' ) ) );
    exit;
  }

  /**
   * Generates a JWT, signed by the stored secret token
   *
   * @param  array  $payload  Payload data
   * @param  sring $secret    Used to sign the JWT
   *
   * @return string
   */

public static function generate_jwt( $payload, $secret = false ) {

    if ( false === $secret ) {
      $secret = get_option( 'mepr_authenticator_secret_token' );
    }

    // Create token header
    $header = array(
      'typ' => 'JWT',
      'alg' => 'HS256'
    );
    $header = json_encode( $header );
    $header = self::base64url_encode( $header );

    // Create token payload
    $payload = json_encode( $payload );
    $payload = self::base64url_encode( $payload );

    // Create Signature Hash
    $signature = hash_hmac( 'sha256', "{$header}.{$payload}", $secret );
    $signature = json_encode( $signature );
    $signature = self::base64url_encode( $signature );

    // Create JWT
    $jwt = "{$header}.{$payload}.{$signature}";
    return $jwt;
  }

  /**
   * Ensure that the Base64 string is passed within URLs without any URL encoding
   *
   * @param  string $value
   *
   * @return string
   */

  public static function base64url_encode( $value ) {
    return rtrim( strtr( base64_encode( $value ), '+/', '-_' ), '=' );
  }

  /**
   * Assembles a URL for connecting to our Authentication service
   *
   * @param boolean     $stripe_connect    Will add a query string that is used to redirect to Stripe Connect after returning from Auth service
   * @param array       $additional_params
   * @param string|null $return_url
   *
   * @return string
   */

  public static function get_auth_connect_url( $stripe_connect = false, $payment_method_id = false, $additional_params = [], $return_url = null ) {
    $return_url = is_null( $return_url ) ? admin_url( 'admin.php?page=memberpress-account-login', false ) : $return_url;

    $connect_params = array(
      'return_url' => urlencode( add_query_arg( 'mepr-connect', 'true', $return_url ) ),
      'nonce' => wp_create_nonce( 'mepr-connect' )
    );

    $site_uuid = get_option( 'mepr_authenticator_site_uuid' );

    if ( $site_uuid ) {
      $connect_params['site_uuid'] = $site_uuid;
    }

    if ( true === $stripe_connect && ! empty( $payment_method_id ) ) {
      $connect_params['stripe_connect'] = 'true';
      $connect_params['method_id'] = $payment_method_id;
    }

    if ( ! empty( $additional_params ) ) {
      $connect_params = array_merge($connect_params, $additional_params);
    }

    return add_query_arg( $connect_params, MEPR_AUTH_SERVICE_URL . '/connect/memberpress' );
  }
}
 
Last edited:
  • Like
Reactions: Pixelate

the_truth

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Mar 22, 2021
471
308
63
In which mode we can unblock payments method on /wp-admin/admin.php?page=memberpress-options#mepr-integration ?

When we try to add other payments method (New paypal, stripe, authorize, etc...) the plugin redirect to memberpress website for insert email and password.

Anyone have an idea and skills to unblock this problem? I have tried to make it without any success.

@Tomz @NullMaster @Akbaba @KaoVN @Legolas @lgokul @TassieNZ @xLab
 

SweaterVest

New member
Jan 27, 2019
6
7
3
In which mode we can unblock payments method on /wp-admin/admin.php?page=memberpress-options#mepr-integration ?

When we try to add other payments method (New paypal, stripe, authorize, etc...) the plugin redirect to memberpress website for insert email and password.

Anyone have an idea and skills to unblock this problem? I have tried to make it without any success.

@Tomz @NullMaster @Akbaba @KaoVN @Legolas @lgokul @TassieNZ @xLab

If I recall correctly, this happened to me a while back, on a previous version of Memberpress. I was able to proceed with my Memberpress account user/pass (I somehow have a Memberpress account, even though I have never bought a license, perhaps I initalised checkout for Memberpress PRO etc, but did not complete payment?).

Hope that helps
 

the_truth

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Mar 22, 2021
471
308
63
If I recall correctly, this happened to me a while back, on a previous version of Memberpress. I was able to proceed with my Memberpress account user/pass (I somehow have a Memberpress account, even though I have never bought a license, perhaps I initalised checkout for Memberpress PRO etc, but did not complete payment?).

Hope that helps

Very thanks a lot! Now i have an account! I try to add the payments methd now!
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu