feat: add payout options (Stripe + Tremendous)#15
Open
TheDanniCraft wants to merge 19 commits intodfg-ar:mainfrom
Open
feat: add payout options (Stripe + Tremendous)#15TheDanniCraft wants to merge 19 commits intodfg-ar:mainfrom
TheDanniCraft wants to merge 19 commits intodfg-ar:mainfrom
Conversation
78c145e to
71b2a8b
Compare
2e3708b to
3362ef3
Compare
Contributor
Author
|
@dfgonzalez I think its ready for review now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces major enhancements to the payout system, including new database schema changes to support multiple payout methods (such as Stripe and Tremendous), as well as the addition of automated cron jobs for promoting conversions and synchronizing payout statuses. It also updates Docker and documentation to support these new features, making the payout process more robust and automated.
Database schema changes for payouts:
payoutstable to track partner payouts, supporting multiple payout methods (manual, Stripe customer balance, Tremendous), payout statuses, and related transaction/order IDs. (database/0005-payout-methods.sql,database/deploy.sql) [1] [2]conversionstopayoutsby addingpayout_idand failure tracking fields, and created appropriate indexes and foreign keys for efficient queries and referential integrity. (database/0005-payout-methods.sql,database/deploy.sql) [1] [2] [3]stripe_customer_idto thepartnerstable andtremendous_campaign_idto theprogramstable to support new payout flows and campaign selection. (database/0005-payout-methods.sql,database/deploy.sql) [1] [2] [3]database/0005-payout-methods.sql,database/deploy.sql) [1] [2]reward_daysfor new programs to 7. (database/0005-payout-methods.sql,database/deploy.sql) [1] [2]Automated payout and conversion cron jobs:
docker/.env_example,docker/docker-compose.yml,docker/entrypoint.sh,docker/Dockerfile) [1] [2] [3] [4] [5]docker/README_DOCKER.md,readme.md) [1] [2]Application routes for new payout features:
public/index.php) [1] [2]