diff --git a/src/PayPal/Payment/Refund/CommandHandler/RefundPayPalCaptureCommandHandler.php b/src/PayPal/Payment/Refund/CommandHandler/RefundPayPalCaptureCommandHandler.php index 82a7c9ee6..f04a9ad9a 100644 --- a/src/PayPal/Payment/Refund/CommandHandler/RefundPayPalCaptureCommandHandler.php +++ b/src/PayPal/Payment/Refund/CommandHandler/RefundPayPalCaptureCommandHandler.php @@ -94,7 +94,7 @@ public function handle(RefundPayPalCaptureCommand $command) ), ]); - $refund = json_decode($response->getBody()->getContents(), true); + $refund = json_decode($response->getBody(), true); $this->eventDispatcher->dispatch( new PayPalCaptureRefundedEvent( $refund['id'],