Reply
Member
Posts: 2
Registered: ‎02-18-2019

Seeing this error: Error creating payment request DOMException: Failed to construct 'PaymentRequest'

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...

 

 

Member
Posts: 1
Registered: ‎04-17-2019

Re: Seeing this error: Error creating payment request DOMException: Failed to construct 'PaymentRequ

 

Have you tried adding 'allowpaymentrequest' to your iframe tag? 

<iframe allowpaymentrequest id="add_payment" ... </iframe> 

 

This resolved the issue for me. 

 

Thanks, 
Jason