Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
constellation
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Nounous
constellation
Commits
27e45bf3
Verified
Commit
27e45bf3
authored
3 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
Linting
parent
3a930954
No related branches found
No related tags found
1 merge request
!40
Stripe + Note Kfet payments
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
billing/views/purchase.py
+1
-1
1 addition, 1 deletion
billing/views/purchase.py
billing/views/stripe.py
+2
-2
2 additions, 2 deletions
billing/views/stripe.py
with
3 additions
and
3 deletions
billing/views/purchase.py
+
1
−
1
View file @
27e45bf3
...
...
@@ -107,4 +107,4 @@ class RenderInvoiceView(LoginRequiredMixin, DetailView):
raise
PermissionDenied
if
self
.
get_object
().
valid
and
self
.
get_object
().
html
:
return
HttpResponse
(
content
=
self
.
get_object
().
html
)
return
super
().
get
(
request
,
*
args
,
**
kwargs
)
\ No newline at end of file
return
super
().
get
(
request
,
*
args
,
**
kwargs
)
This diff is collapsed.
Click to expand it.
billing/views/stripe.py
+
2
−
2
View file @
27e45bf3
...
...
@@ -77,7 +77,7 @@ class RedirectStripeView(LoginRequiredMixin, DetailView):
],
mode
=
'
payment
'
,
success_url
=
self
.
request
.
scheme
+
"
://
"
+
host
+
reverse
(
"
billing:stripe_success
"
)
+
"
?session_id={CHECKOUT_SESSION_ID}
"
,
+
"
?session_id={CHECKOUT_SESSION_ID}
"
,
cancel_url
=
self
.
request
.
scheme
+
"
://
"
+
host
+
reverse
(
"
billing:stripe_fail
"
),
)
...
...
@@ -116,7 +116,7 @@ class RedirectStripeView(LoginRequiredMixin, DetailView):
if
key
is
None
:
this_key
=
k
else
:
this_key
=
'
{}[{}]
'
.
format
(
key
,
k
)
this_key
=
'
{}[{}]
'
.
format
(
key
,
k
)
res_l
.
append
(
RedirectStripeView
.
json_to_urlencode
(
v
,
key
=
this_key
))
return
'
&
'
.
join
(
res_l
)
...
...
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