Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stripe-checkout
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
stripe-checkout
Commits
33c784e6
Commit
33c784e6
authored
1 month ago
by
geant-release-service
Browse files
Options
Downloads
Plain Diff
Finished release 0.17.
parents
94d06466
8d73e21e
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Changelog.md
+4
-1
4 additions, 1 deletion
Changelog.md
config-example.json
+9
-1
9 additions, 1 deletion
config-example.json
setup.py
+1
-1
1 addition, 1 deletion
setup.py
stripe_checkout/stripe_checkout/compare_visit_stripe.py
+8
-3
8 additions, 3 deletions
stripe_checkout/stripe_checkout/compare_visit_stripe.py
with
22 additions
and
6 deletions
Changelog.md
+
4
−
1
View file @
33c784e6
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
All notable changes to this project will be documented in this file.
All notable changes to this project will be documented in this file.
## [0.16] - 2025-02-12
## [0.17] - 2025-04-22
-
Introduce ERROR_REPORT_IGNORE_REGISTRATION_TYPES setting to configure error report ignore list
## [0.16] - 2025-04-14
-
Exclude void invoices from possbile error report
-
Exclude void invoices from possbile error report
-
Limit max invoice due date and set maximum date for allowing bank transfers
-
Limit max invoice due date and set maximum date for allowing bank transfers
...
...
This diff is collapsed.
Click to expand it.
config-example.json
+
9
−
1
View file @
33c784e6
...
@@ -7,5 +7,13 @@
...
@@ -7,5 +7,13 @@
"VISIT_EXPO_ID"
:
"18lm2fafttito"
,
"VISIT_EXPO_ID"
:
"18lm2fafttito"
,
"SEND_ERROR_EMAILS_TO"
:
[],
"SEND_ERROR_EMAILS_TO"
:
[],
"MAX_INVOICE_DUE_DATE"
:
"2025-05-23"
,
"MAX_INVOICE_DUE_DATE"
:
"2025-05-23"
,
"MAX_BANK_TRANSFER_ALLOWED_DATE"
:
"2025-05-12"
"MAX_BANK_TRANSFER_ALLOWED_DATE"
:
"2025-05-12"
,
"ERROR_REPORT_IGNORE_REGISTRATION_TYPES"
:
[
"VIP"
,
"Staff"
,
"FTP"
,
"Partner"
,
"Online Participant"
,
"E-NREN"
]
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
33c784e6
...
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
...
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup
(
setup
(
name
=
"
stripe-checkout
"
,
name
=
"
stripe-checkout
"
,
version
=
"
0.1
6
"
,
version
=
"
0.1
7
"
,
author
=
"
GEANT
"
,
author
=
"
GEANT
"
,
author_email
=
"
swd@geant.org
"
,
author_email
=
"
swd@geant.org
"
,
description
=
"
Stripe custom checkout support service
"
,
description
=
"
Stripe custom checkout support service
"
,
...
...
This diff is collapsed.
Click to expand it.
stripe_checkout/stripe_checkout/compare_visit_stripe.py
+
8
−
3
View file @
33c784e6
from
typing
import
Collection
from
django.conf
import
settings
import
stripe
import
stripe
from
stripe_checkout.stripe_checkout
import
visit
from
stripe_checkout.stripe_checkout
import
visit
...
@@ -36,10 +38,13 @@ class VisitorWrapper(StripeWrapper):
...
@@ -36,10 +38,13 @@ class VisitorWrapper(StripeWrapper):
class
PossibleErrorReporter
(
CSVReporter
):
class
PossibleErrorReporter
(
CSVReporter
):
def
iter_report_items
(
self
,
data
):
def
iter_report_items
(
self
,
data
):
ignore_registration_types
=
set
(
getattr
(
settings
,
"
ERROR_REPORT_IGNORE_REGISTRATION_TYPES
"
,
[])
)
seen
=
set
()
seen
=
set
()
for
obj
in
super
().
iter_report_items
(
data
):
for
obj
in
super
().
iter_report_items
(
data
):
seen
.
add
(
obj
[
"
Email address
"
])
seen
.
add
(
obj
[
"
Email address
"
])
if
self
.
_is_suspect
(
obj
):
if
self
.
_is_suspect
(
obj
,
ignore_registration_types
):
yield
obj
yield
obj
unseen_invoices
:
dict
[
str
,
list
[
dict
]]
=
{}
unseen_invoices
:
dict
[
str
,
list
[
dict
]]
=
{}
for
obj_id
,
obj
in
data
[
"
stripe
"
].
items
():
for
obj_id
,
obj
in
data
[
"
stripe
"
].
items
():
...
@@ -60,8 +65,8 @@ class PossibleErrorReporter(CSVReporter):
...
@@ -60,8 +65,8 @@ class PossibleErrorReporter(CSVReporter):
}
}
@staticmethod
@staticmethod
def
_is_suspect
(
obj
:
dict
):
def
_is_suspect
(
obj
:
dict
,
ignore_registration_types
:
Collection
[
str
]
):
if
obj
[
"
Registration Type
"
]
in
{
"
VIP
"
,
"
Staff
"
}
:
if
obj
[
"
Registration Type
"
]
in
ignore_registration_types
:
return
False
return
False
return
obj
[
"
Invoice Count
"
]
!=
1
return
obj
[
"
Invoice Count
"
]
!=
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment