Skip to content

Click on Buy always throws error: Web payments are not supported in this browser. #4

@haresh333

Description

@haresh333

I am using Google Chrome Browser on my laptop
I installed the demo html and .js on my local web server. I filled the form and clicked Buy.

It invokes below JS method :
function onBuyClicked() {
if (!window.PaymentRequest) {
console.log('Web payments are not supported in this browser.');
return;
}

And prints this error message

Web payments are not supported in this browser.

  1. Please advice - what am I missing in terms of setup/configuration?
  2. Where is this class ? request = new PaymentRequest()
    Do I need to download and include any package in this application?
  3. where does this get initialized?
    if (!window.PaymentRequest) {

Please advice
regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions