Changeset 1470867
- Timestamp:
- 08/09/2016 02:17:29 PM (10 years ago)
- Location:
- woocommerce-gateway-paypal-express-checkout/trunk
- Files:
-
- 4 edited
-
includes/abstracts/abstract-wc-gateway-ppec.php (modified) (2 diffs)
-
includes/settings/settings-ppec.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
woocommerce-gateway-paypal-express-checkout.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-gateway-paypal-express-checkout/trunk/includes/abstracts/abstract-wc-gateway-ppec.php
r1470458 r1470867 229 229 $creds = $settings->get_active_api_credentials(); 230 230 231 if ( ! empty( $creds->get_username() ) ) { 232 233 if ( empty( $creds->get_password() ) ) { 231 $username = $creds->get_username(); 232 $password = $creds->get_password(); 233 234 if ( ! empty( $username ) ) { 235 236 if ( empty( $password ) ) { 234 237 WC_Admin_Settings::add_error( sprintf( __( 'Error: You must enter a %s API password.' ), __( $settings->get_environment(), 'woocommerce-gateway-paypal-express-checkout' ) ) ); 235 238 return false; 236 239 } 237 240 238 if ( is_a( $creds, 'WC_Gateway_PPEC_Client_Credential_Signature' ) && ! empty( $creds->get_signature()) ) {241 if ( is_a( $creds, 'WC_Gateway_PPEC_Client_Credential_Signature' ) && $creds->get_signature() ) { 239 242 240 243 try { … … 251 254 } 252 255 253 } elseif ( is_a( $creds, 'WC_Gateway_PPEC_Client_Credential_Certificate' ) && ! empty( $creds->get_certificate()) ) {256 } elseif ( is_a( $creds, 'WC_Gateway_PPEC_Client_Credential_Certificate' ) && $creds->get_certificate() ) { 254 257 255 258 $cert = @openssl_x509_read( $creds->get_certificate() ); -
woocommerce-gateway-paypal-express-checkout/trunk/includes/settings/settings-ppec.php
r1470458 r1470867 5 5 } 6 6 7 $needs_creds = empty( $this->get_option( 'api_username' ) ); 8 $needs_sandbox_creds = empty( $this->get_option( 'sandbox_api_username' ) ); 7 $api_username = $this->get_option( 'api_username' ); 8 $sandbox_api_username = $this->get_option( 'sandbox_api_username' ); 9 10 $needs_creds = empty( $api_username ); 11 $needs_sandbox_creds = empty( $sandbox_api_username ); 9 12 $enable_ips = wc_gateway_ppec()->ips->is_supported(); 10 13 -
woocommerce-gateway-paypal-express-checkout/trunk/readme.txt
r1470458 r1470867 4 4 Requires at least: 4.4 5 5 Tested up to: 4.4 6 Stable tag: 1.1. 06 Stable tag: 1.1.1 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 86 86 == Changelog == 87 87 88 = 1.1.1 = 89 * Fixed fatal error prior to PHP 5.5 caused by passing empty() a non-variables. 90 88 91 = 1.1.0 = 89 92 * Improved flow after express checkout by removing billing and shipping fields and simply allowing shipping method selection. -
woocommerce-gateway-paypal-express-checkout/trunk/woocommerce-gateway-paypal-express-checkout.php
r1470458 r1470867 4 4 * Plugin URI: https://www.woothemes.com/products/woocommerce-gateway-paypal-express-checkout/ 5 5 * Description: A payment gateway for PayPal Express Checkout (https://www.paypal.com/us/webapps/mpp/express-checkout). 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: Automattic 8 8 * Author URI: https://woocommerce.com … … 37 37 require_once( 'includes/class-wc-gateway-ppec-plugin.php' ); 38 38 39 $plugin = new WC_Gateway_PPEC_Plugin( __FILE__, '1.1. 0' );39 $plugin = new WC_Gateway_PPEC_Plugin( __FILE__, '1.1.1' ); 40 40 } 41 41
Note: See TracChangeset
for help on using the changeset viewer.