• Resolved markustag

    (@markustag)


    Hi,

    I wanted to install this Vipps/Mobilepay-plugin to my local site, but looks like this kind of process is not fully supported? I got this error when I tried to purchase product:


    2024-09-24T06:59:44+00:00
    Virhe Webhookeja ei voitu rekister?id? merchant serial number 2051863 callback:ia https://local-site.codetag/wc-api/wc_gateway_vipps/?callback=webhook varten: Extra details: Array ( [0] => Array ( [name] => url [reason] => The URL and/or hostname you provided is not allowed. ) ) 2024-09-24T07:00:17+00:00 Info Verkkosivustollasi ei ole K?ytt?ehdot-sivua – Vipps Checkout aloitetaan kuitenkin, mutta t?llainen sivu tulisi m??ritt?? 2024-09-24T07:00:17+00:00 Testaustila Initiating Checkout session for woolylynpi1949 2024-09-24T07:00:17+00:00 Virhe Vipps Checkout istuntoa ei voitu aloittaa: Array ( [Logistics.DynamicOptionsCallback] => Array ( [0] => Dynamic Options Callback must be a non-local URI. ) [MerchantInfo.CallbackUrl] => Array ( [0] => Callback Url must be a non-local URI. ) [Transaction.OrderSummary.OrderLines[0].ProductUrl] => Array ( [0] => Product Url must be a non-local URI. ) )

    Loader is shown a few seconds and then there is just error text for user. And above error in log.

    I use Laragon (supports custom URLs and local SSL) 5.0.0 with PHP 8.1.22, Apache httpd-2.4.35 and MySQL 8.0.30. Operating system is Windows 10.

    Some of the previous payment service providers I have worked with allow local URLs, so this is a bit of bummer if I really have to develop webshop at almost public address.

    Is there some kind of workaround? I didn’t find anything from official Vipps/Mobilepay docs that says that I can’t develop using local URLs with this plugin.

    Thanks in advance.

    – Markus

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

    (@iverok)

    That specific error message is from Vipps/Mobilepay itself, not from the plugin and it is about the domain you provide for callbacks about order status, shipping etc. This has to be reachable from the internet – specifically from Vipps/Mobilepays servers – and it seems that local-site.codetag does not resolve.

    You will need to use a dynamic dns setup to do local development; at least for the callbacks.

    Thread Starter markustag

    (@markustag)

    Thanks. I look into that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.