PHP Classes

File: templates/forms/stripe.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Link2Payment   templates/forms/stripe.php   Download  
File: templates/forms/stripe.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Link2Payment
Application to generate links for people to pay
Author: By
Last change:
Date: 1 year ago
Size: 821 bytes
 

Contents

Class file image Download
<?php namespace PH7App; ?>

<h3 class="center">
    <?= escape($item_name) ?> - <?= escape($business_name) ?>
</h3>

<div class="center">
    <?php $form = new \AdamWathan\Form\FormBuilder; ?>
<?= $form->open()->action(site_url('stripe-checkout')) ?>
<?= $form->hidden('hash')->value($hash) ?>

    <script
        src="https://checkout.stripe.com/checkout.js" class="stripe-button"
        data-key="<?= escape($publishable_key) ?>"
        data-name="<?= escape($business_name) ?>"
        data-description="<?= escape($item_name) ?>"
        data-amount="<?= escape($amount) ?>"
        data-currency="<?= escape($currency) ?>"
        data-allow-remember-me="true"
        <?php if ($is_bitcoin): ?>
data-bitcoin="true"
        <?php endif ?>
>
    </script>

    <?= $form->close() ?>
</div>