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

Unify update_status_and_charges for generic provider support #10457

Merged
merged 10 commits into from
Dec 26, 2024

Conversation

gregorbg
Copy link
Member

@gregorbg gregorbg commented Dec 21, 2024

Partial implementation of #9208

The idea is to pull out all platform-specific behavior from update_stripe_status_and_charges, and implement that in the CPI instead. The payment intent's update_status_and_charges then gets the CPI as an additional param, which it can use to call the platform-specific functionality as sort of like an "interface"

Edit: For review, I recommend the "Hide Whitespace" feature in the diff settings

Copy link
Contributor

@dunkOnIT dunkOnIT left a comment

Choose a reason for hiding this comment

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

LGTM and tested locally with succeeded and failed payments, plus refunds - all works as expected

@gregorbg gregorbg merged commit 5bbc07a into thewca:main Dec 26, 2024
2 checks passed
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.

2 participants