1๐
I think Websockets should work for your problem. As you already said you should persist the state of the payment in your database. When the Swish app calls your callback url you send an websocket request with the new state and needed information. The state is needed when the websocket connection is recreated due errors in the communication.
Some links which may be usefull:
๐คalindner
- [Vuejs]-Variable form inside dialog with Vue and Vuetify
- [Vuejs]-Nuxt axios interceptors not logging as expected
Source:stackexchange.com