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: donation marked as complete even if card is denied by Stripe #924 #4689

Merged
merged 9 commits into from May 13, 2020

Conversation

mehul0810
Copy link
Contributor

Description

This PR resolves https://github.com/impress-org/give-recurring/issues/924

Affects

What to test

As per the acceptance criteria on the issue.

Screenshots:

Video Link: https://www.loom.com/share/cae03ed23d1b40b6a3bcb8f0c2f4bcd2

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

Copy link
Member

@DevinWalker DevinWalker left a comment

Choose a reason for hiding this comment

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

Please see my review of this PR: https://www.loom.com/share/9dc2312658ca43f39f884fb960bd9a4b

I'm requesting a few changes. Mainly, credit card declines and other errors related to the payment should result in a failed payment status in our plugin, not pending. As well, error logs should be title relevant to the error that occurred.

@mehul0810
Copy link
Contributor Author

@DevinWalker I have generalized the error message under the logs. Also, to update you that the pending donation will not be created if the customer is not created. So, failing a donation is not possible. I have double-checked it at my end. We can discuss about this on today's call if required.

Copy link
Collaborator

@ravinderk ravinderk left a comment

Choose a reason for hiding this comment

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

@mehul0810 added minor suggestions.

@DevinWalker DevinWalker merged commit ba1e668 into develop May 13, 2020
@DevinWalker DevinWalker deleted the recurring/issue/924 branch May 13, 2020 19:50
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

5 participants