Round appropriately for paypal

This commit is contained in:
= 2022-05-02 12:07:55 +10:00
parent 6709e5bbc4
commit e989644718

View File

@ -185,7 +185,7 @@ class PayPalExpressPaymentDriver extends BaseDriver
'currency' => $this->client->getCurrencyCode(),
'transactionType' => 'Purchase',
'clientIp' => request()->getClientIp(),
'amount' => $data['total']['amount_with_fee'] + $this->fee,
'amount' => round(($data['total']['amount_with_fee'] + $this->fee),2),
'returnUrl' => route('client.payments.response', [
'company_gateway_id' => $this->company_gateway->id,
'payment_hash' => $this->payment_hash->hash,