I am not utilizling Visa Checkout - just plain vanilla Accept Hosted.
This is a non fatal issue when integrating to Accept Hosted.
Please advise.
Kind Regards,
Michael Fene'
------------------------------------------------------------------------------------------------------------------------------------
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...
04-08-2019 10:38 PM
Have you tried adding 'allowpaymentrequest' to your iframe tag?
<iframe allowpaymentrequest id="add_payment" ... </iframe>
This resolved the issue for me.
Thanks,
Jason
04-17-2019 02:14 PM