Skip to content

Commit

Permalink
Add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Feb 28, 2023
1 parent 550a810 commit 7a89d38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions BitcartCC.php → BitcartCC/BitcartCC.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public static function getConfig()
return array(
'supports_one_time_payments' => true,
'description' => 'Please refer to https://docs.bitcartcc.com/integrations/boxbilling for more details',
'logo' => array(
'logo' => '/BitcartCC/BitcartCC.png',
'height' => '50px',
'width' => '50px',
),
'form' => array(
'api_endpoint' => array('text', array(
'label' => 'Merchants API URL',
Expand Down Expand Up @@ -133,11 +138,11 @@ public function processTransaction($api_admin, $id, $data, $gateway_id)

protected function _generateForm($invoiceID)
{
$htmlOutput = '<button name = "bitcart-payment" class = "btn btn-success btn-sm" onclick = "showModal();return false;">Pay now</button>';
$htmlOutput = '<button name = "bitcart-payment" class = "btn btn-success btn-sm" onclick = "showModal();return false;">Pay now</button>';
$htmlOutput .= '<script src="' . $this->config['admin_url'] . '/modal/bitcart.js" type="text/javascript"></script>';
$htmlOutput .= '<script type=\'text/javascript\'>';
$htmlOutput .= 'function showModal() {';
$htmlOutput .= 'bitcart.showInvoice(\''. $invoiceID .'\');';
$htmlOutput .= 'bitcart.showInvoice(\'' . $invoiceID . '\');';
$htmlOutput .= '}
</script>
</form>';
Expand Down
Binary file added BitcartCC/BitcartCC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This version requires the following:

1. From your BoxBilling/FOSSBilling panel, go to configuration > payment gateways -> New payment gateway

2. Upload BitcartCC.php to the directory suggested by your deployment. [Download it](https://raw.githubusercontent.com/bitcartcc/bitcart-boxbilling/master/BitcartCC.php) from this repository
2. Upload BitcartCC directory to the directory suggested by your deployment. [Download it](https://raw.githubusercontent.com/bitcartcc/bitcart-boxbilling/master/BitcartCC.php) from this repository

3. Enable it by clicking on the button near BitcartCC, fill in all settings and save.

Expand Down

0 comments on commit 7a89d38

Please sign in to comment.