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

Create a new internal campaing for members and their fees. #527

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Create a new internal campaing for members and their fees. #527

merged 2 commits into from
Aug 10, 2023

Conversation

slavcho
Copy link
Contributor

@slavcho slavcho commented Aug 3, 2023

We already support subscriptions on the platform.
Now we can use those subscriptions to pay the annual membership fees.

The campaign that is created has an approved status.
So it is not public, but can be accessed via this link:

https://podkrepi.bg/campaigns/podkrepi-membership

Closes podkrepi-bg/frontend#1530

Steps to test

Open the link:
https://podkrepi.bg/campaigns/podkrepi-membership

Then click to donate and select the subscription checkbox.
Although it says "monthly", the donation will be annual in Stripe:

image

Currently we select a random coordinator and a beneficiary, but this will be changed after deploying on production.

This way we can pay the annual fees using stripe and the subscriptions we support.
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

✅ Tests will run for this PR. Once they succeed it can be merged.

@slavcho slavcho added the run tests Allows running the tests workflows for forked repos label Aug 4, 2023
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Aug 4, 2023
We cannot execute this on an empty db. There are simply too many records to provide if the db is empty (person, city, country...)
@slavcho slavcho added the run tests Allows running the tests workflows for forked repos label Aug 4, 2023
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Aug 4, 2023
select id INTO v_beneficiary_id from beneficiaries where coordinator_id = v_coordinator_id limit 1;
select id INTO v_campaign_type_id from campaign_types where name = 'Membership';

IF v_beneficiary_id IS NULL THEN
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Inserting a campaign on an empty DB is too much of a hustle.
Too many objects need to be created from scratch (coordinator, person, city, country...)

Copy link
Contributor

@igoychev igoychev left a comment

Choose a reason for hiding this comment

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

cool!

@igoychev igoychev merged commit 9d6e095 into podkrepi-bg:master Aug 10, 2023
11 of 12 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.

Enable subscription for payment of membership fee to Podkrepi.bg
2 participants