google / google/payjs

Doesn't work with edge mobile

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.