Skip to content

Commit 1c29ab3

Browse files
committed
HyperCharge v1.1.12
1 parent c51f8ef commit 1c29ab3

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

app/code/community/GlobalExperts/Hypercharge/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<config>
2929
<modules>
3030
<GlobalExperts_Hypercharge>
31-
<version>1.1.10</version>
31+
<version>1.1.12</version>
3232
</GlobalExperts_Hypercharge>
3333
</modules>
3434

skin/frontend/base/default/hypercharge/js/hypercharge.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ Hyper = Class.create({
180180
data: data,
181181
dataType: "xml",
182182
headers: {'origin': this.headerOrigin},
183-
//contentType: "application/text; charset=utf-8",
184183
success: function (result) {
185184
var xml = jQuery(result);
186185
var transactionStatus = xml.find("status").text();
@@ -212,21 +211,25 @@ Hyper = Class.create({
212211
dataType: "xml",
213212
headers: {'origin': this.headerOrigin},
214213
contentType: "application/text; charset=utf-8",
215-
success: function(result) {
214+
success: function (result) {
216215
var xml = jQuery(result);
217216
var transactionStatus = xml.find("status").text();
218217

219218
if (transactionStatus == 'approved' || transactionStatus == 'pending_async') {
220-
alert("success");
219+
window.location.href = successUrl;
220+
return;
221221
} else {
222-
alert("error in success");
222+
window.location.href = errorUrl;
223+
return;
223224
}
224225
},
225-
error: function(jqXHR, tranStatus, errorThrown) {
226+
error: function (jqXHR, tranStatus, errorThrown) {
226227
if (jqXHR.status == 200) {
227-
alert("success in error");
228+
window.location.href = successUrl;
229+
return;
228230
} else {
229-
alert("error in error");
231+
window.location.href = errorUrl;
232+
return;
230233
}
231234
}
232235
});

0 commit comments

Comments
 (0)