mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Merge pull request #906 from joshuadwire/wepay-integration
Fix bugs when using Stripe
This commit is contained in:
commit
eef760b3bb
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user