Skip to content
This repository was archived by the owner on Apr 19, 2022. It is now read-only.
This repository was archived by the owner on Apr 19, 2022. It is now read-only.

ApplePay button via PaymentRequestButtonElement fails with "Page already has an active payment session." #158

@firemuzzy

Description

@firemuzzy

Bug report

Describe the bug

Apple pay button fails with "InvalidAccessError: Page already has an active payment session." after opening and closing it a couple of times.

You do not have such a problem on your apple pay marketing page https://stripe.com/apple-pay

Not sure where to file this I am seeing this in my usage of <PaymentRequestButtonElement>, and it also shows up in this demo app.

Is there a know work around other than reloading the page? This is a pretty bad bug for SPA applications.

To Reproduce

  • Connect the safari debugger to the iPhone
  • Tap Apple Pay button
  • Cancel Apple Pay sheet
  • Repeat Tapping and Canceling until the button no longer summons an ApplePay sheet. For me it happens after about 4 times.

Expected behavior

The Apple Pay button should always summon the pay sheet

Screenshots

image

I have a video too but I need to blur out my address. If somebody can tell me of a free or cheap software I can use to blur out the address from the apple pay sheet then i'll post the video too.

If applicable, add screenshots to help explain your problem.

System information

  • OS: iOS 13.4.1
  • Browser: safari mobile

Additional context

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