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 0fca3693
authored
Jun 11, 2020
by
yasir
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tes perbaikan
1 parent
f1118bf9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
src/agratek/api/merchant/views/pay.py
src/agratek/api/merchant/views/templates/pay.pt
src/agratek/api/merchant/views/pay.py
View file @
0fca369
...
...
@@ -99,12 +99,17 @@ class view_pay(BaseView):
request
=
self
.
req
session
=
self
.
ses
url_dict
=
request
.
matchdict
params
=
request
.
params
data_form
=
{}
post_data
=
request
.
POST
items
=
dict
(
post_data
)
produks
=
[]
is_pay_info
=
False
is_pay_info
=
params
and
'end_info'
in
params
or
False
if
post_data
:
if
'bayar'
in
post_data
:
...
...
@@ -345,9 +350,10 @@ class view_pay(BaseView):
formEm
.
request
=
request
formEm
=
Form
(
formEm
)
# params = req.params
return
dict
(
pay_info
=
False
,
pay_info
=
is_pay_info
,
form
=
form
,
formVa
=
formVa
,
...
...
src/agratek/api/merchant/views/templates/pay.pt
View file @
0fca369
...
...
@@ -336,6 +336,12 @@ td, th {
}
$
(
document
).
ready
(
function
()
{
if
(
$
{
pay_info
}
==
true
){
$
(
"#div_info"
).
show
();
$
(
"#div_pay"
).
hide
();
$
(
"#div_gagal"
).
hide
();
}
$
(
"#bt_bayar"
).
click
(
function
(){
var
pay_method
=
$
(
'#pay_method'
).
val
();
var
va_opt
=
$
(
'#va_opt'
).
val
();
...
...
@@ -364,6 +370,7 @@ td, th {
}
else
{
$
(
"#lb_state"
).
html
(
data
.
state
);
$
(
"#div_info"
).
hide
();
$
(
"#div_pay"
).
hide
();
$
(
"#div_gagal"
).
show
();
...
...
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