I have the embeded iframe working on my my domain: example.com (for example)
I am working on a new version of the website under dev.example.com. The code is exactly the same, but I was getting the following error:
Error creating payment request DOMException: Failed to construct 'PaymentRequest': Must be in a top-level browsing context or an iframe needs to specify 'allowpaymentrequest' explicitly
at https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6...
at Object.84 (https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6...)
at e (https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6...)
at https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6...
at Object.97../constants (https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:7...)
at e (https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6...)
at a (https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6...)
at https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6...
I saw someone on the board suggested adding the "allowpaymentrequest" option to the iframe and that error went away and now I am getting a new one:
Unable to make a HEAD request to "https://android.com/pay" for payment method manifest.
Is anyone having this problem or know of a way to solve it?
05-10-2019 07:59 AM