Guest User

Untitled

a guest
Sep 14th, 2019
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.73 KB | None | 0 0
  1. <div class="section--main-slider">
  2.   <div class="slide empty" style="background-image: url(<?= THEME_PATH ?>/static/images/slider/[email protected]);">
  3.   </div>
  4. </div>
  5. <div class="section--profile-content landing-block">
  6.   <div class="container">
  7.     <div class="row justify-content-center">
  8.       <div class="col-12 col-md-6 d-flex justify-content-center">
  9.           <div class="row">
  10.         <?php if($pm_maintaince_mode==true){ ?>
  11.         <h3 class="text-center red">
  12.           <?php esc_html_e( 'We are currently doing maintenance to our payment system. Please come back later.', 'pickatale-membership' ); ?>
  13.           </h2>
  14.         <?php }else{ ?>
  15.             <style type="text/css">
  16.                 #container-3ds-authentication{
  17.                     margin-top:40px;
  18.                 }
  19.                 .three-d-secure-auth-container {
  20.                     display: none;
  21.                     height: 400px;
  22.                     width: 100%;
  23.                 }
  24.                 .three-d-secure-auth-container div {
  25.                     height: 100%;
  26.                 }
  27.                 .three-d-secure-submitting-messagge {
  28.                     display: none;
  29.                 }
  30.                 .errors {
  31.                     background: #f81b4e;
  32.                     border-radius: 5px;
  33.                     color: #fff;
  34.                     line-height: 1.2;
  35.                     margin-bottom: 10px;
  36.                     padding: 15px;
  37.                 }
  38.             </style>
  39.             <p class="col-12">Step 2 of 2</p>
  40.             <h3 class="red text-center col-12 info">Your bank requires authentication using 3D Secure.</h3>
  41.             <section class="col-12">
  42.             <form id="pm-recurly-form-3ds" method="post" action="<?php echo esc_url( get_permalink( get_queried_object_id() ) ); ?>subscription/pay/">
  43.                 <div id="container-3ds-authentication" class="three-d-secure-auth-container col-12 " ></div>
  44.                 <div class="three-d-secure-submitting-messagge col-12">
  45.                 Authenticating your payment method...
  46.                 </div>
  47.                 <?php wp_nonce_field( 'pm-register-subscription-nonce' ); ?>
  48.                 <input type="hidden" name="pm-form-request" value="register-subscription" />
  49.                 <input type="hidden" name="pm-price-plan" value="<?php echo esc_attr( $pm_price_plan ); ?>">
  50.                 <input type="hidden" name="three-d-secure-token" id="three-d-secure-token" value="">
  51.                 <input type="hidden" name="recurly-token" id="recurly-token" value="">
  52.             </form>
  53.             </section>
  54.             <section id="errors" class="errors col-12 text-center" style="margin-top:30px;"></section>
  55.       <?php } ?>
  56.             </div>
  57.     </div>
  58.   </div>
  59. </div>
  60. </div>
Advertisement
Add Comment
Please, Sign In to add comment