I’m using Apple Pay for payments. I already have done domain verification and am using Safari on BrowserStack, since I do not have an iPhone or Mac. Every time I click the button, the “tokenize()” method returns a status of “Cancel”. Is this because my Apple Pay Wallet doesn’t have a card under it? It’s also kind of weird using BrowserStack instead of an actual Apple device, and I wouldn’t doubt if BrowserStack wouldn’t be able to authenticate my Apple account and automatically pull in my information.
I’d really appreciate if someone with an Apple Pay account (with a card filed in it) and an Apple device can test this for me, just so I know it works. The URL for the online store is Affordable Bowling Tools | JR Raymond | Buy Release Trainer or PinPoint Targeting Tool. You can add a product under your cart, hit the “Check Out” button, and on the checkout page, select the “Digital Wallet” option on step 3 of the wizard, and click the “Buy with Apple Pay” button. All I need to verify is that a screen pops up for selecting a card under Apple Pay; obviously, nobody needs to buy anything from my store
.
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Tap to Pay on iPhone
Troubleshoot In-App Payments SDK Problems
Download, Configure, and Run the Client Sample
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
The issue you’re experiencing with the “tokenize()” method returning a status of “Cancel” is likely due to the fact that your Apple Pay Wallet doesn’t have a card associated with it. Apple Pay requires a valid card to be added to the wallet for transactions to proceed. Since you’re using BrowserStack, which simulates devices, it might not fully support the Apple Pay functionality as it would on a real Apple device. This could also contribute to the inability to authenticate your Apple account and pull in your information.
To verify the functionality, it would indeed be beneficial to test on an actual Apple device with a valid card added to the Apple Pay Wallet. This would ensure that the Apple Pay integration is working as expected. If you can find someone with an Apple device and a configured Apple Pay account, they could help confirm whether the payment sheet appears correctly when attempting to make a purchase on your site.
This answer was reviewed by @Bryan-Square.