Skip to content

[Stripe][FIX] LogicException when card is declined #801

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

Merged
merged 4 commits into from
Apr 29, 2021

Conversation

BadPixxel
Copy link

With Stripe, if "save_card" is requested but card is declined, CreateCustomer fails and both $model['card'] && $model['customer'] are unset.
Fix => keep card unchanged if CreateCustomer fails and move forward

@makasim
Copy link
Member

makasim commented Apr 1, 2019

@BadPixxel Thank for the contribution. Could you please add a test?

@makasim makasim added the bug label Apr 1, 2019
@BadPixxel
Copy link
Author

Let try! I'll update the existing test that set Status as failed as it's now unused

@BadPixxel
Copy link
Author

Look like tests are now OK.

@BadPixxel
Copy link
Author

Hi @makasim, Any reason not to merge this?

@Great-Antique
Copy link
Contributor

See #854

@pierredup
Copy link
Member

@BadPixxel If you are up to finishing this one, can you please rebase against master? That should fix the Twig deprecation notices and make the build green

@BadPixxel
Copy link
Author

@pierredup no problem I'll do that.

@pierredup pierredup force-pushed the patch-1 branch 2 times, most recently from ffa0fb8 to 8e64f8a Compare April 10, 2021 07:27
@pierredup pierredup changed the base branch from master to 1.6.x April 10, 2021 07:28
@pierredup pierredup added this to the 1.6.2 milestone Apr 10, 2021
With Stripe, if "save_card" is requested but card is declined, CreateCustomer fails and both $model['card'] && $model['customer'] are unset. 
Fix => keep card unchanged if CreateCustomer fails and move forward
@pierredup pierredup merged commit 1a97566 into Payum:1.6.x Apr 29, 2021
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.

4 participants