Forum Replies Created

Viewing 15 replies - 1 through 15 (of 1,724 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    We actually don’t use postMessage at all in this code. In the normal case, the “template_redirect”-hook is used to intercept the “continue with vipps” page, do the login handling and then redirect to the correct place (profile page or otherwise).

    When I currently go to https://fixformeg.no/wp-vipps-login/continue-from-vipps/ I actually get a server error from your site. Could you go through the server logs and check what they say for about 9. june 2026, 12:00-12:05 CEST ?

    Also, if you are using WooCommerce, this plugin will log to a WooCommerce-log called “login-with-vipps”. It should be retrievable from WooCommerce/Status/logs – if you can please check this too.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Det kan nok hende – det er definitivt den tingen som er vanskeligst å forklare med oppsettet. Kunne du fortelle litt om hvor du så etter url-en?

    Plugin Author Iver Odin Kvello

    (@iverok)

    Hei,

    Portalen administreres og utvikles av Vipps selv – dette er forumet for WooCommerce-integrasjonen kun.

    Du kan forsøke å henvende deg til Vipps direkte om du har ideer her; vi kan kun sørge for å tilby den metainformasjonen som Vipps tar i mot for transaksjonene.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Good to hear!

    Yes, I suspected it *should* work in this context, since the “is_available” method isn’t actually called before Checkout is loaded – and at that point the currency ought to be NOK if so chosen. I’d probably do a couple of test purchases just to be sure, but it looks good on the surface.

    Plugin Author Iver Odin Kvello

    (@iverok)

    I’m not familiar with how the Woo Payments plugin works with regard to multi-currency; but you should be able to find out by checking the value of get_woocommerce_currency() while browsing the site with NOK as your customers’ currency. If this then returns NOK, I would expect Vipps to work by just turning it on (and selecting NOK of course). You could just log this or output it in a hidden DIV or something like it. Claude or codex should be able to do that easily.

    We can help with debugging if that doesn’t work – it should be no more than a few lines of code, such as

    add_action('wp_footer', function () {
    echo "\n<!-- current-currency is " . get_woocommerce_currency() . " -->\n";
    error_log("Current currency is " . get_woocommerce_currency());
    });

    — to both log the currency and to print it in a comment in the footer. NB you would need to turn of caching for this to work.

    It is not a sloppy workaround per se – if get_woocommerce_currency() returns NOK and the prices have been calculated correctly with norwegian prices, the base currency of the store shouldn’t matter. Only the currency as it is in the moment of purchase.

    If Woo Payments only implements switching currencies for its own payment gateway, there may be issues; but it seems like an unlikely way to implement it.

    Plugin Author Iver Odin Kvello

    (@iverok)

    If your base currency isn’t NOK (or SEK or DKK or EUR), you will get the warning in the settings, but you should still be able to turn the payment option on. It will only be shown if the gateways is_available-method is true however.

    The “is_available” method of the module checks the result of the “get_woocommerce_currency()” function, so if your multi-currency solution modifies the result of this via filters (the 'woocommerce_currency' filter), the Vipps alternative should be available on the checkout screen if NOK has been chosen.

    There is also a filter, $ok = apply_filters('woo_vipps_is_available', $ok, $this); which runs after the currency check. It is mostly intended to turn Vipps *off* when not supportable though – the currency of the Order will also use get_woocommerce_currency, and this will have to be NOK or the order will fail.

    If your multi-currency plugin does not modify this function, you will need to both implement the woo_vipps_is_available filter and to modify the orders’ currency and total values before the order is sent to Vipps. You should be able to do this with the action do_action('woo_vipps_before_process_payment',$order_id);, but before doing that I would look into how the multicurrency plugin actually does things.

    Plugin Author Iver Odin Kvello

    (@iverok)

    WooCommerce har noen standardinnstillinger for å registrere kunder ved kjøp, under “Innstillinger/Kontoer og Personvern”.

    Du kan kombinere dette med Hurtigkassen ved å velge Vipps MobilePay/Innstillinger under “Hurtigkasse” – “Opprett nye brukere i hurtigkassen”. De vil da bli opprettet med eposten de er registrert med i vipps.

    Hvis du bruker “Login med Vipps” så vil den også kunne brukes sammen med Woo til å registrere kunder med kundens addresse i Vipps.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Version 5.3.2 is out now, which uses a setting to control “failed” vs “cancelled” for retryable orders. For existing sites it should default to “cancelled”.

    If you use “cancel” to handle failed orders, with the filter or with the new setting, the behaviour of the plugin for failed orders will be as before – we note that the order has failed with no redirect.

    If you prefer to redirect to any other page, you can do this with the following filter:

    $failure_redirect = apply_filters('woo_vipps_order_failed_redirect', '', $orderid);

    For “failed” orders this should send users to the failed order page, where they can retry the order either with Vipps or a different payment provider if installed.

    NB: If you experience problems with new versions of this (or other) plugin, it is always possible to go to the “advanced” page, https://ww.wp.xz.cn/plugins/woo-vipps/advanced/ and download earlier versions from there. The plugin is also available on github.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Hei,

    “redirect-url-en” finner du i innstillingene til utvidelsen, som du finner (i nyeste versjon) i “Vipps Mobilepay”-menyen, eller i eldre versjoner under “Innstillinger”.

    Et lite stykke ned finner du et avsnitt der det står “Redirect URIen din er …” og der står den, sammen med et lite sett instruksjoner.

    Denne URL-en må registreres hos Vipps, fordi det er bare registrerte URL-er som de kan sende deg tilbake til. Dette av sikkerhetsgrunner. Du logger da inn i Vipps-portalen (https://portal.vippsmobilepay.com ), velger “Utvikler”, finner ditt utsalgssted og så velger du “Setup Login”. Der kan du registrere de URL-ene du trenger (hvis du har et utviklingssnettsted og et live-nettsted så registrerer du begge her).

    Hei,

    For enkeltkjøp så opprettes det en kunde hvis det er huket av for dette i innstillingene; men om dere har en tredjepartsutvidelse som gir/begrenser tilgang til nettstedet på basis av kjøp, så forekommer det at disse ikke virker ut av boksen med Checkout og Hurtigkasse. Det er fordi at kunden der er anonym *når ordren opprettes*, mens “vanlig” woo oppretter ordre først når kunden er kjent (omtrent).

    Hvis det er tilfelle så er det vanligvis nødvendig/mulig å koble sammen kunde med tilgang når ordre fullføres; med litt ekstra kode. Vi kan hjelpe til med det, men vi trenger da å vite hvilke utvidelser dere eventuelt bruker.

    Plugin Author Iver Odin Kvello

    (@iverok)

    “Pre-ordered” is a custom order status provided by the plugin; of which our plugin is a priori aware. The filter you’ve discovered is provided exactly for this use-case.

    As you’ve probably noticed the plugin can also use “On-hold” by changing the settings, but it is absolutely correct to use the filter you’ve discovered to set the “completed order status” to “pre-ordered”.

    As for your proposed filter, I’d probably just lose the “break” – it probably won’t save you anything measurable and would stay correct if the plugin later eases its restrictions. But as it stands, it should be fine.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Great to hear!

    Plugin Author Iver Odin Kvello

    (@iverok)

    new version is live now; so please check if the issue is resolved when you are ready.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Not from the plugin – this would have to be done from the Vipps Portal, as all of this happens on Vipps’ servers.

    There are some settings for your appearence there; but these might not work for the Checkouts’ login mechanism, because this actually is a login into *vipps*, not your site. I’m not certain if there is a solution for this, but you would need to get it from Vipps themselves.

    Plugin Author Iver Odin Kvello

    (@iverok)

    This plugin used to be two separate plugins; that is true; and since these provide two separate payment gateways and uses two different payment APIs they do treat the payment process slightly differently.

    However, the Checkout screen should absolutely be capable of handling order-received events and has in fact done so since 2022 – back then we used something very much like your filter to dispatch all order-receiveds to the standard checkout; making the Vipps one slightly less self-contained. This caused some problems in some very rare setups.

    https://server.com/kasse/order-received/XXX/?key=YYY *should* in fact exist, as it is a Woo endpoint for the /kasse/ page which is a normal WP page. It should be handled exactly like the standard checkouts’ endpoint, and in fact in exactly the same way, by dispatching to the old shortcode based checkout. If it didn’t exist you should have gotten a 404 here, really.

    This *may* have something to do with your rewrite rules, so you may try to go to your Settings/Permalinks and press “save” there without changing anything. If not, it would be great if you could tell us what versions you are using of Woo and WordPress, if you are using Gutenberg or the old checkout screen, and if you are using any other “Checkout” style plugin that modifies the normal checkout logic.

    Aside from that, your filter for ‘woocommerce_get_return_url’ is correct and should not cause any issues as long as you don’t delete the original checkout page or something like that.

Viewing 15 replies - 1 through 15 (of 1,724 total)