@php //Merchant's account information $merchant_id = "764764000012922"; //Get MerchantID when opening account with 2C2P $secret_key = "7CA438111FDE3D384638B837A72F8E32684CDBEE522C6AA00F0E1ED2E2A5B4F2"; //Get SecretKey from 2C2P PGW Dashboard //Transaction information $payment_description = 'Lark Transport Booking'; $order_id = $booking_id; $currency = "764"; $amount = $amt; $chandran = "44chandran@gmail.com"; //Request information $version = "8.5"; //$payment_url = "https://demo2.2c2p.com/2C2PFrontEnd/RedirectV3/payment"; $payment_url = "https://t.2c2p.com/RedirectV3/payment"; $result_url_1 = "https://apinew.larkholidays.com/public/api/response"; //Construct signature string $params = $version.$merchant_id.$payment_description.$order_id.$currency.$amount.$result_url_1; $hash_value = hash_hmac('sha256',$params, $secret_key,false); //Compute hash value @endphp