kilbot / WooCommerce-POS

:bangbang: All development now at https://github.com/wcpos.
http://wcpos.com
GNU General Public License v3.0
353 stars 125 forks source link

PayPal Plus – Refund problem – bug in your plugin. #200

Open torbentschechne opened 5 years ago

torbentschechne commented 5 years ago

Hello WooCommerce POS, I found a bug in your plugin using PayPal Plus in my WooCommerce shop. When I install the WooCommerce POS version from this page (not the PRO version), the possibility – the button – to refund the order via PayPal Plus does not appear anymore in my orders detail screen.

I also found the reason for it. WooCommerce checks if the payment method, saved in the order, is available as a payment gateway in the shop, but the array key of the payment is empty:

[""]=>
  object(WCPayPalPlus\WC\PayPalPlusGateway)#28591 (25) {
    ["id"]=>

So $order->get_payment_method() is paypal_plus, but this key can not be found. When I disable WooCommerce POS everything works fine, so somehow your plugin resets the keys of the payment gateways. Can you check and fix this?

Thanks.

kilbot commented 5 years ago

Hi @elbsurfer, thanks for the bug report! This should be fixed in the latest version (0.4.19).