• Hi there,

    Our site uses vipps as payment and set up the necessary details already but somehow all the payments goes through will be cancelled right away. Can you help me check out why?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Could you check the logs in the backend at Woocommerce/Status/logs; especially the ones called woo-vipps and fatal-errors.

    Does this apply to Express Checkout, Vipps Checkout or the normal WooCommerce checkout process?

    For express checkout and Vipps checkout, abandoned or never completed orders will be cancelled after a while; but it should not happen if the payment is successful.

    Thread Starter jesse1991

    (@jesse1991)

    Would it help if i’ll share the admin access?
    https://www.torstrandgrill.no/wp-admin
    admin
    admin!@

    Thread Starter jesse1991

    (@jesse1991)

    Do you think it is something to do with the settings? We never have a successful payment of vipps

    2022-03-22T19:16:04+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:04+00:00 DEBUG For order 2128 order status at vipps is cancelled
    2022-03-22T19:16:04+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:05+00:00 DEBUG For order 2124 order status at vipps is cancelled
    2022-03-22T19:16:05+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:05+00:00 DEBUG For order 2123 order status at vipps is cancelled
    2022-03-22T19:16:05+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:06+00:00 DEBUG For order 2122 order status at vipps is cancelled
    2022-03-22T19:16:06+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:06+00:00 DEBUG For order 2121 order status at vipps is cancelled
    2022-03-22T19:16:06+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:07+00:00 DEBUG For order 2120 order status at vipps is cancelled
    2022-03-22T19:16:07+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:07+00:00 DEBUG For order 2119 order status at vipps is cancelled
    2022-03-22T19:16:08+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:08+00:00 DEBUG For order 2118 order status at vipps is cancelled
    2022-03-22T19:16:08+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:09+00:00 DEBUG For order 2117 order status at vipps is cancelled
    2022-03-22T19:16:09+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:09+00:00 DEBUG For order 2116 order status at vipps is cancelled
    2022-03-22T19:16:09+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:10+00:00 DEBUG For order 2115 order status at vipps is cancelled
    2022-03-22T19:16:10+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:10+00:00 DEBUG For order 2114 order status at vipps is cancelled
    2022-03-22T19:16:10+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:11+00:00 DEBUG For order 2113 order status at vipps is cancelled
    2022-03-22T19:16:11+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:11+00:00 DEBUG For order 2112 order status at vipps is cancelled
    2022-03-22T19:16:11+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:12+00:00 DEBUG For order 2111 order status at vipps is cancelled
    2022-03-22T19:16:12+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:12+00:00 DEBUG For order 2110 order status at vipps is cancelled
    2022-03-22T19:16:12+00:00 ERROR Could not get Vipps order status - it has no Vipps Order Id. Must cancel.
    2022-03-22T19:16:13+00:00 DEBUG For order 2109 order status at vipps is cancelled
    Plugin Author Iver Odin Kvello

    (@iverok)

    You must never share admin access on this forum; you should change passwords at once. If neccessary, we’ll communicate that over a different channel.

    Your logs indicate there is a problem with how the orders are created. Are you using the normal Woo Checkout, Vipps Express Checkout or Vipps Checkout for these?

    Thread Starter jesse1991

    (@jesse1991)

    This is the plugin –

    Checkout with Vipps for WooCommerce
    Settings | Deactivate | Translate
    Offer Vipps as a payment method for WooCommerce

    Version 1.8.20 | By WP Hosting | View details`

    Thread Starter jesse1991

    (@jesse1991)

    Should I change it to other vipps available payment?

    Thread Starter jesse1991

    (@jesse1991)

    Already updated the password. Please let me know what can I do so we can fix these. This is a live site, and people are ordering and paying using vipps and gets canceled.

    Plugin Author Iver Odin Kvello

    (@iverok)

    The plugin is correct (as in, the one supported on this forum); I’m not sure what you are asking about the other available payment.

    There are three ways to pay with Vipps in this plugin:

    1. through the regular Woocommerce checkout screen,
    2. through Vipps Express Checkout, which is done with a Buy Now button on products or on the cart page,
    3. with the new Vipps Checkout system that must be explicitly chosen in the payment settings.

    Express and Checkout work similarily, but different from the regular WooCommerce checkout process.

    Thread Starter jesse1991

    (@jesse1991)

    The vipps payment will only appear when the customer orders the product through checkout screen. so we are using regular woocommerce check out screen.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Hi,

    Ok; that reduces the number of possible problems.

    We’ve just tested that your site does respond correctly to callbacks, which means that your problem is probably specific to some setting on your site. We may have to take a look at your settings; so if you can contact us at

    [email protected]

    with a reference to this case, we can take it from there.

    In the mean time I would advise you to disable Vipps from your checkout options as we can’t guarantee an easy fix here.

    For your existing orders, you may want to enter the Order screen for them in the backend and press “Show complete transaction details” in the Vipps metabox on the right. You should here get the orders’ status at Vipps. If you do, and it is reserved as opposted to cancelled, you can change its status to on-hold and then cancel to cancel them (I’m guessing that you don’t want to complete these orders).

    If you do *not* get the order status from Vipps, the link between the woo orders and the Vipps transactions are broken. This should be impossible in principle, so it indicates a larger problem somewhere.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Seems the problem was an unrelated plugin trying to log a WP_Error object very early in the process payment process; causing a fatal error when logging the error (!) which again caused the checkout ajax to fail.

    Just in case anybody should find anything like that in their fatal-errors log, this filter may help:

    add_filter( 'woocommerce_logger_log_message', function ($message, $level, $context, $handler ) {
       if (is_wp_error($message)) {
          return "WPH DEBUG WP_Error: " . $message->get_error_message();
       };
       return $message;
    }, 10, 4);
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Help with Vipps Payment’ is closed to new replies.