ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
home
/
vyaparinfotech
/
public_html
/
Upload FileeE
HOME
<?php // Live keys from your PayU dashboard $MERCHANT_KEY = "jfI2VC"; $SALT = "W646wf6pKvsmOBIy9IBzFSiFOEwlIaBx"; // PayU Payment URL (for live) $PAYU_BASE_URL = "https://secure.payu.in"; // Get POST values from form $amount = $_POST['amount']; $name = $_POST['name']; $email = $_POST['email']; $mobile = $_POST['mobile']; $payfor = $_POST['payfor'] ?? 'Service'; // Generate unique txnid for transaction $txnid = substr(hash('sha256', mt_rand() . microtime()), 0, 20); // Product info can be the payment purpose or order details $productinfo = $payfor; // Success and failure URLs (Change these to your actual URLs) $success_url = "https://www.vyaparinfotech.com/success.php"; $failure_url = "https://www.vyaparinfotech.com/failure.php"; // Prepare the data array required by PayU $posted = array( 'key' => $MERCHANT_KEY, 'txnid' => $txnid, 'amount' => $amount, 'productinfo' => $productinfo, 'firstname' => $name, 'email' => $email, 'phone' => $mobile, 'surl' => $success_url, 'furl' => $failure_url, 'service_provider' => 'payu_paisa', ); // Create hash string as per PayU requirements // Format: // hash = sha512(key|txnid|amount|productinfo|firstname|email|||||||||||salt) $hashSequence = $MERCHANT_KEY . '|' . $txnid . '|' . $amount . '|' . $productinfo . '|' . $name . '|' . $email . '|||||||||||' . $SALT; $hash = strtolower(hash('sha512', $hashSequence)); ?> <html> <head><title>Redirecting to PayU</title></head> <body onload="document.forms.payuform.submit();"> <h3>Please wait, redirecting to payment gateway...</h3> <form action="<?php echo $PAYU_BASE_URL; ?>/_payment" method="post" name="payuform"> <input type="hidden" name="key" value="<?php echo $MERCHANT_KEY; ?>" /> <input type="hidden" name="hash" value="<?php echo $hash; ?>" /> <input type="hidden" name="txnid" value="<?php echo $txnid; ?>" /> <input type="hidden" name="amount" value="<?php echo $amount; ?>" /> <input type="hidden" name="firstname" value="<?php echo $name; ?>" /> <input type="hidden" name="email" value="<?php echo $email; ?>" /> <input type="hidden" name="phone" value="<?php echo $mobile; ?>" /> <input type="hidden" name="payfor" value="<?php echo $payfor; ?>" /> <input type="hidden" name="productinfo" value="<?php echo $productinfo; ?>" /> <input type="hidden" name="surl" value="<?php echo $success_url; ?>" /> <input type="hidden" name="furl" value="<?php echo $failure_url; ?>" /> <input type="hidden" name="service_provider" value="payu_paisa" /> <input type="submit" value="Pay Now" style="display:none;" /> </form> </body> </html>