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) { diff --git a/app/Http/Controllers/DocumentAPIController.php b/app/Http/Controllers/DocumentAPIController.php index a1eef82c703d..442b3923ccd2 100644 --- a/app/Http/Controllers/DocumentAPIController.php +++ b/app/Http/Controllers/DocumentAPIController.php @@ -21,7 +21,10 @@ class DocumentAPIController extends BaseAPIController public function index() { - //stub + $documents = Document::scope(); + + return $this->listResponse($documents); + } public function show(DocumentRequest $request) 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; }