Closed christianz123 closed 2 years ago
Any updates?
There's wrong transaction amount value and sum of amount items. I guess there's the rounding issue, probably from WooCommerce core. I think we should add amount checking in the plugin
Do you know if it will be included in the next update? When? Thanks
Hi @aait ! Trying to find what can be a fix for this issue, could it be in this section?
`// Calculate VAT amount $vat_amount = array_sum( array_column( $items, OrderItemInterface::FIELD_VAT_AMOUNT ) ) / 100;
$result = $this->core->refundCheckout( $order->get_id(), $amount, $vat_amount, $items );`
@asbjornu Hi!
We're having a lot of issues with refunds with this plugin and need some support. We've got some developers looking into this on our end but help is appreciated.
See below for some ideas of what the problem could be?
swedbank-pay-checkout/includes/class-wc-gateway-swedbank-pay-checkout.php
swedbank-pay-checkout/vendor/swedbank-pay/swedbank-pay-woocommerce-core/src/SwedbankPay/Core/Library/Methods/Checkout.php
@craftycrafter90 Hello, could explain what problem do you have in details please? Please attach logs if possible.
I prepare some changes https://github.com/SwedbankPay/swedbank-pay-woocommerce-checkout/pull/127
Changes were merged, so i'm closing this issue
Hi I cant do a refund from the wp-admin interface if the tax includes digits. 4.00kr is OK but not 4,20kr. The log payex-checkout indicates that the digits are not correctly handled. The log from a failed refund:
Everything works fine if the tax includes no digits. See log:
Any ideas what could be wrong?
Thanks