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 c32d0c7e
authored
Feb 13, 2020
by
yasir
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan
1 parent
377fc546
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/agratek/api/merchant/views/omnipay/__init__.py
src/agratek/api/merchant/views/omnipay/__init__.py
View file @
c32d0c7
...
@@ -17,7 +17,7 @@ class Vendor(VendorClass): # VendorClass
...
@@ -17,7 +17,7 @@ class Vendor(VendorClass): # VendorClass
settings
=
get_settings
()
settings
=
get_settings
()
self
.
v_produk_kd
=
vendor_produk
.
kode
self
.
v_produk_kd
=
vendor_produk
.
kode
self
.
bank_cd
,
self
.
pay_method
=
self
.
v_produk_kd
.
split
(
'-'
)
#
self.bank_cd, self.pay_method = self.v_produk_kd.split('-')
self
.
url
=
'omnipay_va_url'
in
settings
and
settings
[
'onipay_va_url'
]
or
None
self
.
url
=
'omnipay_va_url'
in
settings
and
settings
[
'onipay_va_url'
]
or
None
self
.
merchantid
=
'omnipay_merchant_id'
in
settings
and
settings
[
'omnipay_merchant_id'
]
or
''
self
.
merchantid
=
'omnipay_merchant_id'
in
settings
and
settings
[
'omnipay_merchant_id'
]
or
''
...
@@ -26,7 +26,7 @@ class Vendor(VendorClass): # VendorClass
...
@@ -26,7 +26,7 @@ class Vendor(VendorClass): # VendorClass
self
.
callback_url
=
"{}/api/vendor/omnipay/callback"
.
format
(
get_host
())
self
.
callback_url
=
"{}/api/vendor/omnipay/callback"
.
format
(
get_host
())
self
.
notify_url
=
"{}/api/vendor/omnipay/notify"
.
format
(
get_host
())
self
.
notify_url
=
"{}/api/vendor/omnipay/notify"
.
format
(
get_host
())
#total yang harus dibayarkan = fee vendor + tagihan VA
#total yang harus dibayarkan = fee vendor
+fee agratek
+ tagihan VA
self
.
amt
=
vendor_produk
.
harga
+
invoice_det
.
amt_sell
self
.
amt
=
vendor_produk
.
harga
+
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
''
...
...
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