Demo:
$cardlinkFormGenerator = new CardlinkFormGenerator(
'https://localhost/confirm',
'https://localhost/cancel',
'YOUR_MERCHANT_ID',
'2',
'YOUR_CARDLINK_SECRET'
);
$form = [
'orderid' => 'ORDER_ID',
'orderDesc' => 'ORDER_DESC',
'orderAmount' => '100',
'currency' => 'EUR',
'billCountry' => 'GR',
'billState' => 'ATHENS',
'billZip' => '000000',
'billCity' => 'ATHENS',
'billAddress' => 'Somewhere in Athens'
];
var_dump($cardlinkFormGenerator->generate($form));Official Documentation: https://www.eurobank.gr/-/media/eurobank/business/ilektronikes-upiresies/e-commerce/cardlink-payment-gateway-redirect-model-3ds.pdf