mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-14 07:34:43 -04:00
Additional checks for checkout.com
This commit is contained in:
parent
46193ed187
commit
fd551c563d
@ -44,6 +44,7 @@ use Checkout\Payments\PaymentRequest as PaymentsPaymentRequest;
|
|||||||
use Checkout\Payments\RefundRequest;
|
use Checkout\Payments\RefundRequest;
|
||||||
use Checkout\Payments\Source\RequestIdSource;
|
use Checkout\Payments\Source\RequestIdSource;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
|
|
||||||
class CheckoutComPaymentDriver extends BaseDriver
|
class CheckoutComPaymentDriver extends BaseDriver
|
||||||
{
|
{
|
||||||
@ -407,9 +408,16 @@ class CheckoutComPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
public function process3dsConfirmation(Checkout3dsRequest $request)
|
public function process3dsConfirmation(Checkout3dsRequest $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->init();
|
$this->init();
|
||||||
$this->setPaymentHash($request->getPaymentHash());
|
$this->setPaymentHash($request->getPaymentHash());
|
||||||
|
|
||||||
|
//11-08-2022 check the user is autenticated
|
||||||
|
if (!Auth::guard('contact')->check()) {
|
||||||
|
$client = $request->getClient();
|
||||||
|
auth()->guard('contact')->loginUsingId($client->contacts()->first()->id, true);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$payment = $this->gateway->getPaymentsClient()->getPaymentDetails(
|
$payment = $this->gateway->getPaymentsClient()->getPaymentDetails(
|
||||||
$request->query('cko-session-id')
|
$request->query('cko-session-id')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user