When implementing payment through Google Pay on Chrome desktop, it functions smoothly. However, an error occurs when attempting to pay using a smartphone, triggering an additional modal window with a card selection:
vue.esm.js?a026:152 Uncaught (in promise) DOMException: Blocked a frame with origin "localhost:8080" from accessing a cross-origin frame.
at hasOwnProperty ()
at hasOwn (webpack-internal:///./node_modules/vue/dist/vue.es...)
at observe (webpack-internal:///./node_modules/vue/dist/vue.es...)
at Oc.reactiveSetter [as Ya] (webpack-internal:///./node_modules/vue/dist/vue.es...)
at Oc.show (https://pay.google.com/gp/p/js/pay.js:146:528)
at https://pay.google.com/gp/p/js/pay.js:223:374
hasOwn @ vue.esm.js?a026:152
observe @ vue.esm.js?a026:988
reactiveSetter @ vue.esm.js?a026:1063
Oc.show @ pay.js:146
(anonymous) @ pay.js:223
Promise.then (async)
W.V @ pay.js:223
k.V @ pay.js:241
(anonymous) @ pay.js:255
k.V @ pay.js:255
onGooglePaymentButtonClicked @ app.vue?1919:483
Interestingly, the implementation of Google Pay payment in pure JS works without any issues.