Title: Fixed issue with plugin
Last modified: April 25, 2018

---

# Fixed issue with plugin

 *  [romanjetweb](https://wordpress.org/support/users/romanjetweb/)
 * (@romanjetweb)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/fixed-issue-with-plugin/)
 * Hello,
 * I had an issue – the plugin didn’t work:
 * Wordpress: 4.9.5
    Woocommerce: 3.3.5 Express Checkout: 3.0.3
 * Change I made to get it to work:
    includes/class-express-checkout.php:235 :
 *  public function ex_after_redirect($data, $errors) {
    $errors_count = sizeof(
   $errors->errors); if (isset($_POST[‘payment_method’]) && ‘express_checkout’ =
   == $_POST[‘payment_method’] && $this->express_checkout_utility->ex_notice_count(‘
   error’) == 0 && $errors_count == 0 ) { WC()->session->post_data = $_POST; $this-
   >express_checkout_utility->ex_redirect_after_checkout(); } }
 * Notice the use of “$error_count”.
    —— Change line 133 acordingly:
 *  add_action(‘woocommerce_after_checkout_validation’, array($this, ‘ex_after_redirect’),
   10,2);
 * To the developer: please integrate it in the next version.

The topic ‘Fixed issue with plugin’ is closed to new replies.

 * ![](https://ps.w.org/express-checkout/assets/icon-256x256.png?rev=2412379)
 * [Express Checkout via PayPal for WooCommerce](https://wordpress.org/plugins/express-checkout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/express-checkout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/express-checkout/)
 * [Active Topics](https://wordpress.org/support/plugin/express-checkout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/express-checkout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/express-checkout/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [romanjetweb](https://wordpress.org/support/users/romanjetweb/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/fixed-issue-with-plugin/)
 * Status: not resolved