Skip to content

Commit

Permalink
ver 1.4.15
Browse files Browse the repository at this point in the history
Added Bitcoin SV (BSV/BCHSV). Now you can use your company logo in payment box
  • Loading branch information
cryptoapi committed Nov 23, 2018
1 parent 61f48b4 commit 2799837
Show file tree
Hide file tree
Showing 23 changed files with 784 additions and 708 deletions.
108 changes: 82 additions & 26 deletions gourl.php

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions gourl_wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/*
Plugin Name: GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership
Plugin URI: https://gourl.io/bitcoin-wordpress-plugin.html
Description: Official <a href="https://gourl.io">GoUrl.io</a> Bitcoin Payment Gateway for Wordpress. White Label Solution. Provides bitcoin/altcoin payment gateways for - WooCommerce, Paid Memberships Pro, bbPress, Give Donations, Pay-Per-View, Pay-Per-Download, etc. Accept Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, etc payments online. No Chargebacks, Global, Secure. All in automatic mode.
Version: 1.4.14
Description: Official <a href="https://gourl.io">GoUrl.io</a> Bitcoin Payment Gateway for Wordpress. White Label Solution. Provides bitcoin/altcoin payment gateways for - WooCommerce, Paid Memberships Pro, bbPress, Give Donations, Pay-Per-View, Pay-Per-Download, etc. Accept Bitcoin, BitcoinCash, BitcoinSV, Litecoin, Dash, Dogecoin, etc payments online. No Chargebacks, Global, Secure. All in automatic mode.
Version: 1.4.15
Author: GoUrl.io
Author URI: https://gourl.io
WC requires at least: 2.1.0
Expand Down Expand Up @@ -33,7 +33,7 @@

DEFINE('GOURL', "gourl");
DEFINE('GOURL_PREVIEW', "gourladmin");
DEFINE('GOURL_VERSION', "1.4.14");
DEFINE('GOURL_VERSION', "1.4.15");
DEFINE('GOURL_ADMIN', admin_url("admin.php?page="));
DEFINE('GOURL_DIR', $dir_arr["basedir"]."/".GOURL.'/');
DEFINE('GOURL_DIR2', $dir_arr["baseurl"]."/".GOURL.'/');
Expand Down Expand Up @@ -69,5 +69,5 @@
add_action('plugins_loaded', 'gourl_load_textdomain');

if (function_exists( 'mb_stripos' ) && function_exists( 'mb_strripos' ) && function_exists( 'curl_init' ) && function_exists( 'mysqli_connect' ) && version_compare(phpversion(), '5.4.0', '>=')) $gourl = new gourlclass();


Binary file modified images/bitcoin2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/bitcoincash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/bitcoincash2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bitcoinsv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bitcoinsv2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/coins/bitcoincash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/coins/bitcoincash2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/coins/bitcoinsv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/coins/bitcoinsv2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/your_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions includes/cryptobox.callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* Cryptobox Server Callbacks
*
* @package Cryptobox callbacks
* @copyright 2014-2018 Delta Consultants
* @copyright 2014-2019 Delta Consultants
* @category Libraries
* @website https://gourl.io
* @version 2.1.4
* @version 2.1.5
*
*
* This file processes call-backs from Cryptocoin Payment Box server when new payment
Expand Down
28 changes: 14 additions & 14 deletions includes/cryptobox.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
* PHP Cryptocurrency Payment Class
*
* @package GoUrl PHP Bitcoin/Altcoin Payments and Crypto Captcha
* @copyright 2014-2018 Delta Consultants
* @copyright 2014-2019 Delta Consultants
* @category Libraries
* @website https://gourl.io
* @api https://gourl.io/bitcoin-payment-gateway-api.html
* @example https://gourl.io/lib/examples/example_customize_box.php <----
* @gitHub https://github.com/cryptoapi/Payment-Gateway
* @license Free GPLv2
* @version 2.1.4
* @version 2.1.5
*
*
* CLASS CRYPTOBOX - LIST OF METHODS:
Expand Down Expand Up @@ -51,7 +51,7 @@
* C. function cryptobox_sellanguage(..) // Get cryptobox current selected language by user (english, spanish, etc)
* D. function cryptobox_selcoin(..) // Get cryptobox current selected coin by user (bitcoin, dogecoin, etc. - for multiple coin payment boxes)
* E. function display_language_box(..) // Language selection dropdown list for cryptocoin payment box
* F. function display_currency_box(..) // Multiple crypto currency selection list. You can accept payments in multiple crypto currencies (for example: bitcoin, bitcoincash, litecoin, dogecoin)
* F. function display_currency_box(..) // Multiple crypto currency selection list. You can accept payments in multiple crypto currencies (for example: bitcoin, bitcoincash, bitcoinsv, litecoin, dogecoin)
* G. function get_country_name(..) // Get country name by country code or reverse
* H. function convert_currency_live(..) // Fiat currency converter using live exchange rates websites
* I. function validate_gourlkey(..) // Validate gourl private/public/affiliate keys
Expand Down Expand Up @@ -79,10 +79,10 @@
elseif (!defined('ABSPATH')) exit; // Wordpress


define("CRYPTOBOX_VERSION", "2.1.4");
define("CRYPTOBOX_VERSION", "2.1.5");

// GoUrl supported crypto currencies
define("CRYPTOBOX_COINS", json_encode(array('bitcoin', 'bitcoincash', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency')));
define("CRYPTOBOX_COINS", json_encode(array('bitcoin', 'bitcoincash', 'bitcoinsv', 'litecoin', 'dash', 'dogecoin', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit', 'universalcurrency')));


class Cryptobox {
Expand Down Expand Up @@ -303,7 +303,7 @@ public function display_cryptobox($submit_btn = true, $width = "540", $height =
$cryptobox_html .= "<form action='".$_SERVER["REQUEST_URI"]."#".($anchor?$anchor:"c".$this->iframeID)."' method='post'>";
$cryptobox_html .= "<input type='hidden' id='cryptobox_live_' name='cryptobox_live_' value='$val'>";
$cryptobox_html .= "<div align='center'>";
$cryptobox_html .= "<button".(in_array($this->language, array("ar", "fa"))?' dir="rtl"':'')." style='color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);vertical-align:top;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;min-height:28px;margin:20px 0 25px 0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-family:\"Open Sans\",sans-serif;font-size: 13px;font-weight: normal;text-transform: none;'>&#160; ".str_replace(array("%coinName%", "%coinNames%", "%coinLabel%"), array($this->coinName, (in_array($this->coinLabel, array('BCH', 'DASH'))?$this->coinName:$this->coinName.'s'), $this->coinLabel), $this->localisation["button"]).($this->language!="ar"?" &#187;":"")." &#160;</button>";
$cryptobox_html .= "<button".(in_array($this->language, array("ar", "fa"))?' dir="rtl"':'')." style='color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);vertical-align:top;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;min-height:28px;margin:20px 0 25px 0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-family:\"Open Sans\",sans-serif;font-size: 13px;font-weight: normal;text-transform: none;'>&#160; ".str_replace(array("%coinName%", "%coinNames%", "%coinLabel%"), array($this->coinName, (in_array($this->coinLabel, array('BCH', 'BSV', 'DASH'))?$this->coinName:$this->coinName.'s'), $this->coinLabel), $this->localisation["button"]).($this->language!="ar"?" &#187;":"")." &#160;</button>";
$cryptobox_html .= "</div>";
$cryptobox_html .= "</form>";
}
Expand Down Expand Up @@ -703,7 +703,7 @@ public function cryptobox_reset()

/* 16. Function coin_name()
*
* Returns coin name (bitcoin, bitcoincash, litecoin, etc)
* Returns coin name (bitcoin, bitcoincash, bitcoinsv, litecoin, dash, etc)
*/
public function coin_name()
{
Expand All @@ -715,7 +715,7 @@ public function coin_name()

/* 17. Function coin_label()
*
* Returns coin label (BTC, BCH, LTC, etc)
* Returns coin label (BTC, BCH, BSV, LTC, DASH, etc)
*/
public function coin_label()
{
Expand Down Expand Up @@ -744,7 +744,7 @@ public function iframe_id()
public function payment_status_text()
{
if ($this->paid) $txt = str_replace(array("%coinName%", "%coinLabel%", "%amountPaid%"), array($this->coinName, $this->coinLabel, $this->amountPaid), $this->localisation[($this->boxType=="paymentbox"?"msg_received":"msg_received2")]);
else $txt = str_replace(array("%coinName%", "%coinNames%", "%coinLabel%"), array($this->coinName, (in_array($this->coinLabel, array('BCH', 'DASH'))?$this->coinName:$this->coinName.'s'), $this->coinLabel), $this->localisation["msg_not_received"]);
else $txt = str_replace(array("%coinName%", "%coinNames%", "%coinLabel%"), array($this->coinName, (in_array($this->coinLabel, array('BCH', 'BSV', 'DASH'))?$this->coinName:$this->coinName.'s'), $this->coinLabel), $this->localisation["msg_not_received"]);

return $txt;
}
Expand Down Expand Up @@ -1051,8 +1051,8 @@ public function display_cryptobox_bootstrap ($coins = array(), $def_coin = "", $
if ($logoimg_path)
{
$offset = ($show_languages) ? "" : "offset-sm-5 offset-md-6";
$tmp .= "<div class='".$ext."box_logo col-12 col-sm-6 col-md-4 mt-4 $offset'>";
$tmp .= "<div class='text-right'><img class='".$ext."logo_image' alt='logo' src='#'></div>";
$tmp .= "<div class='".$ext."box_logo col-12 ".(CRYPTOBOX_WORDPRESS?"col-sm-10 col-md-7":"col-sm-6 col-md-4")." mt-4 $offset'>";
$tmp .= "<div class='text-right'><img style='max-width:200px;max-height:40px;' class='".$ext."logo_image' alt='logo' src='#'></div>";
$tmp .= "<br>";
$tmp .= "</div>";
}
Expand Down Expand Up @@ -1139,7 +1139,7 @@ public function display_cryptobox_bootstrap ($coins = array(), $def_coin = "", $
$tmp .= "<div class='col-12 text-center ".(CRYPTOBOX_WORDPRESS?"col-md-10 offset-md-1":"col-sm-10 offset-sm-1 col-md-8 offset-md-2")."'>";
$tmp .= "<form action='" . $page_url . "' method='post'>";
$tmp .= "<input type='hidden' id='".$ext."refresh2_' name='".$ext."refresh2_' value='1'>";
$tmp .= "<br><button type='submit' class='".$ext."button_confirm btn btn-lg btn-block btn-primary my-2' style='white-space:normal'><i class='fas fa-angle-double-right'></i> &#160; ".str_replace(array("%coinName%", "%coinNames%", "%coinLabel%"), array($this->coinName, (in_array($this->coinLabel, array('BCH', 'DASH'))?$this->coinName:$this->coinName.'s'), $this->coinLabel), $this->localisation["button"])." &#160; <i class='fas fa-angle-double-right'></i></button>";
$tmp .= "<br><button type='submit' class='".$ext."button_confirm btn btn-lg btn-block btn-primary my-2' style='white-space:normal'><i class='fas fa-angle-double-right'></i> &#160; ".str_replace(array("%coinName%", "%coinNames%", "%coinLabel%"), array($this->coinName, (in_array($this->coinLabel, array('BCH', 'BSV', 'DASH'))?$this->coinName:$this->coinName.'s'), $this->coinLabel), $this->localisation["button"])." &#160; <i class='fas fa-angle-double-right'></i></button>";
$tmp .= "</form>";
$tmp .= "</div>";
}
Expand Down Expand Up @@ -1701,7 +1701,7 @@ function display_language_box($default = "en", $anchor = "gourlcryptolang", $no_
/* F. Function display_currency_box()
*
* Multiple crypto currency selection list. You can accept payments in multiple crypto currencies
* For example you can accept payments in bitcoin, bitcoincash, litecoin, etc and use the same price in USD
* For example you can accept payments in bitcoin, bitcoincash, bitcoinsv, litecoin, etc and use the same price in USD
*/
function display_currency_box($coins = array(), $def_coin = "", $def_language = "en", $iconWidth = 50, $style = "width:350px; margin: 10px 0 10px 320px", $directory = "images", $anchor = "gourlcryptocoins", $jquery = false)
{
Expand Down Expand Up @@ -2274,6 +2274,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);
}
?>
4 changes: 2 additions & 2 deletions js/_source/cryptobox.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @package GoUrl Bitcoin/Altcoin Payment Box - show iFrame Payment Box
* @copyright 2014-2018 Delta Consultants
* @copyright 2014-2019 Delta Consultants
* @category Javascript
* @website https://gourl.io
* @api https://gourl.io/api.html
* @version 2.1.4
* @version 2.1.5
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions js/_source/support.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @package GoUrl Bitcoin/Altcoin Payment Box - Update HTML Payment Box values
* @copyright 2014-2018 Delta Consultants
* @copyright 2014-2019 Delta Consultants
* @category Javascript
* @website https://gourl.io
* @api https://gourl.io/api.html
* @version 2.1.4
* @version 2.1.5
*/

/**
Expand Down
Loading

0 comments on commit 2799837

Please sign in to comment.