Skip to content

Payzippy hash mismatch Issue Please Help me :( #4

@yash2u

Description

@yash2u
$v) { if ($k != 'hash' && isset($v)) $str .= "$v|"; } $str .= "1182cd61c64f7deabe6d741003df70d089003fe0d1d32cd8ad3dfa67b05aea73"; // Your secret key goes here. //header("https://www.payzippy.com/payment/api/charging/v1?".$str); //$str; return md5($str); } function main(){ $request_url = "https://www.payzippy.com/payment/api/charging/v1"; //Charging Url $details_array = array(); $details_array['merchant_id'] = "VIRECHARGE"; //Your MID issued by PayZippy. $details_array['buyer_email_address'] = "sunil.sharma056@gmail.com"; // Email Address $details_array['buyer_phone_no'] = "9873121315"; // Email Number $details_array['merchant_transaction_id'] = "MT".rand(); //Your Transaction Id $details_array['transaction_type'] = "SALE"; //This is the default Value. $details_array['transaction_amount'] = "100"; //Amount must be in paise. So, 1 Rupee= 100. $details_array['payment_method'] = "CREDIT"; // CREDIT,DEBIT,EMI,NET //$details_array['bank_name'] = ""; //Bank Name required in case of EMI/NET. //$details_array['emi_months'] = "0"; // Emi Months in case of EMI. $details_array['currency'] = "INR"; //INR is default. $details_array['ui_mode'] = "REDIRECT"; //REDIRECT/IFRAME. $details_array['hash_method'] = "SHA256"; //MD5, SHA256 $details_array['merchant_key_id'] = "payment"; //This is the default value. //$details_array['timegmt']= round(microtime(true) \* 1000); $details_array['callback_url']="http://www.virecharge.com/cuser/success.php"; $details_array['hash'] = getHash($details_array); // exit(); ``` $request_url_to_be_hit = $request_url."?".http_build_query($details_array); //print_r($request_url_to_be_hit); //This url printed needs to be redirected or put in iframe header('location:'.$request_url_to_be_hit); ``` //as the case may be. } main(); ?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions