{"id":181,"date":"2020-05-07T07:43:23","date_gmt":"2020-05-07T07:43:23","guid":{"rendered":"https:\/\/wp.usssinc.net\/?page_id=181"},"modified":"2021-01-09T21:11:47","modified_gmt":"2021-01-09T21:11:47","slug":"checkout","status":"publish","type":"page","link":"https:\/\/usssinc.net\/por\/other\/checkout\/","title":{"rendered":"Payment Checkout"},"content":{"rendered":"<?php \/* Template Name: Other Checkout Page SP *\/ ?>\r\n\r\n<?php get_header(''); ?>\r\n<section id=\"banner\" class=\"banner-bottom\">\r\n    <div class=\"banner-slide\">\r\n      <div class=\"banner-slide--item\">\r\n        <figure class=\"banner-cover\" style=\"background-image: url('<?php echo get_template_directory_uri(); ?>\/images\/banner_bottom.png&#8217;);&#8221;>\r\n            <div class=\"banner-info\">\r\n              <h2 class=\"banner-title\">\r\n              Pagos\r\n              <\/h2>\r\n            <\/div>\r\n        <\/figure>\r\n\r\n      <\/div>\r\n    <\/div>\r\n  <\/section>\r\n\r\n<div id=\"contents-wrap\"> <!-- #contents-wrap -->\r\n  <div id=\"main-contents\" class=\"page-paycomplete\"> <!-- #main-contents -->\r\n\r\n  <span class=\"paycomplete-title\">Haga clic en Pagar para diligenciar sus datos de pago.<\/span>\r\n  <span class=\"paycomplete-subtitle-two\">Ingrese informaci\u00f3n de la tarjeta de cr\u00e9dito<\/span>\r\n\r\n  <?php\r\n  if ($_SERVER['REQUEST_METHOD'] == 'POST' &#038;&#038; !empty($_POST)) {\r\n    \r\n    function died($error) {\r\n      \/\/ your error code can go here\r\n      echo \"We are very sorry, but there were error(s) found with the form you submitted. \";\r\n      echo \"These errors appear below.<br \/><br \/>&#8220;;\r\n      echo $error.&#8221;<br \/><br \/>&#8220;;\r\n      echo &#8220;Please go back and fix these errors.<br \/><br \/>&#8220;;\r\n      die();\r\n    }\r\n\r\n    \/\/ validation expected data exists\r\n    if(!isset($_POST[&#8216;fname&#8217;]) ||\r\n        !isset($_POST[&#8216;lname&#8217;]) ||\r\n        !isset($_POST[&#8217;email&#8217;]) ||\r\n        !isset($_POST[&#8216;total&#8217;])\r\n      ) {\r\n        died(&#8216;We are sorry, but there appears to be a problem with the form you submitted.&#8217;);       \r\n    }\r\n\r\n    \r\n    $fname = $_POST[&#8216;fname&#8217;];\r\n    $lname = $_POST[&#8216;lname&#8217;];\r\n    $bmonth = $_POST[&#8216;bmonth&#8217;];\r\n    $bdate = $_POST[&#8216;bdate&#8217;];\r\n    $byear = $_POST[&#8216;byear&#8217;];\r\n    $email = $_POST[&#8217;email&#8217;];\r\n    $total = $_POST[&#8216;total&#8217;];\r\n    $reto = $email;\r\n    $from_name = &#8216;US Support Services Inc.&#8217;;\r\n    $Sendername = $name;\r\n\r\n    mb_language(&#8216;Japanese&#8217;);\r\n    mb_internal_encoding(&#8216;UTF-8&#8217;);\r\n\r\n    \/\/ Content Mail\r\n\r\n$to = $email;\r\n$to_admin = &#8220;odysseus.ambut@gmail.com&#8221;;\r\n\r\n$title = &#8220;RE: Thank you for contacting U.S. Support Services Inc.&#8221;;\r\n$msg = &#8220;Dear &#8221; . $name . &#8220;\\r\\n\\r\\n&#8221;; \r\n$msg.= &#8220;Thank you so much for reaching out to us! \\r\\n&#8221;;\r\n$msg.= &#8220;We will contact you back within 2 bussines days\\r\\n&#8221;;\r\n$msg.= &#8220;Please download our brochure from the link below:\\r\\n\\r\\n&#8221;;\r\n$msg.= &#8220;\u25a0 U.S. Support Services Brochure:\\r\\n\\r\\n&#8221;;\r\n$msg.= &#8220;https:\/\/drive.google.com\/drive\/folders\/1pDMsOOfAf2Y3qTgiSxgDhyNS9U-MTWP6\\r\\n\\r\\n&#8221;;\r\n$msg.= &#8220;\u25a0 Price Chart:\\r\\n\\r\\n&#8221;;\r\n$msg.= &#8220;https:\/\/drive.google.com\/drive\/folders\/1dTh7T2wtqHKrGZ55Tx_1esneNG6nLokI\\r\\n\\r\\n&#8221;;\r\n$msg.= &#8220;Please contact us anytime if you have further questions about our Homestay, Residences, ESL programs, Dance classes, or anything else.\\r\\n&#8221;;\r\n$msg.= &#8220;It&#8217;s hard to find a place to stay in America. Please contact us anytime! We will be able to assist you over the phone as well.\\r\\n\\r\\n&#8221;;\r\n$msg.= &#8220;USSS Office\\r\\n&#8221;;\r\n$msg.= &#8220;10880 Wilshire Blvd., Suite 122\\r\\n&#8221;;\r\n$msg.= &#8220;Los Angeles, CA 90024\\r\\n&#8221;;\r\n$msg.= &#8220;TEL: 424-253-3169\\r\\n&#8221;;\r\n$msg.= &#8220;E-mail: info@usssinc.net\\r\\n&#8221;;\r\n$msg.= &#8220;Office hours: Monday through Friday 10:00 \u2013 19:00\\r\\n&#8221;;\r\n\r\n\/\/ 2nd Email to the admins\r\n\r\n$title2 = &#8220;Pay Information [English]&#8221;;\r\n$msg2 = &#8220;Pay Information [English]\\r\\n\\r\\n&#8221;;\r\n$msg2.= &#8220;First Name: &#8221; . $fname . &#8220;\\r\\n&#8221;;\r\n$msg2.= &#8220;Last Name: &#8221; . $lname . &#8220;\\r\\n&#8221;;\r\n$msg2.= &#8220;Birth Month: &#8221; . $bmonth . &#8220;\\r\\n&#8221;;\r\n$msg2.= &#8220;Birth Date: &#8220;. $bdate . &#8220;\\r\\n&#8221;;\r\n$msg2.= &#8220;Birth Year: &#8221; . $byear . &#8220;\\r\\n&#8221;;\r\n$msg2.= &#8220;Email: &#8221; . $email . &#8220;\\r\\n&#8221;;\r\n$msg2.= &#8220;Total: &#8221; . $total . &#8220;\\r\\n&#8221;;\r\n$msg2.= &#8220;&#8211;\\r\\n&#8221;;\r\n$msg2.= &#8220;This e-mail was sent from pay form on US Support Services Inc (https:\/\/usssinc.net\/other)\\r\\n&#8221;;\r\n$msgad1 = &#8220;U.S. Support Services Inc.\\r\\n&#8221;;\r\n    $admin_msg = $msgad1.$msg2;\r\n    $msguser1 = &#8220;Dear &#8220;.$name.&#8221;,\r\n\\r\\n&#8221;;\r\n    $msguser2 = &#8220;U.S. Support Services Inc. | https:\/\/usssinc.net\/&#8221;;\r\n    $retrun_msg = $msg.$msguser2;\r\n    \/\/include_once &#8220;phpmailer\/class.phpmailer.php&#8221;;\r\n    \/\/include_once &#8220;phpmailer\/class.smtp.php&#8221;;\r\n        $mail = new PHPMailer(true);\r\n        $mail->CharSet= &#8216;UTF-8&#8217;;\r\n\r\n        \/\/Enable SMTP debugging. \r\n        \/\/$mail->SMTPDebug = 3;                               \r\n        \/\/Set PHPMailer to use SMTP.\r\n        $mail->isSMTP();            \r\n        \/\/Set SMTP host name                          \r\n        $mail->Host = &#8220;smtp.gmail.com&#8221;;\r\n        \/\/Set this to true if SMTP host requires authentication to send email\r\n        $mail->SMTPAuth = true;                          \r\n        \/\/Provide username and password     \r\n        $mail->Username = &#8220;info@usssinc.net&#8221;;                 \r\n        $mail->Password = &#8220;Wil#10880shire&#8221;;                           \r\n        \/\/If SMTP requires TLS encryption then set it\r\n        $mail->SMTPSecure = &#8220;tls&#8221;;                           \r\n        \/\/Set TCP port to connect to \r\n        $mail->Port = 587; \r\n\r\n\r\n        $mail->setFrom(&#8216;info@usssinc.net&#8217;, &#8216;U.S. Support Services Inc.&#8217;);\r\n        $mail->addAddress($email, $name);\r\n        $mail->Subject = $title;\r\n        $mail->Body = $retrun_msg;\r\n\r\n        if(!$mail->send()) \r\n        {\r\n            echo &#8220;Mailer Error: &#8221; . $mail->ErrorInfo;\r\n        } \r\n        else \r\n        {\r\n            \/\/ echo &#8220;Message has been sent successfully&#8221;;\r\n        }\r\n\r\n        $mail->ClearAddresses();\r\n        $mail->addAddress(&#8216;odysseus.ambut@gmail.com&#8217;, &#8216;Test&#8217;);\r\n        \/\/ $mail->addAddress(&#8216;info@mliesl.edu&#8217;, &#8216;Mentor Language Institute&#8217;);\r\n        \/\/ $mail->AddCC(&#8216;yohei@los-info.com&#8217;);\r\n        \/\/ $mail->AddCC(&#8216;info@school-alliance.com&#8217;);\r\n        $mail->AddCC(&#8216;info@usssinc.net&#8217;);\r\n        $mail->AddCC(&#8216;sean@mliesl.edu&#8217;); \r\n        $mail->AddCC(&#8216;ody@mliesl.edu&#8217;);\r\n        \/\/ $mail->AddCC(&#8216;info@mliesl.edu&#8217;);\r\n        \/\/ $mail->AddCC(&#8216;shiimo0925@gmail.com&#8217;);\r\n        $mail->Subject = $title2;\r\n        $mail->Body = $admin_msg;\r\n\r\n        if(!$mail->send()) \r\n        {\r\n            echo &#8220;Mailer Error: &#8221; . $mail->ErrorInfo;\r\n        } \r\n        else \r\n        {   \r\n           \/\/ header(&#8220;Location: https:\/\/usssinc.net\/wp-content\/themes\/usss\/en\/calculation\/thanks.php&#8221;);\r\n        }\r\n    \/\/ $mailMessage = &#8216;\r\n    \/\/ \u3010 \u304a\u540d\u524d \u3011 : &#8216; . $lname . &#8216; &#8216; . $fname . &#8216;\r\n    \/\/ \u3010 \u3054\u751f\u5e74\u6708\u65e5 \u3011 : &#8216; . $bmonth . &#8216;\/&#8217; .$bdate. &#8216;\/&#8217; .$byear . &#8216;\r\n    \/\/ \u3010 Email \u3011 : &#8216; . $email . &#8216;\r\n    \/\/ \u3010 \u5408\u8a08\u91d1\u984d \u3011 : &#8216; . $total . &#8216;\r\n    \/\/ &#8216;;\r\n\r\n    \/\/ $to_email = $email;\r\n    \/\/ $subject = &#8216;\u304a\u652f\u6255\u3044&#8217;;\r\n    \/\/ $message = $mailMessage;\r\n    \/\/ $headers = &#8216;From: info@usssinc.net&#8217;;\r\n    \/\/ mail($to_email,$subject,$message,$headers);\r\n\r\n\r\n    \/\/ $to_email = &#8216;info@usssinc.net&#8217;;\r\n    \/\/ $subject = &#8216;\u304a\u652f\u6255\u3044&#8217;;\r\n    \/\/ $message = $mailMessage;\r\n    \/\/ $headers = &#8216;From: &#8216;. $email . &#8221;;\r\n    \/\/ mail($to_email,$subject,$message,$headers);\r\n    \r\n    \r\n\r\n    \/\/ $error_message = &#8220;&#8221;;\r\n    \/\/ $email_exp = &#8216;\/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}$\/&#8217;;\r\n  ?>\r\n\r\n  <section class=\"paycomplete\">\r\n    <div class=\"wrapper\">\r\n      <div class=\"paycomplete-contents\">\r\n\r\n      <div class=\"paycomplete-table-wrapper\">\r\n        <table class=\"paycomplete-table\">\r\n          <tr>\r\n            <td>\r\n              <p>Nombre(s)<\/p>\r\n            <\/td>\r\n            <td>\r\n              <div class=\"name-wrapper\">\r\n                <span class=\"fname\">Nombre(s):<\/span>\r\n                <p><?php echo $fname; ?><\/p>\r\n              <\/div>\r\n              <div class=\"name-wrapper\">\r\n                <span class=\"lname\">Apellido(s):<\/span>\r\n                <p><?php echo $lname; ?><\/p>\r\n              <\/div>\r\n            <\/td>\r\n          <\/tr>\r\n          <tr>\r\n            <td>\r\n              <p>Fecha de Nacimiento<\/p>\r\n            <\/td>\r\n            <td>\r\n              <p><?php echo $byear.'Year'.$bmonth.'Month'.$bdate.'Day'; ?><\/p>\r\n            <\/td>\r\n          <\/tr>\r\n          <tr>\r\n            <td>\r\n              <p>Correo electr\u00f3nico<\/p>\r\n            <\/td>\r\n            <td>\r\n              <p><?php echo $email; ?><\/p>\r\n            <\/td>\r\n          <\/tr>\r\n        <\/table>\r\n\r\n        <div class=\"payment-details\">\r\n          <div class=\"left\">\r\n            <p>Detalles de pago<\/p>\r\n          <\/div>\r\n          <div class=\"right\">\r\n            <table class=\"fees\">\r\n              <tr>\r\n                <td>Total<\/td>\r\n                <td>\uff04<?php echo $total; ?><\/td>\r\n              <\/tr>\r\n            <\/table>\r\n            <!--<span class=\"total\">\u5408\u8a08\u91d1\u984d<\/span>\r\n            <p class=\"total-amount\">\uff041345<\/p>-->\r\n          <\/div>\r\n        <\/div>\r\n      <\/div>\r\n      \r\n      <?php echo do_shortcode('[accept_stripe_payment name=\"Make a payment\" price=\"'. $total .'\" customer_email=\"'. $email .'\" button_text=\"Pay\" customer_name=\"'. $lname . ' ' .$fname.'\" thankyou_page_url=\"https:\/\/usssinc.net\/other\/thanks\/\"]'); ?>\r\n      \r\n      <a href=\"<?php echo esc_url( home_url( '\/' ) ); ?>&#8221; class=&#8221;backtop-button&#8221;>Volver a Inicio<\/a>\r\n\r\n      <\/div>\r\n    <\/div>\r\n  <\/section>\r\n\r\n  <?php\r\n  }\r\n  ?>\r\n\r\n<?php get_sidebar(); ?>\r\n\r\n\r\n  <\/div> <!-- \/\/ #main-contents -->\r\n\r\n  <?php include 'sidebar.php' ?>\r\n\r\n<\/div> <!-- \/\/ #contents-wrap -->\r\n\r\n  <section id=\"breadcrumbs\">\r\n    <div class=\"wrapper\">\r\n      <div class=\"breadcrumbs-contents\">\r\n      <a href=\"<?php echo esc_url( home_url( '\/' ) ); ?>&#8220;>Inicio<\/a>\r\n      <a href=\"<?php echo esc_url( home_url( '\/' ) ); ?>other&#8221; class=&#8221;active&#8221;>Pagar<\/a>\r\n      <\/div>\r\n    <\/div>\r\n  <\/section>\r\n\r\n  <?php get_footer('bottom'); ?>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":164,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"page-other-checkout_por.php","meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Payment Checkout - U.S. Support Service Inc<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/usssinc.net\/por\/other\/checkout\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Payment Checkout - U.S. Support Service Inc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/usssinc.net\/por\/other\/checkout\/\" \/>\n<meta property=\"og:site_name\" content=\"U.S. Support Service Inc\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-09T21:11:47+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/usssinc.net\/por\/other\/checkout\/\",\"url\":\"https:\/\/usssinc.net\/por\/other\/checkout\/\",\"name\":\"Payment Checkout - U.S. Support Service Inc\",\"isPartOf\":{\"@id\":\"https:\/\/usssinc.net\/por\/#website\"},\"datePublished\":\"2020-05-07T07:43:23+00:00\",\"dateModified\":\"2021-01-09T21:11:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/usssinc.net\/por\/other\/checkout\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/usssinc.net\/por\/other\/checkout\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/usssinc.net\/por\/other\/checkout\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/usssinc.net\/por\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pay\",\"item\":\"https:\/\/usssinc.net\/por\/other\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Payment Checkout\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/usssinc.net\/por\/#website\",\"url\":\"https:\/\/usssinc.net\/por\/\",\"name\":\"U.S. Support Service Inc\",\"description\":\"Just another USSS Inc Sites site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/usssinc.net\/por\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Payment Checkout - U.S. Support Service Inc","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/usssinc.net\/por\/other\/checkout\/","og_locale":"en_US","og_type":"article","og_title":"Payment Checkout - U.S. Support Service Inc","og_url":"https:\/\/usssinc.net\/por\/other\/checkout\/","og_site_name":"U.S. Support Service Inc","article_modified_time":"2021-01-09T21:11:47+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/usssinc.net\/por\/other\/checkout\/","url":"https:\/\/usssinc.net\/por\/other\/checkout\/","name":"Payment Checkout - U.S. Support Service Inc","isPartOf":{"@id":"https:\/\/usssinc.net\/por\/#website"},"datePublished":"2020-05-07T07:43:23+00:00","dateModified":"2021-01-09T21:11:47+00:00","breadcrumb":{"@id":"https:\/\/usssinc.net\/por\/other\/checkout\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/usssinc.net\/por\/other\/checkout\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/usssinc.net\/por\/other\/checkout\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/usssinc.net\/por\/"},{"@type":"ListItem","position":2,"name":"Pay","item":"https:\/\/usssinc.net\/por\/other\/"},{"@type":"ListItem","position":3,"name":"Payment Checkout"}]},{"@type":"WebSite","@id":"https:\/\/usssinc.net\/por\/#website","url":"https:\/\/usssinc.net\/por\/","name":"U.S. Support Service Inc","description":"Just another USSS Inc Sites site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/usssinc.net\/por\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/pages\/181"}],"collection":[{"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":1,"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/pages\/181\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/pages\/181\/revisions\/345"}],"up":[{"embeddable":true,"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/pages\/164"}],"wp:attachment":[{"href":"https:\/\/usssinc.net\/por\/wp-json\/wp\/v2\/media?parent=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}