google-pay-button: TypeError: Cannot read properties of null (reading 'close')

Describe the bug An error is being thrown by pay.js when opening/closing the Google Pay window several times

To Reproduce:

  1. Click on the Google Pay button (like if you want to break it).
  2. Close the Google Pay window (try to break it again).
  3. Repeat 1 and 2 until you get the error.

Expected behavior We expect it to not fail, so Sentry is not alarming us all the time.

Screenshots

image

Component information:

  • Component
    • React component (@google-pay/button-react)
    • Custom element (@google-pay/button-element)
    • Angular component (@google-pay/button-angular)
  • Component version (e.g. 1.0.0):

Environment:

  • Device (e.g. PC):
  • OS (e.g. Windows 10):
  • Browser (e.g. Edge 111.0.1661)
  • Country/region: USA

Additional context It also happens in many other devices and OS/Browsers. E.g Samsung S21 Ultra / Samsung Mobile browser

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 4
  • Comments: 43 (24 by maintainers)

Most upvoted comments

@cristhian-bento thanks for reporting this. we will take a closer look and report back.

@cristhian-bento / @johnratignier we deployed a fix for this error. Could you check again?

@johnratignier just checked today 😉 I should be able to give you an update by the end of the week

@johnratignier the issue is on our list. so sorry for not being able to give you more details for now…