JezK
Edit File: pay-confirm.php
<?php if ($oketheme ['email_inbox']) { // Data toko 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;'>Konfirmasi Pembayaran</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'>Konfirmasi 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'>Tanggal Transfer</td> <td valign='top'>: </td> <td valign='top'>$tgl_transfer</td> </tr> <tr> <td valign='top'>Rekening Tujuan</td> <td valign='top'>: </td> <td valign='top'>Bank $rek_tujuan</td> </tr> <tr> <td valign='top'>Jumlah Transfer</td> <td valign='top'>: </td> <td valign='top'>Rp $jmlh_transfer</td> </tr> <tr> <td valign='top'>Nama</td> <td valign='top'>: </td> <td valign='top'>$nama_cust</td> </tr> <tr> <td valign='top'>Email</td> <td valign='top'>: </td> <td valign='top'>$email_cust</td> </tr> <tr> <td valign='top'>Telpon/HP</td> <td valign='top'>: </td> <td valign='top'>$hp_cust</td> </tr>" .($pesan_cust?" <tr> <td valign='top'>Pesan</td> <td valign='top'>: </td> <td valign='top'>$pesan_cust</td> </tr>":"")." </table> <p align='center' style='margin:15px 0;background:#FAFAFA;padding:15px'> <b>Catatan untuk admin/staff:</b><br/> Periksa detail konfirmasi diatas dan lakukan perubahan status bookingan jika pembayaran telah berhasil diverifikasi. </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;'>Konfirmasi Pembayaran Terkirim</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_cust,</b><br/>formulir konfirmasi pembayaran Anda telah terkirim.<br>Kami akan melakukan pengecekan dan verifikasi pembayaran yang telah Anda lakukan.</p> <div style='margin:15px 0;background:#FAFAFA;padding:15px;text-align:center'> <p> Bookingan Anda akan segera kami proses apabila pembayaran Anda berhasil diverifikasi. Informasi lebih lanjut akan kami sampaikan melalui email atau SMS. </p> <p> Jika ada pertanyaan, silahkan mengirimkan email ke <strong>$email_cs</strong> atau hubungi kontak yang tertera pada website kami dengan mencantumkan invoice id bookingan: <strong>$invoice</strong>. </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 Confirmation Sent</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_cust,</b><br/>Your payment confirmation has been submitted.<br>We will check and verify the payment you have made.</p> <div style='margin:15px 0;background:#FAFAFA;padding:15px;text-align:center'> <p> Your order will be processed immediately if your payment is verified successfully. More information will be delivered via email or SMS. </p> <p> If you have any questions, please send an email to <strong>$email_cs</strong> or contact the contact listed on our website by listing the invoice id: <strong>$invoice</strong>. </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 = "Konfirmasi Pembayaran - $invoice"; $subto_cust_id = "Konfirmasi Pembayaran Terkirim - $invoice"; $subto_cust_en = "Payment Confirmation Sent - $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 mai 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); } }