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
Update deviceSupportsApplePay #3350
Comments
Thanks for writing in @acatalina! It'd be surprising if the app store is rejecting apps because of this - can you share the rejection reason?
No need to call |
hey @yuki-stripe, thanks for the quick response. I am surprised we are the only ones hehe We've deployed at least a hundred apps through the app store and we've seen this a very common issue on the approval process.
One of the latests examples.
I think I've not written the issue very well. The alternative that I've considered is not possible neither. The problem here is that I'm trying to check if Apple Pay is supported on the device before showing and/or calling the create payment method but I don't have any methods to do so. |
Ah I see. Your issue was written clearly, I just didn't read carefully! I'd recommend using the native For some more context, I don't think it's an option for us to change |
Fair enough. The thing is I use the react native library that's why I was suggesting changing the behaviour of |
Is your feature request related to a problem? Please describe.
I use the react native library. I am having an issue where our apps gets randomly rejected by the app store review process because they cannot see Apple Pay at checkout. It seems that
deviceSupportsApplePay
is returning false on their device.My only guess is that whatever they are doing in the review process, they don't have a compatible card with apple pay on the device so I was looking into firing the setup apple pay when no cards available. It seems that from iOS 15+ this is not even necessary as customers can add cards directly on the payment sheet.
I don't have much clue when looking at swift and please correct me if I am wrong but as far as I can tell from the react native bridge I call
isPlatformPaySupported
that through the bridge it callsdeviceSupportsApplePay
.Looking at the latest, it seems that it calls canMakePayments with the supported networks.
Checking around, there's also another method here https://github.com/stripe/stripe-ios/blob/d3362b0cd52f0892f4f1fe1e9b0bce5172a82de6/StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift that it does this:
Describe the solution you'd like
If I am correct on what I am saying, I wonder if it's possible to implement a similar approach for
deviceSupportsApplePay
.Describe alternatives you've considered
I was considering firing setup apple pay
PKPassLibrary.init().openPaymentSetup()
but I should check first if Apple Pay is available on the device which there are no methods to do this. As I understand the flow, first it needs to checkcanMakePayments
and thencanMakePaymentsUsingNetworks
to determine if apple pay is supported first and then if there are cards available to pay.I hope it makes sense. Thanks
The text was updated successfully, but these errors were encountered: