Skip to content

Commit

Permalink
coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
AminulBD committed Oct 12, 2020
1 parent e1c71dd commit 58a2615
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 54 deletions.
47 changes: 25 additions & 22 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
{
"name": "aminulbd/bkash-merchant-for-whmcs",
"description": "bKash Merchant Payment Gateway for WHMCS",
"keywords": [
"whmcs",
"bkash",
"bkash merchant",
"gateway module"
],
"homepage": "http://www.aminul.net/project/bkash-merchant-for-whmcs",
"license": "MIT",
"authors": [
{
"name": "Aminul Islam",
"email": "[email protected]",
"homepage": "https://aminul.net/",
"role": "Developer"
}
],
"support": {
"email": "[email protected]",
"forum": "https://aminul.net/",
"wiki": "https://aminul.net/"
"name": "aminulbd/bkash-merchant-for-whmcs",
"description": "bKash Merchant Payment Gateway for WHMCS",
"keywords": [
"whmcs",
"bkash",
"bkash merchant",
"gateway module"
],
"homepage": "http://www.aminul.net/project/bkash-merchant-for-whmcs",
"license": "MIT",
"authors": [
{
"name": "Aminul Islam",
"email": "[email protected]",
"homepage": "https://aminul.net/",
"role": "Developer"
}
],
"support": {
"email": "[email protected]",
"forum": "https://aminul.net/",
"wiki": "https://aminul.net/"
},
"require": {
"ext-json": "*"
}
}
8 changes: 4 additions & 4 deletions modules/gateways/callback/bkashlegacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ private function setCurrency()
{
$this->gatewayCurrency = (int)$this->gatewayParams['convertto'];
$this->customerCurrency = Capsule::table('tblclients')
->where('id', '=', $this->invoice['userid'])
->value('currency');
->where('id', '=', $this->invoice['userid'])
->value('currency');

if (!empty($this->gatewayCurrency) && ($this->customerCurrency !== $this->gatewayCurrency)) {
$this->convoRate = Capsule::table('tblcurrencies')
->where('id', '=', $this->gatewayCurrency)
->value('rate');
->where('id', '=', $this->gatewayCurrency)
->value('rate');
} else {
$this->convoRate = 1;
}
Expand Down
56 changes: 28 additions & 28 deletions whmcs.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"schema": "1.0.2",
"type": "whmcs-gateways",
"name": "bkash-merchant",
"license": "MIT",
"category": "gateway",
"description": {
"name": "bKash Merchant Payment Gateway",
"tagline": "Easily collect your payment by using bKash merchant in your WHMCS Billing.",
"long": "",
"features": [
"WHMCS 8 Support"
]
},
"logo": {
"filename": "logo.png"
},
"support": {
"homepage": "https://aminul.net/project/bkash-merchant-for-whmcs/",
"learn_more": "https://aminul.net/project/bkash-merchant-for-whmcs/",
"email": "[email protected]",
"support_url": "https://aminul.net/project/bkash-merchant-for-whmcs/",
"docs_url": "https://aminul.net/project/bkash-merchant-for-whmcs/"
},
"authors": [
{
"name": "Aminul Islam",
"homepage": "https://aminul.net/"
}
"schema": "1.0.2",
"type": "whmcs-gateways",
"name": "bkash-merchant",
"license": "MIT",
"category": "gateway",
"description": {
"name": "bKash Merchant Payment Gateway",
"tagline": "Easily collect your payment by using bKash merchant in your WHMCS Billing.",
"long": "",
"features": [
"WHMCS 8 Support"
]
},
"logo": {
"filename": "logo.png"
},
"support": {
"homepage": "https://aminul.net/project/bkash-merchant-for-whmcs/",
"learn_more": "https://aminul.net/project/bkash-merchant-for-whmcs/",
"email": "[email protected]",
"support_url": "https://aminul.net/project/bkash-merchant-for-whmcs/",
"docs_url": "https://aminul.net/project/bkash-merchant-for-whmcs/"
},
"authors": [
{
"name": "Aminul Islam",
"homepage": "https://aminul.net/"
}
]
}

0 comments on commit 58a2615

Please sign in to comment.