WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Justin Korn
    Member
    Posted 2 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.

    http://wordpress.org/extend/plugins/wp-stripe/

  2. Noel Tock
    Human Made
    Plugin Author

    Posted 2 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.

    Cheers

    Noel

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags