Authorize.net: Update amount with fee

This commit is contained in:
Benjamin Beganović 2020-12-21 12:10:28 +01:00
parent 5a8dfd85eb
commit 24d76e98f0

View File

@ -75,7 +75,7 @@ class AuthorizeCreditCard
$client_gateway_token = $authorise_payment_method->createClientGatewayToken($payment_profile, $gateway_customer_reference);
}
$data = (new ChargePaymentProfile($this->authorize))->chargeCustomerProfile($gateway_customer_reference, $payment_profile_id, $data['amount_with_fee']);
$data = (new ChargePaymentProfile($this->authorize))->chargeCustomerProfile($gateway_customer_reference, $payment_profile_id, $data['total']['amount_with_fee']);
return $this->handleResponse($data, $request);
}