WordPress.org

Forums

Striper - Stripe Integration for WooCommerce
[resolved] Stripe class already declared [FIXED] (3 posts)

  1. cbroughton
    Member
    Posted 1 year ago #

    After installing Striper I would get an error about Strip class already declared. This is probably because I'm using stipe elsewhere on my site and the library's already being loaded.

    I fixed this by adding the following lines to the top of strip_gateway.php:

    /* ADDED THIS IF TO AVOID CLASS CONFLICTS WHEN USING STRIPE ELSEWHERE */
    if (!class_exists('Stripe')) {
    require_once("lib/stripe-php/lib/Stripe.php");
    }

    It would be nice if this was included in the source.

    Otherwise great plugin.

  2. Sean Voss
    Member
    Plugin Author

    Posted 1 year ago #

    Hey cbroughton,

    Looks good, I will add this.

  3. Sean Voss
    Member
    Plugin Author

    Posted 1 year ago #

    Updated in 0.25

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Striper - Stripe Integration for WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic