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

Push provisioning take 2 #1396

Merged
merged 10 commits into from
Oct 14, 2019
Merged

Push provisioning take 2 #1396

merged 10 commits into from
Oct 14, 2019

Conversation

jack-stripe
Copy link
Contributor

@jack-stripe jack-stripe commented Sep 28, 2019

Summary

This is a second take at the functionality in #1052.

  • Adds wrappers for the (private) /v1/issuing/cards/:id/push_provisioning_details API, which will generate and spit out an encrypted card payload for use with PKAddPaymentPassViewController.
  • Adds STPPushProvisioningContext, a stateful class that is used to handle fetching an ephemeral key from a user's server and then using that key to call the aforementioned API.
  • Adds STPFakeAddPaymentPassViewController, a UI class that is API-compatible with PKAddPaymentPassViewController but can be more easily used for testing and debugging.

Motivation

Enable push provisioning

Testing

Added snapshot tests for the new API code.

@jack-stripe jack-stripe changed the title [wip] push provisioning Push provisioning take 2 Sep 30, 2019
@davidme-stripe
Copy link
Contributor

The code looks good, though I have some FUD around how App Review will treat references to PKAddPaymentPassViewController in apps that don't have the correct entitlement. We might want to send this through App Review at least once before we ship it out in an SDK.

Can you fix the errors in the CI build?
https://travis-ci.org/stripe/stripe-ios/jobs/591550245#L1426
https://travis-ci.org/stripe/stripe-ios/jobs/591550240#L1305
https://travis-ci.org/stripe/stripe-ios/jobs/591550246#L1045
https://travis-ci.org/stripe/stripe-ios/jobs/591550240#L1312

@jack-stripe
Copy link
Contributor Author

Ooh, good point on the app warnings. I'll try and submit something to the app store this week. Fixed the build issues in the meantime!

@davidme-stripe
Copy link
Contributor

Sounds good! I’m cool with this going in once we’ve tried that.

@stripe-ci stripe-ci removed the approved label Oct 3, 2019
@jack-stripe jack-stripe merged commit 334b69b into master Oct 14, 2019
@jack-stripe jack-stripe deleted the jack-push-provisioning-2 branch October 14, 2019 17:17
ramont-stripe added a commit that referenced this pull request Sep 1, 2022
* Fix Catalyst build on Xcode 14

* Fix Swift 6 compile error

* Update CHANGELOG

* Cleanup
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

Successfully merging this pull request may close these issues.

3 participants