Additional fixes for Checkout.com
This commit is contained in:
parent
aadda80988
commit
a98ad5ba02
1 changed files with 17 additions and 1 deletions
|
|
@ -6,8 +6,24 @@ class CheckoutComPaymentDriver extends BasePaymentDriver
|
|||
{
|
||||
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([
|
||||
'amount' => $this->invoice()->getRequestedAmount(),
|
||||
'amount' => $amount,
|
||||
'currency' => $this->client()->getCurrencyCode(),
|
||||
])->send();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue