Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Pay - Payment is null when fetched for readystatus #1222

Open
lorenzOliveto opened this issue Dec 7, 2023 · 0 comments
Open

Apple Pay - Payment is null when fetched for readystatus #1222

lorenzOliveto opened this issue Dec 7, 2023 · 0 comments

Comments

@lorenzOliveto
Copy link

I'm trying to implement the apple pay checkout but I'm facing this issue: when I query for the payment to check if it's been completed it returns nil so the checkout always fails.

This is the query

Storefront.buildQuery(inContext: context) { $0
    .node(id: paymentId) { $0
        .onPayment { $0
            .id()
            .ready()
            .errorMessage()
        }
    }
}

I'm sure that the payment id is correct since I've taken it for the checkout previously.

What could cause this problem? How can I query for errors on this operation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant