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

ApplePay support in STPPaymentHandler, STPPaymentContext #1264

Merged
merged 10 commits into from
Jul 31, 2019

Conversation

yuki-stripe
Copy link
Collaborator

Summary

STPPaymentHandler can't present on top of the Apple Pay sheet. This PR adds a authenticationWillPresent: delegate method to STPAuthenticationContext to let the user dismiss the Apple Pay sheet.

I also reworked users of STPPaymentHandler to handle this:

  • STPPaymentContext now conforms to STPAuthenticationContext, and users should pass it to STPPaymentHandler
  • Standard Integration updated to do ^
  • ApplePayExampleViewController now uses STPPaymentHandler

Motivation

Make Apple Pay work with STPPaymentHandler

Testing

Manually tested the following combinations:

STPPaymentContext, Custom Integration
x
Apple Pay, manual card entry
x
Test cards 3220, 3063, 4242 (3DS2, 3DS1, regular)

@yuki-stripe yuki-stripe merged commit 43f1510 into master Jul 31, 2019
@yuki-stripe yuki-stripe deleted the yuki-apple-pay-paymenthandler branch July 31, 2019 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants