Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
c979bdda
Commit
c979bdda
authored
Jul 03, 2018
by
Hugo LEVY-FALK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nommage des champs ComNpay
parent
692b3b70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
cotisations/migrations/0034_auto_20180703_0929.py
cotisations/migrations/0034_auto_20180703_0929.py
+26
-0
cotisations/payment_methods/comnpay/models.py
cotisations/payment_methods/comnpay/models.py
+4
-1
No files found.
cotisations/migrations/0034_auto_20180703_0929.py
0 → 100644
View file @
c979bdda
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-07-03 14:29
from
__future__
import
unicode_literals
import
cotisations.payment_methods.comnpay.aes_field
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'cotisations'
,
'0033_balancepayment'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'comnpaypayment'
,
name
=
'payment_credential'
,
field
=
models
.
CharField
(
blank
=
True
,
default
=
''
,
max_length
=
255
,
verbose_name
=
'ComNpay VAD Number'
),
),
migrations
.
AlterField
(
model_name
=
'comnpaypayment'
,
name
=
'payment_pass'
,
field
=
cotisations
.
payment_methods
.
comnpay
.
aes_field
.
AESEncryptedField
(
blank
=
True
,
max_length
=
255
,
null
=
True
,
verbose_name
=
'ComNpay Secret Key'
),
),
]
cotisations/payment_methods/comnpay/models.py
View file @
c979bdda
...
...
@@ -2,6 +2,7 @@ from django.db import models
from
django.shortcuts
import
render
from
django.urls
import
reverse
from
django.utils.translation
import
ugettext
as
_
from
django.utils.translation
import
ugettext_lazy
as
_l
from
cotisations.models
import
Paiement
from
cotisations.payment_methods.mixins
import
PaymentMethodMixin
...
...
@@ -22,12 +23,14 @@ class ComnpayPayment(PaymentMethodMixin, models.Model):
payment_credential
=
models
.
CharField
(
max_length
=
255
,
default
=
''
,
blank
=
True
blank
=
True
,
verbose_name
=
_l
(
"ComNpay VAD Number"
),
)
payment_pass
=
AESEncryptedField
(
max_length
=
255
,
null
=
True
,
blank
=
True
,
verbose_name
=
_l
(
"ComNpay Secret Key"
),
)
def
end_payment
(
self
,
invoice
,
request
):
...
...
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