cancel
Showing results for 
Search instead for 
Did you mean: 

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

 

 

fenem
Member
1 REPLY 1

 

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

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

 

This resolved the issue for me. 

 

Thanks, 
Jason 

msudawg3
Member