Skip to content

[AcceleratedCheckout] Double tapping on Apple Pay makes the app crash #514

@thib4ult

Description

@thib4ult

What area is the issue related to?

Checkout Sheet Kit

What version of Checkout Sheet Kit are you using?

3.4.0

Reproducible sample code

Double tapping on Apple Pay makes the app crash

Steps to Reproduce

We're using AcceleratedCheckoutButtons to display the Apple Pay button like this :

AcceleratedCheckoutButtons(cartID: temporaryCartId)
					.applePayLabel(.plain)
					.wallets([.applePay])
					.payWithApplePayButtonStyle(.black)

If you tap real fast multiple time on the Apple Pay button, the ApplePayViewController calls the function func onPress() async { multiple time and the SDK crashes.

Expected Behavior

The app/SDK shouldn't crash

Actual Behavior

The app crashes if you tap multiple time on the Apple Pay button.

Screenshots/Videos/Log output

No response

Storefront domain

fahlo-dev-v2.myshopify.com

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions