<?php
require '../includes/db.php';
require 'https://kilicow.rdnslvhost.in.net/paypkr/payinv1.php';     // For PKR
require 'gateways/inrpay.php';     // For INR (you’ll create this)

// Common validation
// ...
$currency = strtolower($_POST['currency'] ?? 'pkr');

switch ($currency) {
    case 'pkr':
        handleCowPay($pdo, $_POST);
        break;

    case 'inr':
        handleInrPay($pdo, $_POST);
        break;

    default:
        echo json_encode(['status' => 'error', 'message' => 'Unsupported currency']);
        exit;
}

