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

enableCustomerCancellation = true prevents collectPaymentMethod on simulator / iOS Tap to Pay #301

Open
chrisbianca opened this issue Apr 25, 2024 · 2 comments

Comments

@chrisbianca
Copy link

Summary

Setting enableCustomerCancellation to TRUE when using the iOS simulator or the Tap to Pay reader, results in collectPaymentMethod giving the following error: This feature is currently not available for the selected reader. This works fine with a physical reader (WisePOS E).

This means that different code paths have to be used dependent on the type of reader being used.

Setting the same flag to TRUE when calling collectSetupIntent does not exhibit the same behaviour.

Code to reproduce

--

iOS version

17.4.0

Installation method

Cocoapods (as part of the Terminal React Native SDK)

SDK version

3.4.0 (via React Native SDK version 0.0.1-beta.17)

Other information

I opted to log the issue here rather than in the Stripe React Native Terminal SDK repository as it appears to be an error in the underlying iOS SDK rather than in the React Native wrapper.

@mshafrir-stripe
Copy link

@chrisbianca thanks for filing this issue. I agree that it adds some burden and friction to the user's integration.

For Tap to Pay transactions, because the Tap to Pay UI always shows a cancellation button, we can relax the restrictions to allow enableCustomerCancellation set to TRUE for Tap to Pay transactions. I'll need to investigate whether we can apply the same logic to simulator transactions.

@mshafrir-stripe
Copy link

When you mention "iOS simulator", can you clarify if you're using an sPOS simulator or something else?

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

2 participants