- Complete mail-in payment gateway for Event Tickets Commerce - Support for check payments with collapsible checkout interface - Admin interface for managing check payments and order status - Professional asset organization with proper WordPress enqueuing - Order management with status tracking (pending, received, bounced) - Template system with responsive design and accessibility features - Integration with Event Tickets Commerce order system - Settings page for configuring payment instructions and addresses
122 lines
No EOL
3.9 KiB
PHP
122 lines
No EOL
3.9 KiB
PHP
<?php
|
|
/**
|
|
* Payment confirmation email template
|
|
*
|
|
* @since 1.0.0
|
|
* @var \TEC\Tickets\Commerce\Order $order Order object
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
?><!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php printf( __( 'Payment Confirmed for Order #%s', 'event-tickets-mail-in' ), $order->get_order_number() ); ?></title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
.header {
|
|
background: #d4edda;
|
|
padding: 20px;
|
|
text-align: center;
|
|
border-radius: 8px 8px 0 0;
|
|
border-bottom: 3px solid #28a745;
|
|
}
|
|
.content {
|
|
background: #fff;
|
|
padding: 30px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
.order-summary {
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
margin: 20px 0;
|
|
}
|
|
.success-message {
|
|
background: #d4edda;
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
border-left: 4px solid #28a745;
|
|
margin: 20px 0;
|
|
}
|
|
.footer {
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
text-align: center;
|
|
border-radius: 0 0 8px 8px;
|
|
border-top: 1px solid #ddd;
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
h1, h2, h3 {
|
|
color: #28a745;
|
|
}
|
|
.order-number {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #28a745;
|
|
}
|
|
.success-icon {
|
|
font-size: 48px;
|
|
color: #28a745;
|
|
margin-bottom: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="email-container">
|
|
<div class="header">
|
|
<div class="success-icon">✓</div>
|
|
<h1><?php esc_html_e( 'Payment Confirmed!', 'event-tickets-mail-in' ); ?></h1>
|
|
<p><?php printf( __( 'Order #%s', 'event-tickets-mail-in' ), '<span class="order-number">' . esc_html( $order->get_order_number() ) . '</span>' ); ?></p>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<h2><?php esc_html_e( 'Your payment has been received!', 'event-tickets-mail-in' ); ?></h2>
|
|
|
|
<p><?php printf(
|
|
__( 'Hello %s,', 'event-tickets-mail-in' ),
|
|
esc_html( $order->get_purchaser_name() )
|
|
); ?></p>
|
|
|
|
<div class="success-message">
|
|
<h3><?php esc_html_e( 'Great news!', 'event-tickets-mail-in' ); ?></h3>
|
|
<p><?php esc_html_e( 'We have received and processed your check payment. Your order is now complete and your tickets are confirmed!', 'event-tickets-mail-in' ); ?></p>
|
|
</div>
|
|
|
|
<div class="order-summary">
|
|
<h3><?php esc_html_e( 'Order Summary', 'event-tickets-mail-in' ); ?></h3>
|
|
<p><strong><?php esc_html_e( 'Order Number:', 'event-tickets-mail-in' ); ?></strong> <?php echo esc_html( $order->get_order_number() ); ?></p>
|
|
<p><strong><?php esc_html_e( 'Payment Method:', 'event-tickets-mail-in' ); ?></strong> <?php esc_html_e( 'Check Payment', 'event-tickets-mail-in' ); ?></p>
|
|
<p><strong><?php esc_html_e( 'Total Amount:', 'event-tickets-mail-in' ); ?></strong> <?php echo esc_html( $order->get_total_value()->get_formatted() ); ?></p>
|
|
<p><strong><?php esc_html_e( 'Payment Status:', 'event-tickets-mail-in' ); ?></strong> <span style="color: #28a745; font-weight: bold;"><?php esc_html_e( 'Completed', 'event-tickets-mail-in' ); ?></span></p>
|
|
</div>
|
|
|
|
<h3><?php esc_html_e( 'What happens next?', 'event-tickets-mail-in' ); ?></h3>
|
|
<ul>
|
|
<li><?php esc_html_e( 'Your tickets are now confirmed and active.', 'event-tickets-mail-in' ); ?></li>
|
|
<li><?php esc_html_e( 'You should receive your tickets in a separate email shortly.', 'event-tickets-mail-in' ); ?></li>
|
|
<li><?php esc_html_e( 'Please keep this confirmation for your records.', 'event-tickets-mail-in' ); ?></li>
|
|
<li><?php esc_html_e( 'If you have any questions, please contact us.', 'event-tickets-mail-in' ); ?></li>
|
|
</ul>
|
|
|
|
<p><?php esc_html_e( 'Thank you for your payment and we look forward to seeing you at the event!', 'event-tickets-mail-in' ); ?></p>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p><?php echo esc_html( get_option( 'blogname' ) ); ?></p>
|
|
<p><?php echo esc_html( get_option( 'admin_email' ) ); ?></p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|