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

[NT-15] Users may pledge with Apple Pay #840

Merged
merged 3 commits into from
Sep 13, 2019
Merged

[NT-15] Users may pledge with Apple Pay #840

merged 3 commits into from
Sep 13, 2019

Conversation

ifbarrera
Copy link
Contributor

📲 What

The feature branch containing all of the work integrating Apple Pay into the new Pledge screen.

Note: all this code has already gone through review.

PRs included:

#832
#828

Isabel Barrera and others added 3 commits September 13, 2019 14:48
* Adding CreateApplePayBackingMutation and Input, plus decimal currency formatter

* Adding the mutation to ServiceType

* Formatting

* Fixing minFractionDigits on attributedCurrency formatter & adding tests

* Formatting

* Adding comments

* Use optionals, and use Strings for the input ids

* Expanding on comment about en locale

* Readability
* Adding CreateApplePayBackingMutation and Input, plus decimal currency formatter

* Adding the mutation to ServiceType

* Formatting

* Fixing minFractionDigits on attributedCurrency formatter & adding tests

* Formatting

* Adding comments

* Setup for showing payment authorization view

* Setting up stripe configuration

* Configure Stripe SDK and hook up button

* Display PKPaymentAuthorizationViewController

* Presenting the PKPaymentAuthorizationViewController and calling stripe

* Use a new output signal for the createApplePayBacking’s status

* Hooking up the mutation and adding view model logic

* Improved paymentAuthorizationDidAuthorizePayment input type for testing

* Adding transition to thanks screen

* Don’t send rewardId for no rewards

* PledgeViewModelTests and PledgePaymentMethodsViewModelTests

* Refactoring for easier testing and adding more tests

* PKPaymentRequestHelpersTests

* Test for cancelling apple pay sheet

* Linting and formatting

* Cleanup

* Formatting

* Small refactor of handling for stripe token & error, and moar tests

* Formatting

* Tests for createApplePayBackingInput

* Formatting

* Moving input creation to it’s own file with tests

* Fix naming conflict
@ksr-ci-bot
Copy link

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

Copy link
Contributor

@justinswart justinswart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@ifbarrera ifbarrera merged commit e5deb3e into master Sep 13, 2019
@ifbarrera ifbarrera deleted the native-apple-pay branch September 13, 2019 19:31
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