<?php
// Simple payment creation
$result = createRMAPayment(
'your_api_key_here',
'your_api_secret_here',
100.00, // Amount
'ORDER-2024-001', // Order ID
'customer@example.com', // Customer email (optional)
'Payment description' // Description (optional)
);
if ($result['success']) {
// Redirect to payment URL
header('Location: ' . $result['data']['payment_url']);
exit;
} else {
echo 'Payment creation failed: ' . $result['message'];
}
?>
API Key: rma_OKmXkjtDxP6ZIZI8V2sRUUDDUpdfkZPE
API Secret: ubEZf57F9jYaNDimP41B...
Endpoint: http://127.0.0.1:8000/api/payment/create