File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @package GoUrl Bitcoin/Altcoin Payment Box - show iFrame Payment Box
3
- * @copyright 2014-2020 Delta Consultants
3
+ * @copyright 2014-2021 Delta Consultants
4
4
* @category Javascript
5
5
* @website https://gourl.io
6
6
* @api https://gourl.io/api.html
30
30
else if ( period == '' ) alert ( 'Invalid period' ) ;
31
31
else if ( public_key . length != 50 ) alert ( 'Invalid public key' ) ;
32
32
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' ) ;
34
33
else if ( hash == '' ) alert ( 'Invalid payment box hash' ) ;
35
34
else
36
35
{
41
40
'/pe/' + encodeURIComponent ( period . replace ( ' ' , '_' ) ) + '/l/' + encodeURIComponent ( language ) +
42
41
'/i/' + encodeURIComponent ( iframeID ) + '/u/' + encodeURIComponent ( userID ) +
43
42
'/us/' + encodeURIComponent ( userFormat ) + '/o/' + encodeURIComponent ( orderID ) +
44
- '/t/' + encodeURIComponent ( ver ) +
43
+ ( ver ? '/t/' + encodeURIComponent ( ver ) : '' ) +
45
44
( webdev_key ?'/w/' + encodeURIComponent ( webdev_key ) :'' ) +
46
45
( width > 0 ?'/ws/' + encodeURIComponent ( width ) :'' ) +
47
46
( height > 0 ?'/hs/' + encodeURIComponent ( height ) :'' ) +
You can’t perform that action at this time.
0 commit comments