bitpay / bitpay-checkout-for-woocommerce

BitPay Checkout for WooCommerce
MIT License
14 stars 22 forks source link

Fixes a bug when the IPN/webhook is received with "complete" status. #66

Closed shaunek-hero closed 6 months ago

shaunek-hero commented 6 months ago

When the "complete" IPN message was coming through this code would throw a RuntimeException with "Wrong BitPay status..." message, this is because this code was looking for a status "completed" instead of "complete".

Possibly the original developer might have gotten mixed up because Woocommerce order status is named "completed" but the BitPay invoice status is named "complete" which is very similar.

bobbrodie commented 6 months ago

This is fantastic @shaunek-hero , thank you so much! We'll test this out in the morning and prep version 5.3.2 for release.