Apple Pay SDK on Chrome Failed to execute postMessage on 'Window'

Hello I'm getting an error when the Apple Pay sheet opens on a third party browser like Chrome when completeShippingMethodSelection is called

'DataCloneError: Failed to execute 'postMessage' on 'Window': #<Object> could not be cloned.'

I'm also seeing this warning when the apple pay sheet opens

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://applepay.cdn-apple.com') does not match the recipient window's origin

although I also see this warning on https://applepaydemo.apple.com/

Accepted Answer

so it ended up being incorrect value types passed into completeShippingMethodSelection

i.e. amount is supposed to be number and not string

"label": "Label",
"amount": "136.69"
},
Apple Pay SDK on Chrome Failed to execute postMessage on 'Window'
 
 
Q