coinbase / coinbase-commerce-woocommerce

Accept Bitcoin on your WooCommerce-powered website.
https://commerce.coinbase.com/integrate/woocommerce
Apache License 2.0
58 stars 41 forks source link

Blockchain Pending Status #7

Closed abhiagrawal87 closed 5 years ago

abhiagrawal87 commented 6 years ago

After successful payment via Coinbase few days ago, my Woocommerce store is still showing "Blockchain Pending" status.

Does it get auto updated or do i need to do something and what is the turnaround time for status update?

Thanks.

justinpobrien commented 6 years ago

It should get updated automatically once the payment confirms. Do you have the order code from Coinbase Commerce by chance? We can take a look on our end.

Nikoogle commented 5 years ago

No it won't update automatically. It only goes as far as noting payment completed.

In the file class-wc-gateway-coinbase.php, you can see this on line 365: $order->payment_complete();

Instead, to update the status, it should go something like:

$order->update_status( 'processing', __( 'Coinbase payment completed', 'coinbase' ) ); $order->payment_complete();

This will note that the payment was completed, and the status will change to Processing.

guacamoli commented 5 years ago

@abhiagrawal87, this is fixed in the latest code, please stay tuned for the newest release.

ciscospirit commented 5 years ago

Hello...

i download the latest changes from github and installed the plugin with this changes and the "processing" status update works now BUT it will not trigger the mail for "new order" for the site admin or the "processing order" for the customer...

is there also a fix avilable somehwere?