mirror of
https://github.com/itflow-org/itflow
synced 2026-09-01 20:35:12 +00:00
Stripe ID creation/linking for guest flows (wip)
This commit is contained in:
@@ -61,15 +61,17 @@ if (!$stripe_public_key || !$stripe_secret_key) {
|
||||
<div class="col-md-6">
|
||||
|
||||
<?php if (!$stripe_customer_id) { ?>
|
||||
In order to set up automatic payments, you must create a customer record in Stripe.
|
||||
First, you must authorize Stripe to store your card details for the purpose of automatic payment.
|
||||
<br><br>
|
||||
In order to set up automatic payments, you must create a Stripe customer record.
|
||||
<br>
|
||||
By saving your card details, you grant consent for automatic payments.
|
||||
<small class="text-muted d-block mt-2">Stripe processes your information in accordance with its Privacy Policy and Terms.</small>
|
||||
<br>
|
||||
|
||||
<form action="post.php" method="POST">
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
|
||||
<div class="mb-3">
|
||||
<button type="submit" class="btn btn-success" name="create_stripe_customer"><strong><i class="fas fa-check me-2"></i>I grant consent for automatic payments</strong></button>
|
||||
<button type="submit" class="btn btn-success" name="create_stripe_customer"><strong><i class="fas fa-check me-2"></i>Continue</strong></button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -121,7 +123,8 @@ if (!$stripe_public_key || !$stripe_secret_key) {
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<b>Add a new payment method</b>
|
||||
<p>Adding a new payment method will authorize us to charge your card for future invoices automatically.</p><br><br>
|
||||
<p>If you save payment details, you grant consent for automatic payments.</p>
|
||||
<br><br>
|
||||
|
||||
<input type="hidden" id="stripe_publishable_key" value="<?= $stripe_public_key ?>">
|
||||
<script src="https://js.stripe.com/v3/"></script>
|
||||
|
||||
Reference in New Issue
Block a user