Как подключить плагин оплаты к Online Hotel Booking System

warza

Создатель
Регистрация
29 Янв 2017
Сообщения
50
Реакции
12
Есть только забугор, яндекс кассу бы.
вообще как это работает на вордпресс? Может код править или есть универсальные плагины?
 
Файл выбора платежных систем в админке в плагине.
PHP:
<?php

if(isset($_POST['act_sbmt'])){

        include("includes/db.conn.php");

        include("includes/conf.class.php");

        include("includes/admin.class.php");

        $bsiAdminMain->payment_gateway_post();

        header("location:admin.php?page=Payment-Getway");

}

include("includes/conf.class.php");

include("includes/admin.class.php");

$payment_gateway_val=$bsiAdminMain->payment_gateway();

?>   

      <div id="container-inside">

      <span style="font-size:16px; font-weight:bold"><?php echo PAYMENT_GATEWAY_SETTING;?></span>

      <hr />

        <form action="<?php echo admin_url('admin.php?page=Payment-Getway&noheader=true'); ?>" method="post" id="form1">

          <table cellpadding="5" cellspacing="2" border="0">

          <thead>

          <tr><th align="left"><?php echo ENABLED;?></th><th align="left"><?php echo GATEWAY;?></th><th align="left"><?php echo PAYMENT_GATEWAY_TITLE;?></th><th align="left"><?php echo ACCOUNT_INFO;?></th></tr>

          <tr><th colspan="4"><hr /></th></tr>

          </thead>

          <tbody>

          

            <tr>

            <td><input type="checkbox" value="pp" name="pp"  id="pp" <?=($payment_gateway_val['pp_enabled']) ? 'checked="checked"' : ''; ?> /></td>

            <td><strong><?php echo PAYPAL;?>:</strong></td>

            <td><input type="text" name="pp_title" id="pp_title" value="<?=$payment_gateway_val['pp_gateway_name']?>"  class="required"/></td>

            <td><input type="text" name="paypal_id" id="paypal_id" class="required email" value="<?=$payment_gateway_val['pp_account']?>" size="40"/>

              <?php echo ENTER_YOUR_PAYPAL_EMAIL;?></td>

          </tr>

        

          <tr>

            <td><input type="checkbox" value="poa" name="poa" id="poa" <?=($payment_gateway_val['poa_enabled']) ? 'checked="checked"' : ''; ?> /></td>

            <td><strong><?php echo MANUAL;?>:</strong></td>

            <td><input type="text"  name="poa_title" id="poa_title" value="<?=$payment_gateway_val['poa_gateway_name']?>" class="required" /></td>

            <td></td>

          </tr>

          <tr>

            <td><input type="checkbox" value="cc" name="cc" id="cc" <?=($payment_gateway_val['cc_enabled']) ? 'checked="checked"' : ''; ?> /></td>

            <td><strong><?php echo CREDIT_CARD;?>:</strong></td>

            <td><input type="text"  name="cc_title" id="cc_title" value="<?=$payment_gateway_val['cc_gateway_name']?>" class="required" /></td>

            <td></td>

          </tr>
        
      
        <tr>
        <td><input type="checkbox" value="strip" name="strip" id="strip" <?php echo ($payment_gateway_val['strip_enabled']) ? 'checked="checked"' : ''; ?>/></td>
        <td><strong>Stripe:</strong></td>
        <td><input type="text" name="strip_title" id="strip_title" class="required" value="<?php echo $payment_gateway_val['strip_gateway_name'] ?>"  /></td>
        <td nowrap="nowrap">Secret Key:<input type="text" name="secret_key" id="secret_key" class="required" value="<?php echo $payment_gateway_val['secret_key'] ?>" size="12"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        Publishable Key:
        <input type="text" name="publishable_key" id="publishable_key" class="required" value="<?php echo $payment_gateway_val['publishable_key'] ?>" size="12"/>&nbsp;&nbsp;&nbsp;&nbsp;
        Save & charge CC: 
        <input type="checkbox" value="charge" name="charge" id="charge"  <?php echo ($payment_gateway_val['charge']) ? 'checked="checked"' : ''; ?>/>
        </td>
        </tr>
      
      
  

        

        

          <tr>

          

              <td colspan="2"></td>

              <td colspan="2"><input type="hidden" name="act_sbmt" value="1" /><input type="submit" value="<?php echo UPDATE;?>" style="background:#e5f9bb; cursor:pointer; cursor:hand;"/></td>

            </tr>

            </tbody>

          </table>

        </form>

      </div>

<script type="text/javascript">

    jQuery().ready(function() {

        jQuery("#form1").validate();

      

     });

        

</script>

Плийз хелп ми, ам фенки вери мач
 
Последнее редактирование:
а что за Online Hotel Booking System ? есть ссылкка ?
 
Назад
Сверху