Hello, I need help with the integration. I have to implement a recurring payment, so I register the user's card, make the first payment and manage the first payment. However I get this error:
MangoPay\Libraries\ResponseException
Bad request. Requires an active 3DSV2 configuration
Hello, I need help with the integration. I have to implement a recurring payment, so I register the user's card, make the first payment and manage the first payment. However I get this error:
MangoPay\Libraries\ResponseException Bad request. Requires an active 3DSV2 configuration
My code integration is:
$CardRegistration = new \MangoPay\CardRegistration(); $CardRegistration->UserId = auth()->user()->mangopay_id; // card registrarion $CardRegistration->Currency = "EUR"; // $CardRegistration->Securre // $CardRegistration->CardType = "CB_VISA_MASTERCARD"; $Result = $this->mangopay->CardRegistrations->Create($CardRegistration); session(['Id' => $Result->Id]); $returnUrl = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . $_SERVER['HTTP_HOST']; $returnUrl .= substr($_SERVER['REQUEST_URI'], 0, strripos($_SERVER['REQUESTURI'], '/') + 1); $returnUrl .= 'resultCard'; $cardRegistrationUrl = $Result->CardRegistrationURL; $preregistrationData = $Result->PreregistrationData; $accessKey = $Result->AccessKey;