diff --git a/COPYING b/COPYING
index ca0ac2e..f701b72 100644
--- a/COPYING
+++ b/COPYING
@@ -1,5 +1,5 @@
-Copyright (c) 2014-2017 Delta Consultants
-Copyright (c) 2014-2017 GoUrl.io Developers
+Copyright (c) 2014-2018 Delta Consultants
+Copyright (c) 2014-2018 GoUrl.io Developers
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/Examples/example_basic.php b/Examples/example_basic.php
index a296879..3826f05 100644
--- a/Examples/example_basic.php
+++ b/Examples/example_basic.php
@@ -2,8 +2,8 @@
/**
* @category Basic Example
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/api-php.html
*/
require_once( "../cryptobox.class.php" );
diff --git a/Examples/json.php b/Examples/json.php
index 7019f50..3ab2888 100644
--- a/Examples/json.php
+++ b/Examples/json.php
@@ -2,8 +2,8 @@
/**
* @category Example14 - Custom Payment Box (json format; customise your bitcoin/altcoin payment box with your own text / logo)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p8
* @live_demo https://gourl.io/lib/examples/json.php
*/
@@ -155,7 +155,7 @@
14. GoUrl
Custom JSON / JQUERY Payment Box Example ( payments). Use it on your website.
-
+
@@ -304,7 +304,7 @@
3.
diff --git a/Examples/pay-per-download-multi.php b/Examples/pay-per-download-multi.php
index aa58e40..ac85822 100644
--- a/Examples/pay-per-download-multi.php
+++ b/Examples/pay-per-download-multi.php
@@ -2,8 +2,8 @@
/**
* @category Example4 - Pay-Per-Download (payments in multiple cryptocurrencies, you can use original price in USD)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p2
* @live_demo https://gourl.io/lib/examples/pay-per-download-multi.php
*/
@@ -35,7 +35,7 @@
// List of coins that you accept for payments
// For example, for accept payments in bitcoin, bitcoincash, litecoin use - $available_payments = array('bitcoin', 'bitcoincash', 'litecoin');
- $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit');
+ $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency');
// Goto https://gourl.io/info/memberarea/My_Account.html
diff --git a/Examples/pay-per-download.php b/Examples/pay-per-download.php
index 27438b4..3fd84f5 100644
--- a/Examples/pay-per-download.php
+++ b/Examples/pay-per-download.php
@@ -2,8 +2,8 @@
/**
* @category Example3 - Pay-Per-Download (single crypto currency in payment box)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p2
* @live_demo https://gourl.io/lib/examples/pay-per-download.php
*/
diff --git a/Examples/pay-per-membership-multi.php b/Examples/pay-per-membership-multi.php
index 75082d7..5d10ce7 100644
--- a/Examples/pay-per-membership-multi.php
+++ b/Examples/pay-per-membership-multi.php
@@ -2,8 +2,8 @@
/**
* @category Example12 - Pay-Per-Membership (payments in multiple cryptocurrencies, you can use original price in USD)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p6
* @live_demo https://gourl.io/lib/examples/pay-per-membership-multi.php
*/
@@ -28,7 +28,7 @@
// List of coins that you accept for payments
// For example, for accept payments in bitcoin, bitcoincash, litecoin use - $available_payments = array('bitcoin', 'bitcoincash', 'litecoin');
- $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit');
+ $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency');
// Goto https://gourl.io/info/memberarea/My_Account.html
diff --git a/Examples/pay-per-membership.php b/Examples/pay-per-membership.php
index 5342a5e..87fd0c2 100644
--- a/Examples/pay-per-membership.php
+++ b/Examples/pay-per-membership.php
@@ -2,8 +2,8 @@
/**
* @category Example11 - Pay-Per-Membership (single crypto currency in payment box)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p6
* @live_demo https://gourl.io/lib/examples/pay-per-membership.php
*/
diff --git a/Examples/pay-per-page-multi.php b/Examples/pay-per-page-multi.php
index b98151f..7ad619d 100644
--- a/Examples/pay-per-page-multi.php
+++ b/Examples/pay-per-page-multi.php
@@ -2,8 +2,8 @@
/**
* @category Example10 - Pay-Per-Page Access (payments in multiple cryptocurrencies, you can use original price in USD)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p5
* @live_demo https://gourl.io/lib/examples/pay-per-page-multi.php
*/
@@ -30,7 +30,7 @@
// List of coins that you accept for payments
// For example, for accept payments in bitcoin, bitcoincash, litecoin use - $available_payments = array('bitcoin', 'bitcoincash', 'litecoin');
- $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit');
+ $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency');
// Goto https://gourl.io/info/memberarea/My_Account.html
diff --git a/Examples/pay-per-page.php b/Examples/pay-per-page.php
index 8f29782..e7d23b8 100644
--- a/Examples/pay-per-page.php
+++ b/Examples/pay-per-page.php
@@ -2,8 +2,8 @@
/**
* @category Example9 - Pay-Per-Page Access (single crypto currency in payment box)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p5
* @live_demo https://gourl.io/lib/examples/pay-per-page.php
*/
diff --git a/Examples/pay-per-post-multi.php b/Examples/pay-per-post-multi.php
index 835d47c..b1a5d72 100644
--- a/Examples/pay-per-post-multi.php
+++ b/Examples/pay-per-post-multi.php
@@ -2,8 +2,8 @@
/**
* @category Example6 - Pay-Per-Post (payments in multiple cryptocurrencies, you can use original price in USD)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p3
* @live_demo https://gourl.io/lib/examples/pay-per-post-multi.php
*/
@@ -28,7 +28,7 @@
// List of coins that you accept for payments
// For example, for accept payments in bitcoin, bitcoincash, litecoin use - $available_payments = array('bitcoin', 'bitcoincash', 'litecoin');
- $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit');
+ $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency');
// Goto https://gourl.io/info/memberarea/My_Account.html
diff --git a/Examples/pay-per-post.php b/Examples/pay-per-post.php
index 88334ee..746eaa4 100644
--- a/Examples/pay-per-post.php
+++ b/Examples/pay-per-post.php
@@ -2,8 +2,8 @@
/**
* @category Example5 - Pay-Per-Post (single crypto currency in payment box)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p3
* @live_demo https://gourl.io/lib/examples/pay-per-post.php
*/
diff --git a/Examples/pay-per-product-multi.php b/Examples/pay-per-product-multi.php
index ba13692..b6988d8 100644
--- a/Examples/pay-per-product-multi.php
+++ b/Examples/pay-per-product-multi.php
@@ -2,8 +2,8 @@
/**
* @category Example2 - Pay-Per-Product (payments in multiple cryptocurrencies, you can use original price in USD)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p1
* @live_demo https://gourl.io/lib/examples/pay-per-product-multi.php
*/
@@ -34,7 +34,7 @@
// List of coins that you accept for payments
// For example, for accept payments in bitcoin, bitcoincash, litecoin use - $available_payments = array('bitcoin', 'bitcoincash', 'litecoin');
- $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit');
+ $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency');
// Goto https://gourl.io/info/memberarea/My_Account.html
diff --git a/Examples/pay-per-product.php b/Examples/pay-per-product.php
index 9f30e86..943de34 100644
--- a/Examples/pay-per-product.php
+++ b/Examples/pay-per-product.php
@@ -2,8 +2,8 @@
/**
* @category Example1 - Pay-Per-Product (single crypto currency in payment box)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p1
* @live_demo https://gourl.io/lib/examples/pay-per-product.php
*/
diff --git a/Examples/pay-per-registration-multi.php b/Examples/pay-per-registration-multi.php
index 7148c97..7cbe2f3 100644
--- a/Examples/pay-per-registration-multi.php
+++ b/Examples/pay-per-registration-multi.php
@@ -2,8 +2,8 @@
/**
* @category Example8 - Pay-Per-Registration (payments in multiple cryptocurrencies, you can use original price in USD)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p4
* @live_demo https://gourl.io/lib/examples/pay-per-registration-multi.php
*/
@@ -28,7 +28,7 @@
// List of coins that you accept for payments
// For example, for accept payments in bitcoin, bitcoincash, litecoin use - $available_payments = array('bitcoin', 'bitcoincash', 'litecoin');
- $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit');
+ $available_payments = array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency');
// Goto https://gourl.io/info/memberarea/My_Account.html
diff --git a/Examples/pay-per-registration.php b/Examples/pay-per-registration.php
index e365349..1b0983e 100644
--- a/Examples/pay-per-registration.php
+++ b/Examples/pay-per-registration.php
@@ -2,8 +2,8 @@
/**
* @category Example7 - Pay-Per-Registration (single crypto currency in payment box)
* @package GoUrl Cryptocurrency Payment API
- * copyright (c) 2014-2017 Delta Consultants
- * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit
+ * copyright (c) 2014-2018 Delta Consultants
+ * @crypto Supported Cryptocoins - Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit, UniversalCurrency
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p4
* @live_demo https://gourl.io/lib/examples/pay-per-registration.php
*/
diff --git a/cryptobox.callback.php b/cryptobox.callback.php
index 3d71389..8421a57 100644
--- a/cryptobox.callback.php
+++ b/cryptobox.callback.php
@@ -8,10 +8,10 @@
* Cryptobox Server Callbacks
*
* @package Cryptobox callbacks
- * @copyright 2014-2017 Delta Consultants
+ * @copyright 2014-2018 Delta Consultants
* @category Libraries
* @website https://gourl.io
- * @version 1.8.2
+ * @version 1.8.3
*
*
* This file processes call-backs from Cryptocoin Payment Box server when new payment
diff --git a/cryptobox.class.php b/cryptobox.class.php
index f30d023..e33a394 100644
--- a/cryptobox.class.php
+++ b/cryptobox.class.php
@@ -8,14 +8,14 @@
* PHP Cryptocurrency Payment Class
*
* @package GoUrl PHP Bitcoin/Altcoin Payments and Crypto Captcha
- * @copyright 2014-2017 Delta Consultants
+ * @copyright 2014-2018 Delta Consultants
* @category Libraries
* @website https://gourl.io
* @api https://gourl.io/api-php.html
* @example https://gourl.io/bitcoin-payment-gateway-api.html
* @gitHub https://github.com/cryptoapi/Payment-Gateway
* @license Free GPLv2
- * @version 1.8.2
+ * @version 1.8.3
*
*
* CLASS CRYPTOBOX - LIST OF METHODS:
@@ -75,10 +75,10 @@
elseif (!defined('ABSPATH')) exit; // Wordpress
-define("CRYPTOBOX_VERSION", "1.8.2");
+define("CRYPTOBOX_VERSION", "1.8.3");
// GoUrl supported crypto currencies
-define("CRYPTOBOX_COINS", json_encode(array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit')));
+define("CRYPTOBOX_COINS", json_encode(array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency')));
class Cryptobox {
@@ -1581,6 +1581,6 @@ function run_sql($sql)
foreach ($cryptobox_private_keys as $v)
if (strpos($v, " ") !== false || strpos($v, "PRV") === false || strpos($v, "AA") === false || strpos($v, "77") === false) die("Invalid Private Key - ". (CRYPTOBOX_WORDPRESS ? "please setup it on your plugin settings page" : "$v in variable \$cryptobox_private_keys, file cryptobox.config.php."));
- unset($v); unset($cryptobox_private_keys);
+ unset($v); unset($cryptobox_private_keys);
}
?>
\ No newline at end of file
diff --git a/cryptobox.js b/cryptobox.js
index 5f3adf5..ceecb79 100644
--- a/cryptobox.js
+++ b/cryptobox.js
@@ -2,11 +2,11 @@
* Cryptocoin Payment Box Javascript
*
* @package GoUrl Bitcoin/Altcoin Payment Box and Crypto Captcha
- * @copyright 2014-2017 Delta Consultants
+ * @copyright 2014-2018 Delta Consultants
* @category Javascript
* @website https://gourl.io
* @api https://gourl.io/api.html
- * @version 1.8.2
+ * @version 1.8.3
*
*/
@@ -121,7 +121,6 @@
{
$('.'+ext+'wallet_open').attr('data-original-title', data.texts.btn_wallet).attr('data-placement', 'bottom').attr('data-toggle', 'tooltip').tooltip();
$('.'+ext+'qrcode_image').attr('data-original-title', data.texts.qrcode).attr('data-placement', 'bottom').attr('data-toggle', 'tooltip').tooltip();
- $('.'+ext+'fees_hint').attr('data-original-title', '
').attr('data-placement', 'bottom').attr('data-toggle', 'tooltip').tooltip({ html: true });
$('.'+ext+'button_wait').attr('data-original-title', data.texts.btn_wait_hint).attr('data-placement', 'top').attr('data-toggle', 'tooltip').tooltip();
}
@@ -280,4 +279,4 @@
function cryptobox_msghide (id)
{
setTimeout(function(){ document.getElementById(id).style.display='none';}, 15000 );
- }
+ }
diff --git a/cryptobox.min.js b/cryptobox.min.js
index 21be613..72cf727 100644
--- a/cryptobox.min.js
+++ b/cryptobox.min.js
@@ -2,14 +2,14 @@
* Cryptocoin Payment Box Javascript
*
* @package GoUrl Bitcoin/Altcoin Payment Box and Crypto Captcha
- * @copyright 2014-2017 Delta Consultants
+ * @copyright 2014-2018 Delta Consultants
* @category Javascript
* @website https://gourl.io
* @api https://gourl.io/api.html
- * @version 1.8.2
+ * @version 1.8.3
*
*/
-function cryptobox_custom(t,e,a,o,n){var r=(new Date).getTime(),i=((new Date).getTime(),!1),l=!1;return"number"!=typeof e&&(e=0),"string"!=typeof a&&(a=""),"string"!=typeof o&&(o="gourl_"),"string"!=typeof n&&(n=""),cryptobox_callout=function(){$.ajax({type:"GET",url:t,cache:!1,contentType:"application/json; charset=utf-8",data:{format:"json"},dataType:"json"}).fail(function(){$("."+o+"error_message").html('Error loading data ! Raw details here »'),$("."+o+"loader_button").fadeOut(400,function(){$("."+o+"loader").show(),$("."+o+"cryptobox_error").fadeIn(400)}),l=!0}).done(function(t){if(cryptobox_update_page(t,o),"payment_received"==t.status&&(i=!0,e||$.post(a+"cryptobox.callback.php",t).fail(function(){alert("Internal Error! Unable to find file cryptobox.callback.php. Please contact the website administrator.")}).done(function(t){"cryptobox_newrecord"!=t&&"cryptobox_updated"!=t&&"cryptobox_nochanges"!=t&&alert("Internal Error! "+t)}),n&&setTimeout(function(){window.location=n},5e3)),!i&&!l){var s=(new Date).getTime();s-r>12e5?($("."+o+"button_wait").hide(),$("."+o+"button_refresh").removeClass("btn-default").addClass("btn-info"),$("."+o+"cryptobox_unpaid .panel").removeClass("panel-info").removeClass("panel-primary").removeClass("panel-warning").removeClass("panel-success").addClass("panel-default").fadeTo("slow",.4,function(){}),$("[data-original-title]").tooltip("disable")):setTimeout(cryptobox_callout,7e3)}})},cryptobox_callout(),!0}function cryptobox_update_page(t,e){logoext="Bitcoin"==t.coinname?"_"+t.texts.language:"","paymentbox"==t.boxtype?$("."+e+"boxlogo").attr("src","https://coins.gourl.io/images/"+t.coinname.toLowerCase()+"/payment"+logoext+".png"):$("."+e+"boxlogo").attr("src","https://coins.gourl.io/images/"+t.coinname.toLowerCase()+"/captcha"+logoext+".png");var a="undefined"==typeof $("."+e+"qrcode_image").attr("data-size")?110:$("."+e+"qrcode_image").attr("data-size");$("."+e+"qrcode_image").attr("src","https://chart.googleapis.com/chart?chs="+a+"x"+a+"&chld=M|0&cht=qr&chl="+t.coinname.toLowerCase()+"%3A"+t.addr+"%3Famount%3D"+t.amount+"&choe=UTF-8"),$.isFunction($.fn.tooltip)&&($("."+e+"wallet_open").attr("data-original-title",t.texts.btn_wallet).attr("data-placement","bottom").attr("data-toggle","tooltip").tooltip(),$("."+e+"qrcode_image").attr("data-original-title",t.texts.qrcode).attr("data-placement","bottom").attr("data-toggle","tooltip").tooltip(),$("."+e+"fees_hint").attr("data-original-title",'
').attr("data-placement","bottom").attr("data-toggle","tooltip").tooltip({html:!0}),$("."+e+"button_wait").attr("data-original-title",t.texts.btn_wait_hint).attr("data-placement","top").attr("data-toggle","tooltip").tooltip()),$("."+e+"paymentcaptcha_amount").text("paymentbox"==t.boxtype?t.texts.payment_amount:t.texts.captcha_amount),$("."+e+"paymentcaptcha_status").text("paymentbox"==t.boxtype?t.texts.payment_status:t.texts.captcha_status);var o="-";"payment_not_received"==t.status?o=t.texts.not_received:"payment_received"==t.status&&(o="paymentbox"==t.boxtype?t.texts.payment_successful:t.texts.captcha_successful),$("."+e+"paymentcaptcha_statustext").text(o),"payment_received"==t.status?($("."+e+"texts_btn_wait_hint").hide(),$("."+e+"button_wait").html("paymentbox"==t.boxtype?t.texts.payment_successful:t.texts.captcha_successful)):$("."+e+"button_wait").html(' '+("paymentbox"==t.boxtype?t.texts.payment_wait:t.texts.captcha_wait)),$("."+e+"button_refresh").html(' '+t.texts.refresh),$("."+e+"paymentcaptcha_title").text("paymentbox"==t.boxtype?t.texts.title:t.coinname),$("."+e+"paymentcaptcha_successful").text("paymentbox"==t.boxtype?t.texts.payment_successful:t.texts.captcha_successful),$("."+e+"paymentcaptcha_date").html(("paymentbox"==t.boxtype?t.texts.received_on:t.texts.captcha_passed)+" "+t.date+""),$("."+e+"button_details").html(' '+t.texts.btn_res),$("."+e+"button_details").attr("href",t.tx_url).attr("target","_blank"),("fa"==t.texts.language||"ar"==t.texts.language)&&$("."+e+"cryptobox_error, ."+e+"cryptobox_top, ."+e+"cryptobox_unpaid, ."+e+"cryptobox_paid, ."+e+"cryptobox_rawdata").attr("dir","rtl"),$("."+e+"loader").fadeOut(400,function(){$("."+e+"cryptobox_top, ."+e+"cryptobox_rawdata").fadeIn(400),"payment_received"==t.status?($("."+e+"cryptobox_unpaid, ."+e+"boxlogo_unpaid, ."+e+"msg").hide(),$("."+e+"cryptobox_paid, ."+e+"boxlogo_paid").fadeIn(400)):($("."+e+"cryptobox_paid, ."+e+"boxlogo_paid").hide(),$("."+e+"cryptobox_unpaid, ."+e+"boxlogo_unpaid").fadeIn(400)),$("."+e+"msg").delay(7e3).fadeOut(2e3)});var n="";if($.each(t,function(t,a){if("object"==typeof a){var o='';$.each(a,function(a,n){o+="["+a+"] => "+n+"
",$("."+e+t+"_"+a).html(n)}),a=o+"
"}else t.indexOf("_url")>0?$("."+e+t).attr("href",a):$("."+e+t).html(a);n+="["+t+"] => "+a+"
"}),"undefined"!==$("."+e+"texts_intro1b").attr("data-site")&&"undefined"!==$("."+e+"texts_intro1b").attr("data-url")){var r=''+$("."+e+"texts_intro1b").attr("data-site")+"";$("."+e+"texts_intro1b").html(t.texts.intro1b.replace("___",r))}return $("."+e+"jsondata").html(n),!0}function cryptobox_show(t,e,a,o,n,r,i,l,s,c,p,d,u,m,b,x){"number"!=typeof b&&(b=0),"number"!=typeof x&&(x=0);var y=a.substr(0,a.indexOf("AA"));if(""==y||t!=y||-1==a.indexOf("PUB"))alert("Invalid payment box public_key");else if(0>=o&&0>=n||o>0&&n>0)alert("You can use in payment box options one of variable only: amount or amountUSD. You cannot place values in that two variables together");else if(0!=o&&(o-0!=o||1e-4>o))alert("Invalid payment box amount");else if(0!=n&&(n-0!=n||.01>n))alert("Invalid payment box amountUSD");else if("COOKIE"!=c&&"SESSION"!=c&&"IPADDRESS"!=c&&"MANUAL"!=c)alert("Invalid payment box userFormat value");else if("COOKIE"==c&&""==d)alert("Invalid payment box cookie name");else if("COOKIE"==c&&""==cryptobox_cookie(d))null!=document.getElementById(l).src&&(document.getElementById(l).src="https://gourl.io/images/crypto_cookies.png"),alert("Please enable Cookies in your Browser !");else if("COOKIE"==c&&cryptobox_cookie(d)!=s)alert("Invalid cookie value. It may be you are viewing an older copy of the page that is stored in the website cache. Please contact with website owner, need to disable/turn-off caching for current page");else if(""==p)alert("Invalid orderID");else if(""==r)alert("Invalid period");else if(50!=a.length)alert("Invalid public key");else if(""!=u&&(-1==u.indexOf("DEV")||u.length<20))alert("Invalid webdev_key, leave it empty");else if(""==m)alert("Invalid payment box hash");else{var _="https://coins.gourl.io/b/"+encodeURIComponent(t)+"/c/"+encodeURIComponent(e)+"/p/"+encodeURIComponent(a)+"/a/"+encodeURIComponent(o)+"/au/"+encodeURIComponent(n)+"/pe/"+encodeURIComponent(r.replace(" ","_"))+"/l/"+encodeURIComponent(i)+"/i/"+encodeURIComponent(l)+"/u/"+encodeURIComponent(s)+"/us/"+encodeURIComponent(c)+"/o/"+encodeURIComponent(p)+(u?"/w/"+encodeURIComponent(u):"")+(b>0?"/ws/"+encodeURIComponent(b):"")+(x>0?"/hs/"+encodeURIComponent(x):"")+"/h/"+encodeURIComponent(m)+"/z/"+Math.random(),f=document.getElementById(l);null==f?alert('Cryptobox iframeID HTML with id "'+l+'" not exist!'):f.src=_}return!0}function cryptobox_cookie(t){for(var e=t+"=",a=document.cookie.split(";"),o=0;oRaw details here »'),$("."+o+"loader_button").fadeOut(400,function(){$("."+o+"loader").show(),$("."+o+"cryptobox_error").fadeIn(400)}),c=!0}).done(function(t){cryptobox_update_page(t,o),"payment_received"==t.status&&(i=!0,e||$.post(a+"cryptobox.callback.php",t).fail(function(){alert("Internal Error! Unable to find file cryptobox.callback.php. Please contact the website administrator.")}).done(function(t){"cryptobox_newrecord"!=t&&"cryptobox_updated"!=t&&"cryptobox_nochanges"!=t&&alert("Internal Error! "+t)}),n&&setTimeout(function(){window.location=n},5e3)),i||c||((new Date).getTime()-r>12e5?($("."+o+"button_wait").hide(),$("."+o+"button_refresh").removeClass("btn-default").addClass("btn-info"),$("."+o+"cryptobox_unpaid .panel").removeClass("panel-info").removeClass("panel-primary").removeClass("panel-warning").removeClass("panel-success").addClass("panel-default").fadeTo("slow",.4,function(){}),$("[data-original-title]").tooltip("disable")):setTimeout(cryptobox_callout,7e3))})},cryptobox_callout(),!0}function cryptobox_update_page(t,e){logoext="Bitcoin"==t.coinname?"_"+t.texts.language:"","paymentbox"==t.boxtype?$("."+e+"boxlogo").attr("src","https://coins.gourl.io/images/"+t.coinname.toLowerCase()+"/payment"+logoext+".png"):$("."+e+"boxlogo").attr("src","https://coins.gourl.io/images/"+t.coinname.toLowerCase()+"/captcha"+logoext+".png");var a=void 0===$("."+e+"qrcode_image").attr("data-size")?110:$("."+e+"qrcode_image").attr("data-size");$("."+e+"qrcode_image").attr("src","https://chart.googleapis.com/chart?chs="+a+"x"+a+"&chld=M|0&cht=qr&chl="+t.coinname.toLowerCase()+"%3A"+t.addr+"%3Famount%3D"+t.amount+"&choe=UTF-8"),$.isFunction($.fn.tooltip)&&($("."+e+"wallet_open").attr("data-original-title",t.texts.btn_wallet).attr("data-placement","bottom").attr("data-toggle","tooltip").tooltip(),$("."+e+"qrcode_image").attr("data-original-title",t.texts.qrcode).attr("data-placement","bottom").attr("data-toggle","tooltip").tooltip(),$("."+e+"button_wait").attr("data-original-title",t.texts.btn_wait_hint).attr("data-placement","top").attr("data-toggle","tooltip").tooltip()),$("."+e+"paymentcaptcha_amount").text("paymentbox"==t.boxtype?t.texts.payment_amount:t.texts.captcha_amount),$("."+e+"paymentcaptcha_status").text("paymentbox"==t.boxtype?t.texts.payment_status:t.texts.captcha_status);var o="-";"payment_not_received"==t.status?o=t.texts.not_received:"payment_received"==t.status&&(o="paymentbox"==t.boxtype?t.texts.payment_successful:t.texts.captcha_successful),$("."+e+"paymentcaptcha_statustext").text(o),"payment_received"==t.status?($("."+e+"texts_btn_wait_hint").hide(),$("."+e+"button_wait").html("paymentbox"==t.boxtype?t.texts.payment_successful:t.texts.captcha_successful)):$("."+e+"button_wait").html(' '+("paymentbox"==t.boxtype?t.texts.payment_wait:t.texts.captcha_wait)),$("."+e+"button_refresh").html(' '+t.texts.refresh),$("."+e+"paymentcaptcha_title").text("paymentbox"==t.boxtype?t.texts.title:t.coinname),$("."+e+"paymentcaptcha_successful").text("paymentbox"==t.boxtype?t.texts.payment_successful:t.texts.captcha_successful),$("."+e+"paymentcaptcha_date").html(("paymentbox"==t.boxtype?t.texts.received_on:t.texts.captcha_passed)+" "+t.date+""),$("."+e+"button_details").html(' '+t.texts.btn_res),$("."+e+"button_details").attr("href",t.tx_url).attr("target","_blank"),"fa"!=t.texts.language&&"ar"!=t.texts.language||$("."+e+"cryptobox_error, ."+e+"cryptobox_top, ."+e+"cryptobox_unpaid, ."+e+"cryptobox_paid, ."+e+"cryptobox_rawdata").attr("dir","rtl"),$("."+e+"loader").fadeOut(400,function(){$("."+e+"cryptobox_top, ."+e+"cryptobox_rawdata").fadeIn(400),"payment_received"==t.status?($("."+e+"cryptobox_unpaid, ."+e+"boxlogo_unpaid, ."+e+"msg").hide(),$("."+e+"cryptobox_paid, ."+e+"boxlogo_paid").fadeIn(400)):($("."+e+"cryptobox_paid, ."+e+"boxlogo_paid").hide(),$("."+e+"cryptobox_unpaid, ."+e+"boxlogo_unpaid").fadeIn(400)),$("."+e+"msg").delay(7e3).fadeOut(2e3)});var n="";if($.each(t,function(t,a){if("object"==typeof a){var o='';$.each(a,function(a,n){o+="["+a+"] => "+n+"
",$("."+e+t+"_"+a).html(n)}),a=o+"
"}else t.indexOf("_url")>0?$("."+e+t).attr("href",a):$("."+e+t).html(a);n+="["+t+"] => "+a+"
"}),"undefined"!==$("."+e+"texts_intro1b").attr("data-site")&&"undefined"!==$("."+e+"texts_intro1b").attr("data-url")){var r=''+$("."+e+"texts_intro1b").attr("data-site")+"";$("."+e+"texts_intro1b").html(t.texts.intro1b.replace("___",r))}return $("."+e+"jsondata").html(n),!0}function cryptobox_show(t,e,a,o,n,r,i,c,l,s,p,d,u,m,b,x){"number"!=typeof b&&(b=0),"number"!=typeof x&&(x=0);var y=a.substr(0,a.indexOf("AA"));if(""==y||t!=y||-1==a.indexOf("PUB"))alert("Invalid payment box public_key");else if(o<=0&&n<=0||o>0&&n>0)alert("You can use in payment box options one of variable only: amount or amountUSD. You cannot place values in that two variables together");else if(0!=o&&(o-0!=o||o<1e-4))alert("Invalid payment box amount");else if(0!=n&&(n-0!=n||n<.01))alert("Invalid payment box amountUSD");else if("COOKIE"!=s&&"SESSION"!=s&&"IPADDRESS"!=s&&"MANUAL"!=s)alert("Invalid payment box userFormat value");else if("COOKIE"==s&&""==d)alert("Invalid payment box cookie name");else if("COOKIE"==s&&""==cryptobox_cookie(d))null!=document.getElementById(c).src&&(document.getElementById(c).src="https://gourl.io/images/crypto_cookies.png"),alert("Please enable Cookies in your Browser !");else if("COOKIE"==s&&cryptobox_cookie(d)!=l)alert("Invalid cookie value. It may be you are viewing an older copy of the page that is stored in the website cache. Please contact with website owner, need to disable/turn-off caching for current page");else if(""==p)alert("Invalid orderID");else if(""==r)alert("Invalid period");else if(50!=a.length)alert("Invalid public key");else if(""!=u&&(-1==u.indexOf("DEV")||u.length<20))alert("Invalid webdev_key, leave it empty");else if(""==m)alert("Invalid payment box hash");else{var _="https://coins.gourl.io/b/"+encodeURIComponent(t)+"/c/"+encodeURIComponent(e)+"/p/"+encodeURIComponent(a)+"/a/"+encodeURIComponent(o)+"/au/"+encodeURIComponent(n)+"/pe/"+encodeURIComponent(r.replace(" ","_"))+"/l/"+encodeURIComponent(i)+"/i/"+encodeURIComponent(c)+"/u/"+encodeURIComponent(l)+"/us/"+encodeURIComponent(s)+"/o/"+encodeURIComponent(p)+(u?"/w/"+encodeURIComponent(u):"")+(b>0?"/ws/"+encodeURIComponent(b):"")+(x>0?"/hs/"+encodeURIComponent(x):"")+"/h/"+encodeURIComponent(m)+"/z/"+Math.random(),f=document.getElementById(c);null==f?alert('Cryptobox iframeID HTML with id "'+c+'" not exist!'):f.src=_}return!0}function cryptobox_cookie(t){for(var e=t+"=",a=document.cookie.split(";"),o=0;o