WordPress.org

Support

Support » Plugins and Hacks » WP Stripe » [Resolved] [Plugin: WP Stripe] stripe-functions.php – $live variable reused improperly

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

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Author Noel Tock

    @noel_tock

    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 ‘[Resolved] [Plugin: WP Stripe] stripe-functions.php – $live variable reused improperly’ is closed to new replies.
Skip to toolbar