/
/
home
/
u523034047
/
domains
/
psassociate.org
/
public_html
/
phonepe
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.60
PHP 8.3.16
Dir:
/home/u523034047/domains/psassociate.org/public_html/phonepe
Edit:
/home/u523034047/domains/psassociate.org/public_html/phonepe/failed.php
<?php /** * phonepe/failed.php — Standalone payment failure page. */ session_start(); require_once __DIR__ . '/phonepe_config.php'; $reason = $_GET['reason'] ?? 'UNKNOWN'; $career = $_SESSION['career'] ?? []; $errorMessages = [ 'PAYMENT_ERROR' => 'The payment could not be processed. Please try again.', 'PAYMENT_DECLINED' => 'Your payment was declined. Please use a different payment method.', 'PAYMENT_CANCELLED' => 'You cancelled the payment. You can try again anytime.', 'TIMED_OUT' => 'The payment session timed out. Please try again.', 'connection_error' => 'Could not connect to the payment gateway.', 'INTERNAL_SERVER_ERROR' => 'Something went wrong on our end. Please try again.', 'BAD_REQUEST' => 'There was an issue with the payment request.', 'AUTHORIZATION_FAILED' => 'Payment authorization failed.', 'AUTH_FAILED' => 'Could not authenticate with the payment gateway.', 'FAILED' => 'Your payment failed. Please try again.', 'PENDING' => 'Your payment is still processing. Please wait a few minutes.', 'SESSION_EXPIRED' => 'Your session has expired. Please fill the form again.', 'CONFIG_ERROR' => 'A server error occurred. Please try again.', 'UNKNOWN' => 'An unexpected error occurred. Please try again or contact support.', ]; $friendlyMessage = $errorMessages[$reason] ?? $errorMessages['UNKNOWN']; $hasSession = !empty($career['name']); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Payment Issue - PS Associate</title> <link rel="shortcut icon" href="../ico-images/u.ico" type="image/x-icon" /> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet"> <style> :root { --error: #ef4444; --error-light: #fee2e2; --primary: #1e293b; --bg: #0f172a; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; background: radial-gradient(circle at top left, #1a1b26, #0f172a); color: #fff; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; } .glass-card { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; width: 100%; max-width: 440px; overflow: hidden; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); animation: fadeIn 0.5s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .header { padding: 40px 30px 20px; background: linear-gradient(to bottom, rgba(239, 68, 68, 0.1), transparent); } .error-icon { width: 70px; height: 70px; background: rgba(239, 68, 68, 0.1); border: 2px solid rgba(239, 68, 68, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--error); } .header h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; } .header p { font-size: 14px; opacity: 0.5; } .body { padding: 20px 30px 40px; } .message-box { background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.1); padding: 20px; border-radius: 16px; margin-bottom: 24px; } .message-box p { font-size: 15px; color: #fecaca; line-height: 1.6; margin-bottom: 12px; } .error-code { font-family: monospace; font-size: 12px; color: #fca5a5; opacity: 0.8; background: rgba(0,0,0,0.2); padding: 4px 10px; border-radius: 6px; } .btn-group { display: flex; flex-direction: column; gap: 12px; } .btn { padding: 16px; border-radius: 14px; font-size: 14px; font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; border: none; cursor: pointer; } .btn-retry { background: #fff; color: #000; } .btn-retry:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(255,255,255,0.1); } .btn-alt { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); } .btn-alt:hover { background: rgba(255,255,255,0.1); } .footer { margin-top: 30px; font-size: 12px; opacity: 0.3; } </style> </head> <body> <div class="glass-card"> <div class="header"> <div class="error-icon"> <svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg> </div> <h1>Transaction Incomplete</h1> <p>We couldn't process your payment</p> </div> <div class="body"> <div class="message-box"> <p><?php echo htmlspecialchars($friendlyMessage); ?></p> <span class="error-code">REF: <?php echo htmlspecialchars($reason); ?></span> </div> <div class="btn-group"> <?php if ($hasSession): ?> <a href="select-plan.php" class="btn btn-retry"> Retry Payment <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg> </a> <?php else: ?> <a href="../post-resume.php" class="btn btn-retry"> Fill Form Again <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg> </a> <?php endif; ?> <a href="tel:+919452530458" class="btn btn-alt"> Call +91 9452530458 </a> <a href="../index.php" class="btn btn-alt"> Return Home </a> </div> <div class="footer"> If the issue persists, please contact our support team for assistance. </div> </div> </div> </body> </html>
Ukuran: 6.9 KB