2020-05-14 03:04:23 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Exceptions;
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
|
|
|
class PaymentRefundFailed extends Exception
|
2020-09-06 11:38:10 +02:00
|
|
|
{
|
2020-05-14 03:04:23 +02:00
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Report the exception.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function report()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
2020-05-14 03:04:23 +02:00
|
|
|
|
2020-09-06 11:38:10 +02:00
|
|
|
/**
|
|
|
|
* Render the exception into an HTTP response.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Http\Request $request
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function render($request)
|
|
|
|
{
|
|
|
|
return response()->json([
|
|
|
|
'message' => 'Unable to refund the transaction',
|
2020-05-14 03:04:23 +02:00
|
|
|
], 401);
|
2020-09-06 11:38:10 +02:00
|
|
|
}
|
2020-05-14 03:04:23 +02:00
|
|
|
}
|