Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <html>
2 <head>
3 <script type="text/javascript">
4 function start() {
5 if (!mozPaymentProvider)
6 window.close();
8 // We don't have a way to mock these values yet. This check just makes sure the world
9 // doesn't crash if we ask for them.
10 var mcc = mozPaymentProvider.mcc;
11 var mnc = mozPaymentProvider.mnc;
13 // We use the jwt passed in here to test calling paymentFailed/Success
14 if (window.location.hash == "#pass")
15 mozPaymentProvider.paymentSuccess("PAID CORRECTLY");
16 else if (window.location.hash == "#fail")
17 mozPaymentProvider.paymentFailed("FAILED CORRECTLY");
18 else
19 mozPaymentProvider.paymentFailed("invalid hash " + window.location.hash);
20 }
22 document.addEventListener("DOMContentLoaded", start);
23 </script>
24 </head>
25 </html>