From 5eb76df20ec49eba9a03e28ae25b86f5c47ca85d Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Sun, 5 Jun 2016 15:06:34 -0400 Subject: [PATCH 1/2] Fix refunds on Stripe --- app/Services/PaymentService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/PaymentService.php b/app/Services/PaymentService.php index efa27d945b7a..00f45a561e7d 100644 --- a/app/Services/PaymentService.php +++ b/app/Services/PaymentService.php @@ -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; } From 0967ca65e8d1441fd6bf681794bf3d3abd84ae1b Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Sun, 5 Jun 2016 15:07:02 -0400 Subject: [PATCH 2/2] Show "Credit Card" instead of "Stripe" as a payment option. --- app/Http/Controllers/ClientPortalController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/ClientPortalController.php b/app/Http/Controllers/ClientPortalController.php index 8d66e18293d1..ba088df49e91 100644 --- a/app/Http/Controllers/ClientPortalController.php +++ b/app/Http/Controllers/ClientPortalController.php @@ -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) {