Mike Jolley on "[Plugin: WooCommerce] Payment processing issue after update to 2.6"

ساخت وبلاگ

As I wrote above - my code was up to date with version 2.5.5 and I'm asking what was changed regarding payment processing or product status as after update to version 2.6 WooCommerce (not payment plugin which works fine - credit card was charged and retued as valid transaction) is set up status order as "Pending Payment"

My code for that part looks like that:

$response = $this->postRequest($this->postURL, $query); if(stripos($response, "false")!==false||stripos($response, "invalid")!==false){ //if there is a false or invalid message //Fosdick retu errors if( stripos($response, "MxSubtotal") === false ) { wc_add_notice(__('Payment error #:', 'woothemes') . $response,'error'); retu; } }else{ //all good 2.2.0 $order->payment_complete(); } // Retu thankyou redirect 2.1.0 retu array( 'result' => 'success', 'redirect' => $this->get_retu_url( $order ) ); }

And when I test it I can reach result as 'success' but WooCommerce is setting order status as "Pending Payment" so it is WooCommerce issue rather than payment gateway plugin or there are no info regarding changes related to payment gateways handling response by WooCommerce itself.

Thanks

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 157 تاريخ : چهارشنبه 26 خرداد 1395 ساعت: 23:10