Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Tezor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Onboarding
AlekSIS-App-Tezor
Commits
6d7d6ff1
Commit
6d7d6ff1
authored
3 years ago
by
Nik | Klampfradler
Committed by
Tom Teichler
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix mistakes
parent
8f0bed49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Implement payment backends and interaction
Pipeline
#58890
failed
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
aleksis/apps/tezor/apps.py
+2
-2
2 additions, 2 deletions
aleksis/apps/tezor/apps.py
aleksis/apps/tezor/models/invoice.py
+7
-0
7 additions, 0 deletions
aleksis/apps/tezor/models/invoice.py
aleksis/apps/tezor/settings.py
+1
-1
1 addition, 1 deletion
aleksis/apps/tezor/settings.py
with
10 additions
and
3 deletions
aleksis/apps/tezor/apps.py
+
2
−
2
View file @
6d7d6ff1
...
@@ -50,12 +50,12 @@ class DefaultConfig(AppConfig):
...
@@ -50,12 +50,12 @@ class DefaultConfig(AppConfig):
})
})
if
prefs
[
"
payments__pledge_enabled
"
]:
if
prefs
[
"
payments__pledge_enabled
"
]:
variants
[
"
p
aypal
"
]
=
(
"
djp_sepa.PaymentPledgeProvider
"
,
{
variants
[
"
p
ledge
"
]
=
(
"
djp_sepa.
providers.
PaymentPledgeProvider
"
,
{
})
})
if
prefs
[
"
payments__sdd_creditor_identifier
"
]:
if
prefs
[
"
payments__sdd_creditor_identifier
"
]:
variants
[
"
paypal
"
]
=
(
"
djp_sepa.DirectDebitProvider
"
,
{
variants
[
"
sdd
"
]
=
(
"
djp_sepa.
providers.
DirectDebitProvider
"
,
{
"
creditor
"
:
prefs
[
"
payments__sdd_creditor
"
],
"
creditor
"
:
prefs
[
"
payments__sdd_creditor
"
],
"
creditor_identifier
"
:
prefs
[
"
payments__sdd_creditor_identifier
"
],
"
creditor_identifier
"
:
prefs
[
"
payments__sdd_creditor_identifier
"
],
})
})
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/tezor/models/invoice.py
+
7
−
0
View file @
6d7d6ff1
from
django.contrib.contenttypes.fields
import
GenericForeignKey
from
django.contrib.contenttypes.fields
import
GenericForeignKey
from
django.contrib.contenttypes.models
import
ContentType
from
django.contrib.contenttypes.models
import
ContentType
from
django.db
import
models
from
django.db
import
models
from
django.shortcuts
import
reverse
from
django.utils.translation
import
gettext_lazy
as
_
from
django.utils.translation
import
gettext_lazy
as
_
from
djmoney.models.fields
import
CurrencyField
,
MoneyField
from
djmoney.models.fields
import
CurrencyField
,
MoneyField
...
@@ -77,3 +78,9 @@ class Invoice(BasePayment, PureDjangoModel):
...
@@ -77,3 +78,9 @@ class Invoice(BasePayment, PureDjangoModel):
})
})
return
TotalsTable
(
values
)
return
TotalsTable
(
values
)
def
get_success_url
(
self
):
return
reverse
(
"
payment_details
"
,
kwargs
=
{
"
token
"
:
self
.
token
})
def
get_failure_url
(
self
):
return
reverse
(
"
payment_details
"
,
kwargs
=
{
"
token
"
:
self
.
token
})
This diff is collapsed.
Click to expand it.
aleksis/apps/tezor/settings.py
+
1
−
1
View file @
6d7d6ff1
INSTALLED_APPS
=
[
"
payments
"
]
INSTALLED_APPS
=
[
"
payments
"
,
"
djp_sepa
"
]
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