Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Kunto
/
backoffice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9923b99c
authored
Feb 13, 2020
by
yasir
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tes tes
1 parent
63d26a0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
src/agratek/api/merchant/views/omnipay/__init__.py
src/agratek/api/merchant/views/omnipay/__init__.py
View file @
9923b99
...
@@ -2,6 +2,7 @@ import json
...
@@ -2,6 +2,7 @@ import json
import
base64
import
base64
import
logging
import
logging
import
md5
import
md5
import
hashlib
from
datetime
import
datetime
from
datetime
import
datetime
from
opensipkd.base
import
get_settings
,
is_devel
,
get_host
from
opensipkd.base
import
get_settings
,
is_devel
,
get_host
...
@@ -31,7 +32,18 @@ class Vendor(VendorClass): # VendorClass
...
@@ -31,7 +32,18 @@ class Vendor(VendorClass): # VendorClass
self
.
amt
=
vendor_produk
.
harga
+
float
(
invoice_det
.
amt_sell
)
self
.
amt
=
vendor_produk
.
harga
+
float
(
invoice_det
.
amt_sell
)
self
.
orderid
=
invoice_det
.
cust_inv_no
self
.
orderid
=
invoice_det
.
cust_inv_no
self
.
verify_key
=
self
.
merchantid
=
'omnipay_verify_key'
in
settings
and
settings
[
'omnipay_verify_key'
]
or
''
self
.
verify_key
=
self
.
merchantid
=
'omnipay_verify_key'
in
settings
and
settings
[
'omnipay_verify_key'
]
or
''
self
.
vcode
=
md5
(
str
(
self
.
amt
)
+
self
.
merchantid
+
self
.
orderid
+
self
.
verify_key
);
vcode
=
hashlib
.
md5
((
str
(
self
.
amt
)
+
self
.
merchantid
+
self
.
orderid
+
self
.
verify_key
)
.
encode
())
.
hexdigest
()
print
(
'self.amt >>'
)
print
(
self
.
amt
)
print
(
'self.merchantid >>'
)
print
(
self
.
merchantid
)
print
(
'self.orderid >>'
)
print
(
self
.
orderid
)
print
(
'self.verify_key >>'
)
print
(
self
.
verify_key
)
print
(
'vcode >>'
)
print
(
vcode
)
self
.
vcode
=
vcode
# customer / agratek_merchant
# customer / agratek_merchant
customer
=
self
.
invoice_det
.
customer
customer
=
self
.
invoice_det
.
customer
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment