mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
additional fixes for Checkout
This commit is contained in:
parent
ac11681073
commit
2a8d2c7f5e
@ -6,8 +6,24 @@ class CheckoutComPaymentDriver extends BasePaymentDriver
|
|||||||
{
|
{
|
||||||
public function createTransactionToken()
|
public function createTransactionToken()
|
||||||
{
|
{
|
||||||
|
if( $this->invoice()->getCurrencyCode() == 'BHD')
|
||||||
|
{
|
||||||
|
$amount = $this->invoice()->getRequestedAmount()/10;
|
||||||
|
}
|
||||||
|
elseif($this->invoice()->getCurrencyCode() == 'KWD')
|
||||||
|
{
|
||||||
|
$amount = $this->invoice()->getRequestedAmount()*10;
|
||||||
|
|
||||||
|
}
|
||||||
|
elseif($this->invoice()->getCurrencyCode() == 'OMR')
|
||||||
|
{
|
||||||
|
$amount = $this->invoice()->getRequestedAmount();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$amount = $this->invoice()->getRequestedAmount();
|
||||||
|
|
||||||
$response = $this->gateway()->purchase([
|
$response = $this->gateway()->purchase([
|
||||||
'amount' => $this->invoice()->getRequestedAmount(),
|
'amount' => $amount,
|
||||||
'currency' => $this->client()->getCurrencyCode(),
|
'currency' => $this->client()->getCurrencyCode(),
|
||||||
])->send();
|
])->send();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user