<?php
// Example: Creating a Payment

require 'FamGateway.php';

// 1. Initialize the Gateway with your API Key
$fam = new FamGateway("YOUR_API_KEY_HERE");

// 2. Set the amount and success URL
$amount = 150; // INR
$redirectUrl = "https://yourwebsite.com/success.php"; // Change this to your actual success page

// 3. Create the payment and automatically redirect the user to checkout
$fam->createPayment($amount, $redirectUrl);
?>
