JezK
Edit File: pay-paid.php
<?php if ($oketheme ['email_inbox']) { // Data website for mail $url_web = site_url(); $warna = $oketheme['color_scheme']; $nama_web = $oketheme['nama_web']; $slogan_web = $oketheme['slogan_web']; $email_inbox = $oketheme['email_inbox']; $hotline = indowa($oketheme['hotline']); $wa = indowa($oketheme['wa']); $email_cs = $oketheme['email_cs']; $translate = $oketheme['translate']; $mail_copyright = mail_copyright(); // Mail to admin $mailto_admin = " <html> <body style='width:100%;padding:20px 0;background-image:linear-gradient(to bottom, #FBFBFB, #F5F5F5);font-family:sans-serif;font-size:14px;color:#555555;line-height:1.5em;margin:0'> <div style='max-width:600px;min-width:270px;text-align:center;margin:0 auto;padding:10px 20px;'> <h2 style='margin-bottom:5px;color:$warna;'>Pembayaran Diterima</h2> $invoice | $etime </div> <div style='max-width:600px;min-width:270px;margin:20px auto;background:#FFF;padding:25px 20px 5px'> <p style='margin:0 0 20px;text-align:center'>Pembayaran baru telah diterima dengan detail sebagai berikut:</p> <table width='100%' border='0' cellspacing='0' cellpadding='5' style='margin:15px 0;font-size:14px;background:#FAFAFA;padding:15px'> <tr> <td width='40%' valign='top'>ID Invoice</td> <td width='2%'valign='top'>: </td> <td valign='top'>$invoice</td> </tr> <tr> <td valign='top'>Jumlah</td> <td valign='top'>: </td> <td valign='top'>$is_ammount</td> </tr> <tr> <td valign='top'>Metode</td> <td valign='top'>: </td> <td valign='top'>$channel</td> </tr> <tr> <td valign='top'>Status Pembayaran</td> <td valign='top'>: </td> <td valign='top' style='20px;color:green'>Verified (Valid)</td> </tr> </table> <p align='center' style='margin:15px 0;background:#FAFAFA;padding:15px'> <b>Catatan untuk admin/staff:</b><br/> $pesan_cust </p> </div> <p style='max-width:600px;text-align:center;margin:30px auto 10px;'> <a href='$url_web'><b>$nama_web</b></a> - $slogan_web </p> $mail_copyright </body> </html> "; // Mail to Customer *ID $mailto_cust_id = " <html> <body style='width:100%;padding:20px 0;background-image:linear-gradient(to bottom, #FBFBFB, #F5F5F5);font-family:sans-serif;font-size:14px;color:#555555;line-height:1.5em;margin:0'> <div style='max-width:600px;min-width:270px;text-align:center;margin:0 auto;padding:10px 20px;'> <h2 style='margin-bottom:5px;color:$warna;'>Pembayaran Berhasil</h2> $invoice | $etime </div> <div style='max-width:500px;min-width:270px;margin:20px auto;background:#FFF;padding:25px 20px 5px'> <p style='margin:0 0 20px;text-align:center'><b>Yth. $nama,</b><br/>Pembayaran $is_dp telah berhasil kami terima.</p> <div style='margin:15px 0;background:#FAFAFA;padding:15px'> <p align='center'> Status Pembayaran<br/> <span style='font-size:20px;color:green'>VERIFIED / VALID</span> </p> <p align='center'> <b>$is_ammount</b> via <b>$channel</b> </p> <p align='center'> Kami akan segera follow up bookingan Anda.<br/> ID invoice #<b>$invoice</b> </p> </div> <p align='center'> Jika Anda memerlukan bantuan, silahkan menghubungi kami. Terima kasih<br/>" .($hotline?" <span style='display:inline-block;background:#FAFAFA;padding:5px 10px;margin:5px;'> <b>Hotline</b><br/> <a style='color:#555555' href='tel:$hotline'>+$hotline</a> </span>":"")." " .($wa?" <span style='display:inline-block;background:#FAFAFA;padding:5px 10px;margin:5px;'> <b>Whatsapp</b><br/> <a style='color:#555555' href='https://api.whatsapp.com/send?phone=$wa&text=Halo, saya butuh bantuan..' target='blank'>+$wa</a> </span>":"")." " .($email_cs?" <span style='display:inline-block;background:#FAFAFA;padding:5px 10px;margin:5px;'> <b>Email</b><br/> <a style='color:#555555' href='mailto:$email_cs'>$email_cs</a> </span>":"")." </p> </div> <p style='max-width:450px;text-align:center;margin:30px auto 10px;'> <a href='$url_web'><b>$nama_web</b></a> - $slogan_web </p> </body> </html> "; // Mail to Customer *EN $mailto_cust_en = " <html> <body style='width:100%;padding:20px 0;background-image:linear-gradient(to bottom, #FBFBFB, #F5F5F5);font-family:sans-serif;font-size:14px;color:#555555;line-height:1.5em;margin:0'> <div style='max-width:600px;min-width:270px;text-align:center;margin:0 auto;padding:10px 20px;'> <h2 style='margin-bottom:5px;color:$warna;'>Payment Successful</h2> $invoice | $etime </div> <div style='max-width:500px;min-width:270px;margin:20px auto;background:#FFF;padding:25px 20px 5px'> <p style='margin:0 0 20px;text-align:center'><b>Hello $nama,</b><br/>Payment $is_dp has been successfully received.</p> <div style='margin:15px 0;background:#FAFAFA;padding:15px'> <p align='center'> Payment Status<br/> <span style='font-size:20px;color:green'>VERIFIED / VALID</span> </p> <p align='center'> <b>$is_ammount</b> via <b>$channel</b> </p> <p align='center'> We will follow up your booking soon.<br/> Invoice ID #<b>$invoice</b> </p> </div> <p align='center'> If you need help, please contact us. Thank you<br/>" .($hotline?" <span style='display:inline-block;background:#FAFAFA;padding:5px 10px;margin:5px;'> <b>Hotline</b><br/> <a style='color:#555555' href='tel:$hotline'>+$hotline</a> </span>":"")." " .($wa?" <span style='display:inline-block;background:#FAFAFA;padding:5px 10px;margin:5px;'> <b>Whatsapp</b><br/> <a style='color:#555555' href='https://api.whatsapp.com/send?phone=$wa&text=Hello, i need your help..' target='blank'>+$wa</a> </span>":"")." " .($email_cs?" <span style='display:inline-block;background:#FAFAFA;padding:5px 10px;margin:5px;'> <b>Email</b><br/> <a style='color:#555555' href='mailto:$email_cs'>$email_cs</a> </span>":"")." </p> </div> <p style='max-width:450px;text-align:center;margin:30px auto 10px;'> <a href='$url_web'><b>$nama_web</b></a> - $slogan_web </p> </body> </html> "; $subto_admin = "Pembayaran $is_dp diterima - $invoice"; $subto_cust_id = "Pembayaran Berhasil - $invoice"; $subto_cust_en = "Payment Successful - $invoice"; $headers = "From: $nama_web <$email_inbox> \r\n"; $headers .= "Reply-To: $nama_web <$email_inbox> \r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; // Sent mail to admin wp_mail($email_inbox, $subto_admin, $mailto_admin, $headers); if ($translate == 'id') { wp_mail($email_cust, $subto_cust_id, $mailto_cust_id, $headers); } else { wp_mail($email_cust, $subto_cust_en, $mailto_cust_en, $headers); } }