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

Fix issue with apple pay token creation in PaymentContext #899

Merged
merged 5 commits into from
Feb 22, 2018

Conversation

bg-stripe
Copy link
Contributor

@bg-stripe bg-stripe commented Feb 22, 2018

r? @danj-stripe

#893 introduced a regression where we unwrapped token.card one level upstream (before attaching to the customer, instead of before didCreatePaymentResult). I should have QA'd this more thoroughly (I think I manually tested the apple pay sources flow, but not the apple pay token flow).

Since this is pretty unintuitive, I've added comments explaining why we need to unwrap token.card. We unfortunately aren't really set up to unit test this code path right now.

Fixes #898

Copy link
Contributor

@danj-stripe danj-stripe left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks so much for jumping on this!

@bg-stripe bg-stripe merged commit fedad46 into master Feb 22, 2018
@bg-stripe bg-stripe deleted the bg-fix-apple-pay-token-issue branch February 22, 2018 17:16
mludowise-stripe pushed a commit that referenced this pull request Mar 24, 2022
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