42 lines
1.8 KiB
PHP
42 lines
1.8 KiB
PHP
|
<spark-subscribe-braintree :user="user" :team="team"
|
||
|
:plans="plans" :billable-type="billableType" inline-template>
|
||
|
|
||
|
<div>
|
||
|
<!-- Common Subscribe Form Contents -->
|
||
|
@include('spark::settings.subscription.subscribe-common')
|
||
|
|
||
|
<!-- Billing Information -->
|
||
|
<div class="panel panel-default" v-show="selectedPlan">
|
||
|
<div class="panel-heading"><i class="fa fa-btn fa-credit-card"></i>Billing Information</div>
|
||
|
|
||
|
<div class="panel-body">
|
||
|
<!-- Generic 500 Level Error Message / Stripe Threw Exception -->
|
||
|
<div class="alert alert-danger" v-if="form.errors.has('form')">
|
||
|
We had trouble validating your card. It's possible your card provider is preventing
|
||
|
us from charging the card. Please contact your card provider or customer support.
|
||
|
</div>
|
||
|
|
||
|
<form class="form-horizontal" role="form">
|
||
|
<!-- Braintree Container -->
|
||
|
<div id="braintree-subscribe-container" class="m-b-md"></div>
|
||
|
|
||
|
<!-- Subscribe Button -->
|
||
|
<div class="form-group m-b-none p-b-none">
|
||
|
<div class="col-sm-6">
|
||
|
<button type="submit" class="btn btn-primary" :disabled="form.busy">
|
||
|
<span v-if="form.busy">
|
||
|
<i class="fa fa-btn fa-spinner fa-spin"></i>Subscribing
|
||
|
</span>
|
||
|
|
||
|
<span v-else>
|
||
|
Subscribe
|
||
|
</span>
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</spark-subscribe-braintree>
|