WP Stripe
[resolved] stripe-functions.php - $live variable reused improperly (2 posts)

  1. Justin Korn
    Posted 4 years ago #

    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.


  2. Noel Tock
    Human Made
    Plugin Author

    Posted 4 years ago #

    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.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Stripe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic