mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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) {
|
foreach(Gateway::$paymentTypes as $type) {
|
||||||
|
if ($type == PAYMENT_TYPE_STRIPE) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if ($gateway = $account->getGatewayByType($type)) {
|
if ($gateway = $account->getGatewayByType($type)) {
|
||||||
if ($type == PAYMENT_TYPE_DIRECT_DEBIT) {
|
if ($type == PAYMENT_TYPE_DIRECT_DEBIT) {
|
||||||
if ($gateway->gateway_id == GATEWAY_STRIPE) {
|
if ($gateway->gateway_id == GATEWAY_STRIPE) {
|
||||||
|
@ -1005,7 +1005,7 @@ class PaymentService extends BaseService
|
|||||||
'transactionReference' => $payment->transaction_reference,
|
'transactionReference' => $payment->transaction_reference,
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($amount != ($payment->amount - $payment->refunded)) {
|
if ($accountGateway->gateway_id != GATEWAY_WEPAY || $amount != ($payment->amount - $payment->refunded)) {
|
||||||
$details['amount'] = $amount;
|
$details['amount'] = $amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user