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

wip: upgrade stripe api #1858

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions donations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,8 @@ def donation_session_stripe(request):
session = stripe.checkout.Session.create(
customer_email=email_to,
payment_method_types=['card'],
line_items=[{
'name': 'Freesound donation',
'description': 'Donation for freesound.org',
'images': ['https://freesound.org/media/images/logo.png'],
'amount': int(amount*100),
'currency': 'eur',
'quantity': 1,
}],
line_items=[{"price": 'price_1QuuVbCKrHd9PvRmTg8cA7JA', "quantity": 1}],
mode='payment',
success_url=return_url_success,
cancel_url=return_url_cancel,
)
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ scikit-learn==1.4.1.post1 # clustering
scipy==1.12.0 # clustering
sentry-sdk[django]~=2.21.0
Sphinx==1.6.3
stripe==2.28.1
stripe==11.5.0
xlrd==2.0.1 # for reading .xls files (but not .xlsx)
zenpy==1.1.3
23 changes: 11 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile
#
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in -o requirements.txt
akismet==1.0.1
# via -r requirements.in
alabaster==0.7.13
Expand Down Expand Up @@ -232,6 +228,8 @@ pickleshare==0.7.5
# via ipython
pillow==9.5.0
# via -r requirements.in
pip==25.0.1
# via pip-tools
pip-tools==7.1.0
# via -r requirements.in
pluggy==1.5.0
Expand Down Expand Up @@ -311,8 +309,12 @@ scipy==1.12.0
# via
# -r requirements.in
# scikit-learn
sentry-sdk[django]==2.21.0
sentry-sdk==2.21.0
# via -r requirements.in
setuptools==75.8.0
# via
# pip-tools
# sphinx
sgmllib3k==1.0.0
# via feedparser
six==1.16.0
Expand All @@ -339,7 +341,7 @@ sqlparse==0.4.4
# django-silk
stack-data==0.6.3
# via ipython
stripe==2.28.1
stripe==11.5.0
# via -r requirements.in
threadpoolctl==3.3.0
# via scikit-learn
Expand All @@ -359,6 +361,7 @@ typing-extensions==4.9.0
# via
# asgiref
# dj-database-url
# stripe
tzdata==2023.4
# via celery
uritemplate==4.1.1
Expand All @@ -385,7 +388,3 @@ xlrd==2.0.1
# via -r requirements.in
zenpy==1.1.3
# via -r requirements.in

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools