-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add opencollective payment POST /pay
endpoint
#397
Merged
Merged
Conversation
This file contains 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
rakici
changed the title
Add opencollective payment
Add opencollective payment May 20, 2023
POST /pay
endpoint
elhmn
force-pushed
the
add-opencollective-payments
branch
from
May 20, 2023 23:50
6a875b8
to
23547ed
Compare
elhmn
force-pushed
the
add-opencollective-payments
branch
from
May 21, 2023 08:37
8373df3
to
47f049a
Compare
We can now create a tier using the open collective API and return the URL of that tier to the client. Next, we want to:
|
elhmn
force-pushed
the
add-opencollective-payments
branch
from
May 23, 2023 16:55
1a7df62
to
8ab6bbf
Compare
elhmn
force-pushed
the
add-opencollective-payments
branch
from
May 23, 2023 20:59
d1e27eb
to
9e2e545
Compare
We now are able to check that a payment was performed, get the user email, and delete a tier.
elhmn
force-pushed
the
add-opencollective-payments
branch
from
May 23, 2023 21:13
9e2e545
to
676a0e1
Compare
elhmn
force-pushed
the
add-opencollective-payments
branch
from
May 28, 2023 19:57
6a36d00
to
1426d57
Compare
Now we can provide the opencollective organisation slug as an environment variable
elhmn
force-pushed
the
add-opencollective-payments
branch
from
May 28, 2023 21:52
3f57b8b
to
423a913
Compare
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 implements the
POST /pay
endpoint as part of #366Why ?
We want to allow jobsika users to create new job offers only once they have paid for the service.
Steps to verify:
backend
folder withcd ./backend
.opencollective-env-example .opencollective-env
.opencollective-env
make start-api
to start the apicurl -vsS -X POST -H 'Content-Type: application/json' -d '{"email":"[email protected]", "tier": "je suis con", "job_offer_id": "1"}' http://localhost:7000/pay | jq
you should see something like thisThe
tier_url
is the link to the newly created payment tier.