From b327a20f1035e7b7016963ad74d86f8fd2d58d24 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 16 Apr 2017 12:42:28 +0300 Subject: [PATCH] Fix for partial refund --- app/Http/Controllers/PaymentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/PaymentController.php b/app/Http/Controllers/PaymentController.php index 5037a3063ee4..ad5a94ccebcc 100644 --- a/app/Http/Controllers/PaymentController.php +++ b/app/Http/Controllers/PaymentController.php @@ -232,9 +232,9 @@ class PaymentController extends BaseController public function bulk() { $action = Input::get('action'); - $amount = Input::get('amount'); + $amount = Input::get('refund_amount'); $ids = Input::get('public_id') ? Input::get('public_id') : Input::get('ids'); - $count = $this->paymentService->bulk($ids, $action, ['amount' => $amount]); + $count = $this->paymentService->bulk($ids, $action, ['refund_amount' => $amount]); if ($count > 0) { $message = Utils::pluralize($action == 'refund' ? 'refunded_payment' : $action.'d_payment', $count);