...
It is possible to press [log] icon for it to display event log with refund record.
...
How to test Vipps webhook locally
For debug purposes may be need to test Vipps webhook locally. For that we need somehow expose HTTP url to internet and register webhook using it.
Following chnages need to be made in Payments microservice app.config:
added following key to KeyValueSettings section : <add key="VippsTestWebhookUrl" value="<https://crs-vipps-webhook-test.loca.lt>" /> (value https://crs-vipps-webhook-test.loca.lt is used as example);
Make sure that setting VippsEPaymentIsTestMode is set to “true”, in other case VippsTestWebhookUrl setting will be ignored.
Need to be installed globally on workstation following npm package https://www.npmjs.com/package/localtunnel
After start of services need to be started following command in command prompt :
lt --subdomain crs-vipps-webhook-test --port 9000
Answer will be: your url is: https://crs-vipps-webhook-test.loca.lt and after that 9000 port will be available from internet by url https://crs-vipps-webhook-test.loca.lt which will be enough for setup and test VIPPS webhook.
NOTE: lifetime of thus local tunnel is not defined but by my experiese it is turned off each time when debug services are stopped so each time after restart services locally local tunnel command need to be runned again.
Video demo
...
Following enpdoints