示例#1
0
                                </tr>

                                <tr>
                                    <td colspan="2">
                                        <a href="./index.php?route=DetailController/sessionExpired">CANCEL</a>
                                    </td>
                                </tr>

                        </tbody>

                        
                    </table>
                    <div class="row">
                        <div class="col-lg-12">
                            <?php 
echo \Project\Payment\Payment::stripeButton();
?>
                        </div>
                    </div>
                </div>
            </div>
             <div class="timer timer-pay"></div>
         </section>

    </main>
    <?php 
require_once "../Assets/html/footer.php";
?>
        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

    <!-- Include all compiled plugins (below), or include individual files as needed -->
示例#2
0
<?php

/**
 * Created by PhpStorm.
 * User: yi
 * Date: 22/03/16
 * Time: 1:14 AM
 */
include '../autoloader.php';
use Project\Payment\Payment;
// Start a session, there is no need to add this line if session is active.
\Project\Classes\Helper::startSession();
// Create a pay with stripe button on page.
// Pass in the amount needs to be paid.
Payment::stripeButton(20);
示例#3
0
    <script src="../../Assets/js/jquery.min.js" ></script>
    <script src="../../Assets/js/bootstrap.min.js" ></script>
    <script src="../../Assets/js/Food/food_payment.js"></script>
    <link href="../../Assets/css/bootstrap.min.css" rel="stylesheet" />
    </head>
<p style="font-size: large;font-family: Calibri;font-weight: 700;margin: 20px;">Total price is <span><?php 
echo $total;
?>
</span>. Do you want to pay?</p>
<?php 
include '../../autoloader.php';
\Project\Classes\Helper::startSession();
use Project\Payment\Payment;
$total = (string) ((double) $total * 100);
$_SESSION['grandPrice'] = $total;
// Create a pay with stripe button on page.
// Pass in the amount needs to be paid.
?>
<input type="hidden" value="<?php 
echo $id;
?>
" name="id">
<input type="hidden" value="<?php 
echo $phone;
?>
" name="phone">
<a href="index.php"><button class="btn btn-info" style="float: left;margin-right: 30px;margin-left:30px;">Back</button></a>
<a><?php 
echo Payment::stripeButton();
?>
</a>