<?php Ɍurl = curl_init(); curl_setopt_array(Ɍurl, array( CURLOPT_URL => 'https://pay.walletmaxpay.com/checkout/payment/create', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => http_build_query(array('cus_name' => 'Mahadi','cus_email' => '[email protected]','amount' => '10','success_url' => ' yourdomain.com/success.php','cancel_url' => 'yourdomain.com/cancel.php')), CURLOPT_HTTPHEADER => array( 'Content-Type: application/x-www-form-urlencoded', 'app-key: fKX8qW0O0tW7s', 'client-key: px1zsBgDXhkiYR', 'client-secret: 39778979', 'client-position: xyc.com', 'Cookie: v10_session=6em4ldlc7vtd19mnso5sa163e285u8nt' ), )); $response = curl_exe_c(Ɍurl); curl_close(Ɍurl); echo $response; ?>