Paid Memberships Pro - Version 1.8.10.3

Version Description

  • BUG: Fixed bug where users could not confirm PayPal Express payments if the main gateway was Stripe or Braintree.
  • BUG: Fixed issue where the billing address and/or credit card fields were not showing up on the Update Billing page.
Download this release

Release Info

Developer strangerstudios
Plugin Icon 128x128 Paid Memberships Pro
Version 1.8.10.3
Comparing to
See all releases

Code changes from version 1.8.10.2 to 1.8.10.3

classes/gateways/class.pmprogateway_braintree.php CHANGED
@@ -57,7 +57,7 @@
57
  //code to add at checkout if Braintree is the current gateway
58
  $default_gateway = pmpro_getOption('gateway');
59
  $current_gateway = pmpro_getGateway();
60
- if($default_gateway == "braintree" || $current_gateway == "braintree")
61
  {
62
  add_action('pmpro_checkout_before_submit_button', array('PMProGateway_braintree', 'pmpro_checkout_before_submit_button'));
63
  add_filter('pmpro_checkout_order', array('PMProGateway_braintree', 'pmpro_checkout_order'));
57
  //code to add at checkout if Braintree is the current gateway
58
  $default_gateway = pmpro_getOption('gateway');
59
  $current_gateway = pmpro_getGateway();
60
+ if($default_gateway == "braintree" || $current_gateway == "braintree" && empty($_REQUEST['review'])) //$_REQUEST['review'] means the PayPal Express review page
61
  {
62
  add_action('pmpro_checkout_before_submit_button', array('PMProGateway_braintree', 'pmpro_checkout_before_submit_button'));
63
  add_filter('pmpro_checkout_order', array('PMProGateway_braintree', 'pmpro_checkout_order'));
classes/gateways/class.pmprogateway_stripe.php CHANGED
@@ -108,7 +108,7 @@
108
  //code to add at checkout if Stripe is the current gateway
109
  $default_gateway = pmpro_getOption('gateway');
110
  $current_gateway = pmpro_getGateway();
111
- if($default_gateway == "stripe" || $current_gateway == "stripe")
112
  {
113
  add_action('pmpro_checkout_preheader', array('PMProGateway_stripe', 'pmpro_checkout_preheader'));
114
  add_filter('pmpro_checkout_order', array('PMProGateway_stripe', 'pmpro_checkout_order'));
108
  //code to add at checkout if Stripe is the current gateway
109
  $default_gateway = pmpro_getOption('gateway');
110
  $current_gateway = pmpro_getGateway();
111
+ if(($default_gateway == "stripe" || $current_gateway == "stripe") && empty($_REQUEST['review'])) //$_REQUEST['review'] means the PayPal Express review page
112
  {
113
  add_action('pmpro_checkout_preheader', array('PMProGateway_stripe', 'pmpro_checkout_preheader'));
114
  add_filter('pmpro_checkout_order', array('PMProGateway_stripe', 'pmpro_checkout_order'));
pages/billing.php CHANGED
@@ -69,7 +69,11 @@
69
  }
70
  ?>
71
 
72
- <?php if(empty($pmpro_stripe_lite) || $gateway != "stripe" || function_exists('pmproaffl_pmpro_required_billing_fields')) { ?>
 
 
 
 
73
  <table id="pmpro_billing_address_fields" class="pmpro_checkout" width="100%" cellpadding="0" cellspacing="0" border="0">
74
  <thead>
75
  <tr>
@@ -224,8 +228,13 @@
224
  <?php } ?>
225
 
226
  <?php
227
- $pmpro_include_billing_address_fields = apply_filters('pmpro_include_billing_address_fields', true);
228
- if($pmpro_include_billing_address_fields)
 
 
 
 
 
229
  {
230
  $pmpro_accepted_credit_cards = pmpro_getOption("accepted_credit_cards");
231
  $pmpro_accepted_credit_cards = explode(",", $pmpro_accepted_credit_cards);
69
  }
70
  ?>
71
 
72
+ <?php
73
+ $pmpro_include_billing_address_fields = apply_filters('pmpro_include_billing_address_fields', true);
74
+ if($pmpro_include_billing_address_fields)
75
+ {
76
+ ?>
77
  <table id="pmpro_billing_address_fields" class="pmpro_checkout" width="100%" cellpadding="0" cellspacing="0" border="0">
78
  <thead>
79
  <tr>
228
  <?php } ?>
229
 
230
  <?php
231
+ //make sure gateways will show up credit card fields
232
+ global $pmpro_requirebilling;
233
+ $pmpro_requirebilling = true;
234
+
235
+ //do we need to show the payment information (credit card) fields? gateways will override this
236
+ $pmpro_include_payment_information_fields = apply_filters('pmpro_include_payment_information_fields', true);
237
+ if($pmpro_include_payment_information_fields)
238
  {
239
  $pmpro_accepted_credit_cards = pmpro_getOption("accepted_credit_cards");
240
  $pmpro_accepted_credit_cards = explode(",", $pmpro_accepted_credit_cards);
paid-memberships-pro.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Paid Memberships Pro
4
  Plugin URI: http://www.paidmembershipspro.com
5
  Description: Plugin to Handle Memberships
6
- Version: 1.8.10.2
7
  Author: Stranger Studios
8
  Author URI: http://www.strangerstudios.com
9
  Text Domain: pmpro
@@ -15,7 +15,7 @@ Domain Path: /languages
15
  */
16
 
17
  //version constant
18
- define("PMPRO_VERSION", "1.8.10.1");
19
  define("PMPRO_USER_AGENT", "Paid Memberships Pro v" . PMPRO_VERSION . "; " . site_url());
20
 
21
  //if the session has been started yet, start it (ignore if running from command line)
3
  Plugin Name: Paid Memberships Pro
4
  Plugin URI: http://www.paidmembershipspro.com
5
  Description: Plugin to Handle Memberships
6
+ Version: 1.8.10.3
7
  Author: Stranger Studios
8
  Author URI: http://www.strangerstudios.com
9
  Text Domain: pmpro
15
  */
16
 
17
  //version constant
18
+ define("PMPRO_VERSION", "1.8.10.3");
19
  define("PMPRO_USER_AGENT", "Paid Memberships Pro v" . PMPRO_VERSION . "; " . site_url());
20
 
21
  //if the session has been started yet, start it (ignore if running from command line)
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: strangerstudios
3
  Tags: memberships, membership, authorize.net, ecommerce, paypal, stripe, braintree, restrict access, restrict content, directory site, payflow
4
  Requires at least: 3.5
5
  Tested up to: 4.5.3
6
- Stable tag: 1.8.10.2
7
 
8
  A revenue-generating machine for membership sites. Unlimited levels with recurring payment, protected content and member management.
9
 
@@ -115,6 +115,10 @@ Not sure? You can find out by doing a bit a research.
115
  [View All Screenshots](http://www.paidmembershipspro.com/features/screenshots/)
116
 
117
  == Changelog ==
 
 
 
 
118
  = 1.8.10.2 =
119
  * BUG: Fixed bug in invoices query in the pmpro_account shortcode.
120
  * BUG: Fixed issue where the orders table was not being created on brand new installs.
3
  Tags: memberships, membership, authorize.net, ecommerce, paypal, stripe, braintree, restrict access, restrict content, directory site, payflow
4
  Requires at least: 3.5
5
  Tested up to: 4.5.3
6
+ Stable tag: 1.8.10.3
7
 
8
  A revenue-generating machine for membership sites. Unlimited levels with recurring payment, protected content and member management.
9
 
115
  [View All Screenshots](http://www.paidmembershipspro.com/features/screenshots/)
116
 
117
  == Changelog ==
118
+ = 1.8.10.3 =
119
+ * BUG: Fixed bug where users could not confirm PayPal Express payments if the main gateway was Stripe or Braintree.
120
+ * BUG: Fixed issue where the billing address and/or credit card fields were not showing up on the Update Billing page.
121
+
122
  = 1.8.10.2 =
123
  * BUG: Fixed bug in invoices query in the pmpro_account shortcode.
124
  * BUG: Fixed issue where the orders table was not being created on brand new installs.