Title: [Plugin: WP Stripe] stripe-functions.php &#8211; $live variable reused improperly
Last modified: August 20, 2016

---

# [Plugin: WP Stripe] stripe-functions.php – $live variable reused improperly

 *  Resolved [Justin Korn](https://wordpress.org/support/users/themonko/)
 * (@themonko)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-stripe-code-error-in-stripe-functionsphp/)
 * Was just looking through the code and thought I’d point out an error in the code
   I noticed.
 * Within strip-functions.php, line 97 – 103, you define the payment, but it seems
   you reused the $live varibale instead of the intended $paid variable:
 *     ```
       // Define Payment
   
                   if ( $paid == 1 ) {
                       $live = 'PAID';
                   } else {
                       $live = 'NOT PAID';
                   }
       ```
   
 * should be
 *     ```
       // Define Payment
   
                   if ( $paid == 1 ) {
                       $paid = 'PAID';
                   } else {
                       $paid = 'NOT PAID';
                   }
       ```
   
 * Hope this helps. I’m still digging in, so will let you know if I find anything
   else.
 * [http://wordpress.org/extend/plugins/wp-stripe/](http://wordpress.org/extend/plugins/wp-stripe/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Noel Tock](https://wordpress.org/support/users/noel_tock/)
 * (@noel_tock)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-stripe-code-error-in-stripe-functionsphp/#post-2524800)
 * Thanks Justin! All this definitely helps! I’m not using the paid variable visually
   anymore, so I’m going to likely end up removing this post-processing element.
 * Cheers
 * Noel

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Stripe] stripe-functions.php – $live variable reused improperly’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-stripe_ececec.svg)
 * [WP Stripe](https://wordpress.org/plugins/wp-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stripe/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Noel Tock](https://wordpress.org/support/users/noel_tock/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-stripe-code-error-in-stripe-functionsphp/#post-2524800)
 * Status: resolved