Merge pull request #1451 from SevanNerse/dev

Amount calculation of omnipay trait is fixed
This commit is contained in:
Denis Duliçi 2020-05-23 19:38:14 +03:00 committed by GitHub
commit afdebeb3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ trait Omnipay
public function purchase($invoice, $request, $extra_options = [])
{
$default_options = [
'amount' => $invoice->amount,
'amount' => $invoice->amount - $invoice->paid,
'currency' => $invoice->currency_code,
'transactionId' => $invoice->id,
'returnUrl' => $this->getReturnUrl($invoice),