Browse
For agents
About
MakeCommerce for WooCommerce
/
3.0.11
MakeCommerce for WooCommerce
v3.0.11
Switch version
4.1.1
4.1.0
4.0.8
trunk
1.0
1.0.1
1.0.2
1.0.3
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
2.0.0
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.2.0
2.2.1
All 97 releases
Overview
Code
makecommerce
/
payment
/
gateway
/
woocommerce
/
js
/
mc_cc_complete.js
mc_cc_complete.js
in MakeCommerce for WooCommerce 3.0.11, at payment/gateway/woocommerce/js/mc_cc_complete.js
17 lines
614 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
function
makecommerce_cc_complete
(
data
)
2
{
3
if
(
data
.
paymentToken
)
{
4
5
jQuery
(
'
div.mc-processing-message
'
)
.
show
(
)
;
6
7
var
submitform
=
jQuery
(
'
<form action="
'
+
MC_CC_COMPLETE
.
payment_return_url
+
'
" method="POST" style="display: none;"><input type="submit"/><input type="hidden" name="transaction" value="
'
+
MC_CC_COMPLETE
.
transaction_id
+
'
" /></form>
'
)
;
8
9
for
(
var
key
in
data
)
{
10
submitform
.
append
(
jQuery
(
'
<input type="hidden" name="
'
+
key
+
'
" />
'
)
.
val
(
data
[
key
]
)
)
;
11
}
12
13
jQuery
(
'
body
'
)
.
append
(
submitform
)
;
14
15
submitform
.
submit
(
)
;
16
}
17
}