• Resolved sludan

    (@sludan)


    Previously when creating orders from wordpress admin we where able to create orders with Vipps payment, that dosent seem possible anymore. Is that correct?

    When disabling all other payments options except vipps we get the following message when opening to pay the order:

    Sorry, there doesn’t seem to be a payment method available for your address. Please contact us if you need help or would like an alternative solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Lasse Pladsen

    (@lassepladsen)

    Hello,

    This looks like a bug introduced in version 5.3.0, we are working on a fix right now, sorry about that.
    In the meantime if you need to enable this right away, it should work if you add the following filter to a php file, e.g in your theme or otherwise:

    add_filter('woo_vipps_allow_repayment', function($allow_repayment, $order) {
    if (is_a($order, 'WC_Order') && !$order->get_meta('_vipps_init_timestamp')) {
    return true;
    }
    }, 10, 2);
    • This reply was modified 1 month, 2 weeks ago by Lasse Pladsen. Reason: code formatting
    Thread Starter sludan

    (@sludan)

    Thank you for the quick reply and the provided filter!

    The filter works great until the fix are pushed 🙂

    Plugin Contributor Lasse Pladsen

    (@lassepladsen)

    The fix was release last week in v5.4.3, when you update you should remove the filter from this thread and make sure to test that it’s fixed for you still 🙂

    Thread Starter sludan

    (@sludan)

    Thanks for the update! I removed the filter and updated the plugin, and it works great 🙂 Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.