• I’m using PW WooCommerce Gift Cards Pro plugin to sell gift cards to my customers. Today a customer reported an issue where they could use a purchased gift card code at the checkout and the store showed the correct amount due (total order was 54,70 €, gift card was 50 € and amount due showed 4,70 €).

    When the customer chose Paytrail as a payment method and chose a bank transfer to pay for the 4,70 €, Paytrail showed the total amount of 54,70 € due and didn’t take the gift card into account.

    The gift cards work flawlessly with Klarna Payments for WooCommerce (by krokedil) so the issue should be fixable on this plugin’s end for Paytrail as well.

    I’ll have a look at the plugin’s code myself tonight as well if I can figure out the issue.

    If you need the PW WooCommerce Gift Card Pro plugin to debug the issue, please give me an email or something where I can provide you with the plugin files. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • We’ve got few similar reports from users. We have the free version of the Gift Card plugin. We have also had succesful gift card orders with partial payment so it’s not consistent.

    There’s the following fatal error in the logs. Stack trace suggests it’s related to “fix_rounding_error()” function.

    Fatal error: Uncaught Error: Call to a member function setUnitPrice() on null in /data/wordpress/wp-content/plugins/paytrail-for-woocommerce/src/Gateway.php:1297

    I checked that all orders utilizing gift cards that failed had the “order total” off by 1 cent compared to the item_subtotal + shipping + tax. So it would make sense that it’s related.

    Didn’t go too deep into it but it seemed like the error only happened with orders that had gift cards used on them.

    Plugin Author loueranta

    (@loueranta)

    Thanks for reporting this. I have raised an issue about this for our developers and you can track it here:
    https://github.com/paytrail/paytrail-for-woocommerce/issues/127

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with gift cards’ is closed to new replies.