MemberPress - All-In-One Membership Plugin for WordPress

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

No permission to download

MrSam_1

Well-known member
Administrative
Trusted Seller
Dec 1, 2018
23,638
26,982
120
MemberPress Corporate Accounts1.5.29
 

Attachments

  • memberpress-corporate-1.5.29.zip
    108.3 KB · Views: 35
  • Like
Reactions: JRGWxRxZ

w810

Member
Apr 11, 2021
35
12
8
@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' );
  }
}
You don't need to do anything. Just create account with them and it will bypass it. No need of code adjustment.
 

the_truth

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Mar 22, 2021
471
308
63
You don't need to do anything. Just create account with them and it will bypass it. No need of code adjustment.
If we null completely the plugin and bypass it, is best.
for stop all dev callbacks...
 

the_truth

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Mar 22, 2021
471
308
63
No point of doing it, works smooth right now!

It have sense. This plugin for now contain callbacks to the dev and for add more and new gateways have a block with redirect to the dev website.
It's not good to have a nulled plugin with callbacks. If you are a programmer you have to know this.
 

tanierlyons

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

tanierlyons

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

emmsana

Member
Feb 14, 2021
106
14
18
how do I rectify this error display after creating my plan? I am using Buddyboss
 

Attachments

  • memberpress.jpeg
    memberpress.jpeg
    271.1 KB · Views: 14

tanierlyons

Well-known member
Staff member
Administrative
Moderator
May 24, 2018
75,065
111,714
120
Tomz updated MemberPress - All-In-One Membership Plugin for WordPress with a new update entry:

MemberPress v1.10.3

Download MemberPress v1.10.3 - All-In-One Membership Plugin for WordPress Nulled Free
1.10.3 – 2023-01-20
Fixed

Account page welcome message missing
Account welcome message styling in ReadyLaunch template
Account welcome message not supporting shortcodes in ReadyLaunch template
Broken theme styles in Divi and some others
Debug warnings and deprecation notices
Account fields not saving

Read the rest of this update entry...
 

wp solar

Well-known member
Null Master
Trusted Uploader
May 4, 2022
175
391
63
wp.solar

A nulled version which can install add-ons directly from the dashboad.

List of MemberPress Add-ons
  • MemberPress Account Navigation Tabs
  • MemberPress ActiveCampaign - Lists Version
  • MemberPress AWeber
  • MemberPress AWS
  • MemberPress Beaver Builder
  • MemberPress BuddyPress
  • MemberPress Constant Contact
  • MemberPress ConvertKit
  • MemberPress Corporate Accounts
  • MemberPress Courses
  • MemberPress Developer Tools
  • MemberPress Divi
  • MemberPress Downloads
  • MemberPress Drip - Tags
  • MemberPress Elementor
  • MemberPress GetResponse
  • MemberPress Gifting
  • MemberPress HelpScout
  • MemberPress Importer
  • MemberPress MailChimp 3.0
  • MemberPress MailPoet
  • MemberPress Mailster
  • MemberPress Math Captcha
  • MemberPress PDF Invoice
  • MemberPress Sendy
  • MemberPress WPBakery
 

emmsana

Member
Feb 14, 2021
106
14
18

A nulled version which can install add-ons directly from the dashboad.

List of MemberPress Add-ons
  • MemberPress Account Navigation Tabs
  • MemberPress ActiveCampaign - Lists Version
  • MemberPress AWeber
  • MemberPress AWS
  • MemberPress Beaver Builder
  • MemberPress BuddyPress
  • MemberPress Constant Contact
  • MemberPress ConvertKit
  • MemberPress Corporate Accounts
  • MemberPress Courses
  • MemberPress Developer Tools
  • MemberPress Divi
  • MemberPress Downloads
  • MemberPress Drip - Tags
  • MemberPress Elementor
  • MemberPress GetResponse
  • MemberPress Gifting
  • MemberPress HelpScout
  • MemberPress Importer
  • MemberPress MailChimp 3.0
  • MemberPress MailPoet
  • MemberPress Mailster
  • MemberPress Math Captcha
  • MemberPress PDF Invoice
  • MemberPress Sendy
  • MemberPress WPBakery

Run
 

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