amount calculation of omnipay is fixed
This commit is contained in:
parent
8f8ac61ec3
commit
99ec1dc80b
@ -62,7 +62,7 @@ trait Omnipay
|
|||||||
public function purchase($invoice, $request, $extra_options = [])
|
public function purchase($invoice, $request, $extra_options = [])
|
||||||
{
|
{
|
||||||
$default_options = [
|
$default_options = [
|
||||||
'amount' => $invoice->amount,
|
'amount' => $invoice->amount - $invoice->paid,
|
||||||
'currency' => $invoice->currency_code,
|
'currency' => $invoice->currency_code,
|
||||||
'transactionId' => $invoice->id,
|
'transactionId' => $invoice->id,
|
||||||
'returnUrl' => $this->getReturnUrl($invoice),
|
'returnUrl' => $this->getReturnUrl($invoice),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user