From 62a6cb05d14ec4791206a3274535e9f73f30a575 Mon Sep 17 00:00:00 2001 From: faxblaster Date: Tue, 20 Jul 2021 16:54:24 -0400 Subject: [PATCH] return json from request --- src/Http/StripeChargesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/StripeChargesController.php b/src/Http/StripeChargesController.php index 573f250..b9eef91 100644 --- a/src/Http/StripeChargesController.php +++ b/src/Http/StripeChargesController.php @@ -24,6 +24,6 @@ public function show($id) public function refund($id) { - return (new StripeClient)->refundCharge($id); + return response()->json((new StripeClient)->refundCharge($id)); } }