Git Product home page Git Product logo

payjs's Introduction

payjs's People

Contributors

pengxianzhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

payjs's Issues

Doesn't work with edge mobile

Browser version: Edge 42.0.4.4057

OS: Android 7.0;; SM-N920C Build/NRD90M

When clicking Pay button with GooglePay in https://google-pay-demo.glitch.me/, I got the error

(index):134 DOMException
(anonymous) @ (index):134
Promise.catch (async)
onGooglePaymentButtonClicked @ (index):132

And the detail inside this error is

err: DOMException
code: 20
name: "AbortError"
message: "Request cancelled"
statusCode: "CANCELED"
__proto__: DOMException
code: (...)
name: (...)
message: (...)
INDEX_SIZE_ERR: 1
DOMSTRING_SIZE_ERR: 2
HIERARCHY_REQUEST_ERR: 3
WRONG_DOCUMENT_ERR: 4
INVALID_CHARACTER_ERR: 5
NO_DATA_ALLOWED_ERR: 6
NO_MODIFICATION_ALLOWED_ERR: 7
NOT_FOUND_ERR: 8
NOT_SUPPORTED_ERR: 9
INUSE_ATTRIBUTE_ERR: 10
INVALID_STATE_ERR: 11
SYNTAX_ERR: 12
INVALID_MODIFICATION_ERR: 13
NAMESPACE_ERR: 14
INVALID_ACCESS_ERR: 15
VALIDATION_ERR: 16
TYPE_MISMATCH_ERR: 17
SECURITY_ERR: 18
NETWORK_ERR: 19
ABORT_ERR: 20
URL_MISMATCH_ERR: 21
QUOTA_EXCEEDED_ERR: 22
TIMEOUT_ERR: 23
INVALID_NODE_TYPE_ERR: 24
DATA_CLONE_ERR: 25
constructor: ƒ DOMException()
Symbol(Symbol.toStringTag): "DOMException"
get code: ƒ code()
get name: ƒ name()
get message: ƒ message()
__proto__: Object

You can reproduce this issue with the detail above.

I tried to find related information but cannot find useful one that would make this work in Edge mobile. What I've tried and work is switching to View desktop siteoption in mobile device. The error is gone.(Of course it works in Edge on desktop device as well)

But with View mobile site option, it doesn't work.

Expected result: It should popup dialog to login with google account and able to make payment with GooglePay.

PS: This issue also happens in my application implementation but I use google pay demo so that it can be easily check for public here.

Please advise how to make it works on Edge mobile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.