paytrail / paytrail-for-woocommerce

Paytrail payment service for WooCommerce
MIT License
4 stars 9 forks source link

Issue with gift cards #127

Open loueranta-paytrail opened 8 months ago

loueranta-paytrail commented 8 months ago

Full details and discussion here: https://wordpress.org/support/topic/issue-with-gift-cards/

karmivartio commented 7 months ago

We have same problems with several clients, please increase this priority.

jussipvainionpaa commented 7 months ago

We have same problems with several clients, please increase this priority.

I switched to Markup.fi Paytrail extension. It's free also and it works with some of the biggest gift card extensions: https://markup.fi/products/woocommerce-paytrail/

Just tested and worked fine with PW Gift Cards

artio-fi commented 3 days ago

Same problem with Gift Up plugin (2.23 version). Only some prices and gift card combinations cause this error.

[18-Sep-2024 12:24:02 UTC] PHP Fatal error:  Uncaught Error: Call to a member function setUnitPrice() on null in wp-content/plugins/paytrail-for-woocommerce/src/Gateway.php:1522
Stack trace:
#0 wp-content/plugins/paytrail-for-woocommerce/src/Gateway.php(1512): Paytrail\WooCommercePaymentGateway\Gateway->fix_rounding_error()
#1 wp-content/plugins/paytrail-for-woocommerce/src/Gateway.php(1456): Paytrail\WooCommercePaymentGateway\Gateway->get_order_items()
#2 wp-content/plugins/paytrail-for-woocommerce/src/Gateway.php(1160): Paytrail\WooCommercePaymentGateway\Gateway->set_base_payment_data()
#3 wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1062): Paytrail\WooCommercePaymentGateway\Gateway->process_payment()
kotivuori commented 2 days ago

Thanks for reporting @artio-fi. We will take a look at it.