Fix refunds on Stripe

This commit is contained in:
Joshua Dwire 2016-06-05 15:06:34 -04:00
parent cef9fb3202
commit 5eb76df20e

View File

@ -1005,7 +1005,7 @@ class PaymentService extends BaseService
'transactionReference' => $payment->transaction_reference,
);
if ($amount != ($payment->amount - $payment->refunded)) {
if ($accountGateway->gateway_id != GATEWAY_WEPAY || $amount != ($payment->amount - $payment->refunded)) {
$details['amount'] = $amount;
}