Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter izzya21

    (@izzya21)

    btw

    If you don’t want the order to go from Blockchain Pending to Completed, just enter whatever status you want.

    Example – Blockchain Pending to Processing would be:

    } elseif ( ‘COMPLETED’ === $status ) {
    $order->update_status( ‘processing’, __( ‘Coinbase payment was successfully processed.’, ‘coinbase’ ) );
    $order->payment_complete();

    Hi Scot,

    There is a manual work around to enable auto updating of the order status. I posted the solution in the support threads. Hope that helps.

    Thread Starter izzya21

    (@izzya21)

    I was able to manually fix this via the plugin’s php files. See below if you have the Blockchain Pending issue.

    Go into the plugin php file on your hosting, find class-wc-gateway-coinbase.php. At ~line 364 you should see this:

    } elseif ( ‘COMPLETED’ === $status ) {
    $order->payment_complete();

    Change that section of code to this:

    } elseif ( ‘COMPLETED’ === $status ) {
    $order->update_status( ‘completed’, __( ‘Coinbase payment was successfully processed.’, ‘coinbase’ ) );
    $order->payment_complete();

    The plugin will now automatically update the order status from “Blockhain Pending” to “Completed”. This will send the confirmation email to the customer as well.

    If you don’t want the order to go from Blockchain Pending to Completed, just enter whatever status you want.

    Example – Blockchain Pending to Processing would be:

    } elseif ( ‘COMPLETED’ === $status ) {
    $order->update_status( ‘processing’, __( ‘Coinbase payment was successfully processed.’, ‘coinbase’ ) );
    $order->payment_complete();

    Thread Starter izzya21

    (@izzya21)

    I was able to fix this issue on my website. Go into the plugin php file on your hosting, find class-wc-gateway-coinbase.php. At ~line 364 you should see this:

    } elseif ( ‘COMPLETED’ === $status ) {
    $order->payment_complete();

    Change that section of code to this:

    } elseif ( ‘COMPLETED’ === $status ) {
    $order->update_status( ‘completed’, __( ‘Coinbase payment was successfully processed.’, ‘coinbase’ ) );
    $order->payment_complete();

    The plugin will now automatically update the order status from “Blockhain Pending” to “Completed”. This will send the confirmation email to the customer as well.

    Cheers,

    izzya21

    I was able to fix this issue on my website. Go into the plugin php file on your hosting, find class-wc-gateway-coinbase.php. At ~line 364 you should see this:

    } elseif ( ‘COMPLETED’ === $status ) {
    $order->payment_complete();

    Change that section of code to this:

    } elseif ( ‘COMPLETED’ === $status ) {
    $order->update_status( ‘completed’, __( ‘Coinbase payment was successfully processed.’, ‘coinbase’ ) );
    $order->payment_complete();

    The plugin will now automatically update the order status from “Blockhain Pending” to “Completed”. This will send the confirmation email to the customer as well.

    • This reply was modified 5 years, 12 months ago by izzya21.
Viewing 5 replies - 1 through 5 (of 5 total)