$sadad_checksum_array['ORDER_ID'], 'quantity'=>'1', 'amount'=>'50', 'type'=>'line_item', 'itemname'=>'Sample Product' ) ); $sAry1 = []; $sadad_checksum_array1 = []; foreach ($sadad_checksum_array as $pK => $pV) { if ($pK == 'checksumhash') continue; if (is_array($pV)) { $prodSize = sizeof($pV); for ($i = 0; $i < $prodSize; $i++) { foreach ($pV[$i] as $innK => $innV) { $sAry1[] = ""; $sadad_checksum_array1['productdetail'][$i][$innK] = trim($innV); } } } else { $sAry1[] = ""; $sadad_checksum_array1[$pK] = trim($pV); } } $sadad__checksum_data['postData'] = $sadad_checksum_array1; $sadad__checksum_data['secretKey'] = $secretKey; $checksum = getChecksumFromString(json_encode($sadad__checksum_data), $secretKey . $merchantID); $sAry1[] = ""; $action_url = 'https://sadadqa.com/webpurchase'; echo '
'; ?>