:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/www/demo/soulmeetvivah.com/test-payment/**
:: Editing File: payment.php
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require 'phonepe/src/PhonePe.php'; use Codesk\PhonePePaymentGateway\PhonePe; $amount = $_GET['amount']; // $response = post_api_call($post,$payment_api_url); // $response = json_decode($response, true); if (1) { $config = new PhonePe('MERCHANTID','YOUR SECRET CODE',1);//merchantId,SaltKey,SaltIndex after onboarding PhonePe Payment gateway you will got this. $merchantTransactionId=substr(uniqid(), -6);// Uqique Randoe transcation Id $merchantOrderId='Order'.mt_rand(1000,99999);// orderId $amount=$amount*100;// Amount in Paisa or amount*100 // $redirectUrl="https://www.godigitalweb.com/centre/payment-success.php";// Example $redirectUrl="https://soulmeetvivah.com/success.php";// Redirect Url after Payment success or fail $mode="UAT"; // MODE or PAYMENT UAT(test) or PRODUCTION(production) $callbackUrl="https://www.godigitalweb.com/centre/payment-success.php";//Callback Url after Payment success or fail get response $callbackUrl="https://soulmeetvivah.com/success.php";//Callback Url after Payment success or fail get response $data=$config->PaymentCall("$merchantTransactionId","$merchantOrderId","$amount","$redirectUrl","$callbackUrl","$mode");// call function to get response form phonepe like url,msg,status header('Location:'. $data['url']);//use when you directly want to redirect to phonepe gateway //echo $data['url']; // here you get url after initiated PhonePe gateway //print_r($data); } ?>