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

feat: centralize determine payment status #2990

Merged
merged 14 commits into from
Dec 20, 2024

Conversation

brunomiguelpinto
Copy link
Contributor

@brunomiguelpinto brunomiguelpinto commented Dec 20, 2024

Context

This Pull Request is to backfill the payable_payment_status field for the Payment model and to centralize the status per provider

Description

This Pull Request introduces a reusable method determine_payment_status to the BaseProvider class, centralizing the logic for payment status determination. It also adds provider-specific status constants (PENDING_STATUSES, SUCCESS_STATUSES, FAILED_STATUSES)

and adds a migration to do the backfilling and the payable_payment_status

@brunomiguelpinto brunomiguelpinto force-pushed the feat-determine-payment-status branch from f39a4b7 to 33bd737 Compare December 20, 2024 15:07
@brunomiguelpinto brunomiguelpinto marked this pull request as ready for review December 20, 2024 16:23
@brunomiguelpinto brunomiguelpinto merged commit c771177 into main Dec 20, 2024
6 checks passed
@brunomiguelpinto brunomiguelpinto deleted the feat-determine-payment-status branch December 20, 2024 17:14
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.

2 participants