Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Small Technology Foundation web site
spikes
patronage
Commits
c83d5a2e
Verified
Commit
c83d5a2e
authored
Jul 21, 2019
by
Aral Balkan
Browse files
Move cancel route under fund-us route; add pause patronage section
parent
bfd77343
Pipeline
#875
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.dynamic/patronage.js
View file @
c83d5a2e
...
...
@@ -76,7 +76,7 @@ module.exports = async (request, response) => {
<h2>Update your patronage</h2>
<p>This will update your patronage amount.</p>
<p>This will update your patronage amount
effective immediately
.</p>
<form action='/patronage?action=update&id=
${
subscriptionId
}
'>
<label for='amount'>Amount (€/month):<label>
...
...
@@ -84,6 +84,14 @@ module.exports = async (request, response) => {
<input type='submit' value='Update my patronage' />
</form>
<h2>Pause your patronage</h2>
<p>This will pause your patronage effective immediately. You can resume it again at any point.</p>
<form action='/patronage?action=pause&id=
${
subscriptionId
}
'>
<input type='submit' value='Pause my patronage' />
</form>
<h2>Cancel your patronage</h2>
<p>This will stop your monthly patronage effective immediately.</p>
...
...
cancel/index.html
→
fund-us/
cancel/index.html
View file @
c83d5a2e
File moved
fund-us/index.html
View file @
c83d5a2e
...
...
@@ -26,7 +26,7 @@
{
plan
:
'
plan_FSsO2vwva5oEOP
'
,
quantity
:
100
}
],
successUrl
:
'
https://aral.hypha.dev/patronage/?id={CHECKOUT_SESSION_ID}
'
,
cancelUrl
:
'
https://aral.hypha.dev/
patronage/?status=failed
'
,
cancelUrl
:
'
https://aral.hypha.dev/
fund-us/cancel
'
,
}).
then
(
function
(
result
)
{
// If `redirectToCheckout` fails due to a browser or network
// error, display the localized error message to your customer
...
...
success/index.html
deleted
100644 → 0
View file @
bfd77343
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
Success
</title>
<style>
html
{
color
:
black
;
background-color
:
white
;
}
</style>
</head>
<body>
<h1>
Success!
</h1>
<p
id=
'message'
></p>
<script>
const
urlParams
=
new
URLSearchParams
(
window
.
location
.
search
)
const
sessionId
=
urlParams
.
get
(
'
session_id
'
)
const
adminPageUrl
=
`https://aral.hypha.dev/fund-us/?session_id=
${
sessionId
}
`
document
.
querySelector
(
'
#message
'
).
innerHTML
=
`
Please bookmark this address: <a href='
${
adminPageUrl
}
'>Your patronage page</a>.
It is the page from which you can make changes to your patronage.
`
</script>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment