Skip to content

Commit 7597a47

Browse files
committed
Update cryptobox.js
update
1 parent 8bb0762 commit 7597a47

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cryptobox.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @package GoUrl Bitcoin/Altcoin Payment Box - show iFrame Payment Box
3-
* @copyright 2014-2020 Delta Consultants
3+
* @copyright 2014-2021 Delta Consultants
44
* @category Javascript
55
* @website https://gourl.io
66
* @api https://gourl.io/api.html
@@ -30,7 +30,6 @@
3030
else if (period == '') alert('Invalid period');
3131
else if (public_key.length != 50) alert('Invalid public key');
3232
else if (webdev_key != '' && (webdev_key.indexOf("DEV") == -1 || webdev_key.length < 20)) alert('Invalid webdev_key, leave it empty');
33-
else if (ver == '') alert('Invalid ver value');
3433
else if (hash == '') alert('Invalid payment box hash');
3534
else
3635
{
@@ -41,7 +40,7 @@
4140
'/pe/'+encodeURIComponent(period.replace(' ', '_'))+'/l/'+encodeURIComponent(language)+
4241
'/i/'+encodeURIComponent(iframeID)+'/u/'+encodeURIComponent(userID)+
4342
'/us/'+encodeURIComponent(userFormat)+'/o/'+encodeURIComponent(orderID)+
44-
'/t/'+encodeURIComponent(ver)+
43+
(ver?'/t/'+encodeURIComponent(ver):'')+
4544
(webdev_key?'/w/'+encodeURIComponent(webdev_key):'')+
4645
(width>0?'/ws/'+encodeURIComponent(width):'')+
4746
(height>0?'/hs/'+encodeURIComponent(height):'')+

0 commit comments

Comments
 (0)