2019-09-05 17:17:51 +02:00
|
|
|
<div xmlns:stripe="http://www.w3.org/1999/xhtml">
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="modal-header">
|
|
|
|
<img ng-src="{{logoBlack.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="modal-logo"/>
|
2019-12-18 13:04:38 +01:00
|
|
|
<h1 translate>{{ 'app.shared.stripe.online_payment' }}</h1>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
|
|
|
|
|
|
|
|
<div class="panel panel-default bg-light m-n">
|
2020-06-10 11:58:42 +02:00
|
|
|
<form name="stripeForm" stripe:form cart-items="cartItems" on-payment-success="onPaymentSuccess" stripe-key="{{stripeKey}}" class="form-horizontal">
|
2016-03-23 18:39:41 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
|
2019-12-18 13:04:38 +01:00
|
|
|
<h3 class="m-t-xs" ng-if="walletAmount" ng-bind-html="'app.shared.wallet.you_have_amount_in_wallet' | translate:{ amount: numberFilter(walletAmount, 2), currency: currencySymbol }"></h3>
|
|
|
|
<p ng-if="walletAmount > 0 && amount !== 0" class="text-italic" ng-bind-html="'app.shared.stripe.credit_amount_for_pay_reservation' | translate:{ amount: numberFilter(amount, 2), currency: currencySymbol }"></p>
|
2016-07-07 15:57:06 +02:00
|
|
|
|
2019-09-04 17:20:18 +02:00
|
|
|
<div id="card-element"></div>
|
|
|
|
<div id="card-errors" role="alert"></div>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2016-07-19 16:24:50 +02:00
|
|
|
<div class="form-group" ng-class="{'has-error': stripeForm.acceptCondition.$dirty && stripeForm.acceptCondition.$invalid}" ng-show="cgv">
|
2016-09-15 18:22:52 +02:00
|
|
|
<div class="col-sm-12 text-sm checkbox-group">
|
|
|
|
<input type="checkbox" name="acceptCondition" id="acceptCondition" ng-model="acceptCondition" value="true" ng-required="cgv != null"/>
|
2019-12-18 13:04:38 +01:00
|
|
|
<label for="acceptCondition">{{ 'app.shared.stripe.i_have_read_and_accept_' | translate }}
|
|
|
|
<a href="{{cgv.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ 'app.shared.stripe._the_general_terms_and_conditions' }}</a>
|
|
|
|
</label>
|
2016-07-19 16:24:50 +02:00
|
|
|
</div>
|
|
|
|
<div ng-if="!cgv">
|
|
|
|
<input type="hidden" name="acceptCondition" ng-model="acceptCondition" value="true">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer no-padder">
|
2019-12-18 13:04:38 +01:00
|
|
|
<button type="submit" class="btn btn-valid btn-info btn-block p-l btn-lg text-u-c r-b text-base" ng-disabled="stripeForm.$invalid || attempting" translate translate-values="{AMOUNT:(amount | currency)}">{{ 'app.shared.stripe.confirm_payment_of_'}}</button>
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer text-center">
|
|
|
|
<i class="fa fa-lock fa-2x m-r-sm pos-rlt" style="top:7px; color:#9edd78;"></i>
|
2020-09-14 16:08:39 +02:00
|
|
|
<img src="../../images/powered_by_stripe.png" class="m-r-sm" />
|
|
|
|
<img src="../../images/mastercard.png" class="m-r-sm" />
|
|
|
|
<img src="../../images/visa.png" class="m-r-sm" />
|
2016-03-23 18:39:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|