Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Thomas Gambier
slapos.core
Commits
6cac16a2
Commit
6cac16a2
authored
Jan 22, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Include return page for payzen constaining all meaningfull messages.
parent
218b8eac
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
754 additions
and
0 deletions
+754
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_payment_result_html.html
...module/rjs_gadget_erp5_page_slap_payment_result_html.html
+27
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_payment_result_html.xml
..._module/rjs_gadget_erp5_page_slap_payment_result_html.xml
+324
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js.js
...em/web_page_module/rjs_gadget_slapos_payment_result_js.js
+83
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js.xml
...m/web_page_module/rjs_gadget_slapos_payment_result_js.xml
+320
-0
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_payment_result_html.html
0 → 100644
View file @
6cac16a2
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Background
</title>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"handlebars.js"
></script>
<script
src=
"gadget_slapos_payment_result.js"
></script>
<script
id=
"message-template"
type=
"text/x-handlebars-template"
>
<
p
>
<
center
><
strong
>
{{
message_to_acknowledge
}}
<
/strong> </
center
>
<
/p
>
<
p
>
<
center
>
{{
advice
}}
<
/center></
p
>
<
p
>
<
/p
>
<
p
>
<
center
><
a
class
=
"
ui-btn ui-first-child ui-btn-icon-center
"
data
-
i18n
=
"
Return to Invoice List
"
href
=
"
{{payment_url}}
"
>
Return
to
Invoice
List
<
/a></
center
>
<
/p
>
</script>
</head>
<body>
<div></div>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_payment_result_html.xml
0 → 100644
View file @
6cac16a2
This diff is collapsed.
Click to expand it.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js.js
0 → 100644
View file @
6cac16a2
/*globals console, window, rJS, RSVP, loopEventListener, i18n, Handlebars $*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
rJS
,
RSVP
,
Handlebars
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
),
message_source
=
gadget_klass
.
__template_element
.
getElementById
(
"
message-template
"
)
.
innerHTML
,
message_template
=
Handlebars
.
compile
(
message_source
);
gadget_klass
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
translateHtml
"
,
"
translateHtml
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareMethod
(
"
getContent
"
,
function
()
{
return
{};
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
getElement
(),
gadget
.
getUrlFor
({
command
:
'
change
'
,
options
:
{
jio_key
:
"
/
"
,
page
:
"
slap_invoice_list
"
,
"
result
"
:
""
}})
]);
})
.
push
(
function
(
result
)
{
var
payment_url
=
result
[
1
],
element
=
result
[
0
],
message
,
advice
,
page_title
;
if
(
options
.
result
===
"
success
"
)
{
page_title
=
"
Thank you for your Payment
"
;
message
=
"
Thank you for finalising the payment.
"
;
advice
=
"
It will be processed by PayZen interface.
"
;
}
else
if
(
options
.
result
===
"
cancel
"
)
{
page_title
=
"
Payment cancelled
"
;
message
=
"
You have cancelled the payment process.
"
;
advice
=
"
Please consider continuing it as soon as possible, otherwise you will be not able to use full functionality.
"
;
}
else
if
(
options
.
result
===
"
error
"
)
{
page_title
=
"
Payment Error
"
;
message
=
"
There was an error while processing the payment.
"
;
advice
=
"
Please try again later or contact the support.
"
;
}
else
if
(
options
.
result
===
"
referral
"
)
{
page_title
=
"
Payment Referral
"
;
message
=
"
Your credit card was refused by payment system.
"
;
advice
=
"
Please contact your bank or use another credit card.
"
;
}
else
if
(
options
.
result
===
"
refused
"
)
{
page_title
=
"
Payment Refused
"
;
message
=
"
The payment has been refused.
"
;
advice
=
"
Please contact your bank.
"
;
}
else
if
(
options
.
result
===
"
return
"
)
{
page_title
=
"
Payment Unfinished
"
;
message
=
"
You have not finished your payment.
"
;
advice
=
"
Please consider continuing it as soon as possible, otherwise you will be not able to use full functionality.
"
;
}
else
if
(
options
.
result
===
"
already_registered
"
)
{
page_title
=
"
Payment already registered
"
;
message
=
"
Your payment had already been registered.
"
;
}
else
{
throw
new
Error
(
"
Unknown action to take:
"
+
options
.
result
);
}
console
.
log
(
options
);
element
.
innerHTML
=
message_template
({
message_to_acknowledge
:
message
,
advice
:
advice
,
payment_url
:
payment_url
});
return
page_title
;
})
.
push
(
function
(
page_title
)
{
var
header_dict
=
{
page_title
:
page_title
};
return
gadget
.
updateHeader
(
header_dict
);
});
});
}(
window
,
rJS
,
RSVP
,
Handlebars
));
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js.xml
0 → 100644
View file @
6cac16a2
This diff is collapsed.
Click to expand it.
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