<?php
require __DIR__ . '/../vendor/autoload.php';
// Boot the Laravel application
$app = require __DIR__ . '/../bootstrap/app.php';

use App\Services\Payment\PaymentGatewayManager;

$manager = new PaymentGatewayManager();

$payload = [
    'tx_ref' => 'TEST-' . time(),
    'amount' => 100,
    'currency' => 'XOF',
    'redirect_url' => 'https://example.com/callback',
    'customer_email' => 'test@example.com',
    'customer_phone' => '+22501020304',
    'customer_name' => 'Test User',
    'description' => 'Test Init Payment',
];

$result = $manager->initiate($payload);

var_export($result);
