diff --git a/success.html b/success.html
index 9b69f26..5ad1e29 100644
--- a/success.html
+++ b/success.html
@@ -210,8 +210,8 @@
@@ -376,8 +376,17 @@
var urlParams = new URLSearchParams(window.location.search);
var code = urlParams.get("code");
var name = urlParams.get("name");
- $(".output-checkout-code").text("You have failed the exam by getting " + code + " points (3 points for passing). Kindly try again.");
- $(".redirect-shop").attr("href", "/exam.html?activity=");
+ // hashmap of name to url
+ var nameToUrl = {
+ "Amazon": "https://www.amazon.com/gc/redeem",
+ "Apple": "http://apple.com/redeem",
+ "Google": "https://play.google.com/redeem",
+ "Playstation": "https://www.playstation.com/en-ph/support/store/redeem-ps-store-voucher-code/",
+ "Steam": "https://store.steampowered.com/account/redeemwalletcode",
+ "Xbox": "https://redeem.microsoft.com/",
+ };
+ $(".output-checkout-code").html("You successfully claimed the voucher. Here is the code: " + code + "");
+ $(".redirect-shop").attr("href", nameToUrl[name]);
$(".loading").hide();
});