I have installed Klarnas payment provider in Vendr but I do not manage to get any orders in to Vendr after a purchase is successful.
It seems that when a purchase is successful, you are redirected to continueUrl (confirmation page) without creating a order in Vendr. Should not the Success have the callbackUrl with parameters to create an order?
Is there anyone who can explain to me how Klarna is talking to the ProcessCallback method through StatusUpdate url? I run this locally and maybe that's why callbackUrl can not be triggered from Klarna?
All payment confirmations occur via webhooks to the StatusUpdate URL. The reason this won't be working locally is because on a local install, your StatusUpdate will be a local URL and so Klarna won't be able to make a call to it.
In order to get this to work locally you'll need to use something like ngrok to create a publicly accessible URL to your instance.
Perfect! This was exactly what I needed.
I installed ngrok and made a ngrok.bat file which I put in the root of the project. Now I can start it very easily.
Vendr - Klarna Payment Provider
I have installed Klarnas payment provider in Vendr but I do not manage to get any orders in to Vendr after a purchase is successful.
It seems that when a purchase is successful, you are redirected to continueUrl (confirmation page) without creating a order in Vendr. Should not the Success have the callbackUrl with parameters to create an order?
Is there anyone who can explain to me how Klarna is talking to the ProcessCallback method through StatusUpdate url? I run this locally and maybe that's why callbackUrl can not be triggered from Klarna?
Kind Regards
Hi Nibbe,
All payment confirmations occur via webhooks to the StatusUpdate URL. The reason this won't be working locally is because on a local install, your StatusUpdate will be a local URL and so Klarna won't be able to make a call to it.
In order to get this to work locally you'll need to use something like ngrok to create a publicly accessible URL to your instance.
We are a bit behind on the documentation for the Klarna provider, but the docs for the Stripe provider might help, specifically the "How to test webhooks locally" section https://vendr.net/docs/payment-providers/stripe/1-1-0/stripe-checkout/how-to-guides/testing-stripe-webhooks-locally/
Hope this helps
Matt
Perfect! This was exactly what I needed. I installed ngrok and made a ngrok.bat file which I put in the root of the project. Now I can start it very easily.
Many thanks Matt!
is working on a reply...