1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Merge pull request #906 from joshuadwire/wepay-integration

Fix bugs when using Stripe
This commit is contained in:
Hillel Coren 2016-06-06 11:10:54 +03:00
commit eef760b3bb
2 changed files with 4 additions and 1 deletions

View File

@ -225,6 +225,9 @@ class ClientPortalController extends BaseController
foreach(Gateway::$paymentTypes as $type) {
if ($type == PAYMENT_TYPE_STRIPE) {
continue;
}
if ($gateway = $account->getGatewayByType($type)) {
if ($type == PAYMENT_TYPE_DIRECT_DEBIT) {
if ($gateway->gateway_id == GATEWAY_STRIPE) {

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;
}