Authorization

This commit is contained in:
Benjamin Beganović 2021-11-11 17:52:05 +01:00
parent 0e5b5393d3
commit a7c7f58bb5

View File

@ -13,6 +13,8 @@ use App\Models\Payment;
use App\Models\PaymentType;
use App\Models\SystemLog;
use App\PaymentDrivers\GoCardlessPaymentDriver;
use Illuminate\Contracts\Container\BindingResolutionException;
use Illuminate\Http\RedirectResponse;
class InstantBankPay implements MethodInterface
{
@ -25,12 +27,28 @@ class InstantBankPay implements MethodInterface
$this->go_cardless->init();
}
public function authorizeView(array $data)
/**
* Authorization page for Instant Bank Pay.
*
* @param array $data
* @return RedirectResponse
* @throws BindingResolutionException
*/
public function authorizeView(array $data): RedirectResponse
{
return redirect()->back();
}
public function authorizeResponse(Request $request)
/**
* Handle authorization for Instant Bank Pay.
*
* @param array $data
* @return RedirectResponse
* @throws BindingResolutionException
*/
public function authorizeResponse(Request $request): RedirectResponse
{
return redirect()->back();
}
public function paymentView(array $data)
@ -131,7 +149,7 @@ class InstantBankPay implements MethodInterface
return redirect()->route('client.payments.show', ['payment' => $this->go_cardless->encodePrimaryKey($payment->id)]);
}
/**
/**
* Process unsuccessful payments for Direct Debit.
*
* @param ResourcesPayment $payment