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 sync_payment_source_from_stripe_data to not crash with sources #409

Merged

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Oct 16, 2017

This handles "source" objects now without crashing, but does not create
Card objects from the data therein.

I think that should get done probably?!

Helps with #383.

This handles "source" objects now without crashing, but does not create
Card objects from the data therein.

I think that should get done probably?!
@codecov
Copy link

codecov bot commented Oct 16, 2017

Codecov Report

Merging #409 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #409      +/-   ##
==========================================
+ Coverage   99.39%   99.39%   +<.01%     
==========================================
  Files          34       34              
  Lines        1651     1652       +1     
  Branches      134      135       +1     
==========================================
+ Hits         1641     1642       +1     
  Misses          5        5              
  Partials        5        5
Flag Coverage Δ
#py27dj110 99.39% <100%> (ø) ⬆️
#py27dj111 99.39% <100%> (ø) ⬆️
#py27dj18 99.39% <100%> (ø) ⬆️
#py33dj18 99.39% <100%> (ø) ⬆️
#py34dj110 99.39% <100%> (ø) ⬆️
#py34dj111 99.39% <100%> (ø) ⬆️
#py34dj18 99.39% <100%> (ø) ⬆️
#py35dj110 99.39% <100%> (ø) ⬆️
#py35dj111 99.39% <100%> (ø) ⬆️
#py35dj18 99.39% <100%> (ø) ⬆️
#py35djmaster 99.39% <100%> (ø) ⬆️
#py36dj111 99.39% <100%> (ø) ⬆️
#py36djmaster 99.39% <100%> (ø) ⬆️
Impacted Files Coverage Δ
pinax/stripe/actions/sources.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fda68d4...9aca932. Read the comment docs.

@codecov
Copy link

codecov bot commented Oct 16, 2017

Codecov Report

Merging #409 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #409      +/-   ##
==========================================
+ Coverage   99.39%   99.39%   +<.01%     
==========================================
  Files          34       34              
  Lines        1662     1663       +1     
  Branches      135      136       +1     
==========================================
+ Hits         1652     1653       +1     
  Misses          5        5              
  Partials        5        5
Flag Coverage Δ
#py27dj110 99.39% <100%> (ø) ⬆️
#py27dj111 99.39% <100%> (ø) ⬆️
#py27dj18 99.39% <100%> (ø) ⬆️
#py34dj110 99.39% <100%> (ø) ⬆️
#py34dj111 99.39% <100%> (ø) ⬆️
#py34dj18 99.39% <100%> (ø) ⬆️
#py34dj20 99.39% <100%> (ø) ⬆️
#py35dj110 99.39% <100%> (ø) ⬆️
#py35dj111 99.39% <100%> (ø) ⬆️
#py35dj18 99.39% <100%> (ø) ⬆️
#py35dj20 99.39% <100%> (ø) ⬆️
#py36dj111 99.39% <100%> (ø) ⬆️
#py36dj20 99.39% <100%> (ø) ⬆️
Impacted Files Coverage Δ
pinax/stripe/actions/sources.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a1f3b8...e1e26f2. Read the comment docs.

@blueyed blueyed mentioned this pull request Oct 17, 2017
4 tasks
@blueyed
Copy link
Contributor Author

blueyed commented Oct 17, 2017

This is crucial for webhooks to work correctly when using sources that a not plain card objects.

@blueyed
Copy link
Contributor Author

blueyed commented Oct 17, 2017

IIRC iOS uses card objects, but with Android you get them wrapped in Source objects.

@paltman
Copy link
Member

paltman commented Oct 20, 2017

I like the checking against types. More explicit. I'm wondering why I didn't do that in the first place, unless at one point back in the early days we didn't have type. Anyway, I'm +1 on this. Is it still WIP?

@paltman paltman added this to the Samwise milestone Oct 20, 2017
@blueyed blueyed changed the title [WIP/RFC] Fix sync_payment_source_from_stripe_data to not crash with sources Fix sync_payment_source_from_stripe_data to not crash with sources Oct 20, 2017
@blueyed
Copy link
Contributor Author

blueyed commented Oct 20, 2017

It is good to go as is for now.

@paltman paltman merged commit 5dce06c into pinax:master Oct 25, 2017
@blueyed blueyed deleted the fix-sync_payment_source_from_stripe_data branch October 25, 2017 14:36
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.

None yet

3 participants