2019-08-10 05:57:30 +02:00
|
|
|
<div class="mb-4 text-lg" *ngIf="showOptions && showMethods">
|
2018-06-29 04:27:32 +02:00
|
|
|
<div class="form-check form-check-inline mr-4">
|
2019-02-21 22:50:37 +01:00
|
|
|
<input class="form-check-input" type="radio" name="Method" id="method-card" [value]="paymentMethodType.Card"
|
|
|
|
[(ngModel)]="method" (change)="changeMethod()">
|
2018-06-29 04:27:32 +02:00
|
|
|
<label class="form-check-label" for="method-card">
|
2019-10-11 17:22:21 +02:00
|
|
|
<i class="fa fa-fw fa-credit-card" aria-hidden="true"></i> {{'creditCard' | i18n}}</label>
|
2018-06-29 04:27:32 +02:00
|
|
|
</div>
|
2018-07-16 23:17:07 +02:00
|
|
|
<div class="form-check form-check-inline mr-4" *ngIf="!hideBank">
|
2019-02-21 22:50:37 +01:00
|
|
|
<input class="form-check-input" type="radio" name="Method" id="method-bank"
|
|
|
|
[value]="paymentMethodType.BankAccount" [(ngModel)]="method" (change)="changeMethod()">
|
2018-07-16 23:17:07 +02:00
|
|
|
<label class="form-check-label" for="method-bank">
|
2019-10-11 17:22:21 +02:00
|
|
|
<i class="fa fa-fw fa-university" aria-hidden="true"></i> {{'bankAccount' | i18n}}</label>
|
2018-07-16 23:17:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-check form-check-inline" *ngIf="!hidePaypal">
|
2019-02-21 22:50:37 +01:00
|
|
|
<input class="form-check-input" type="radio" name="Method" id="method-paypal" [value]="paymentMethodType.PayPal"
|
|
|
|
[(ngModel)]="method" (change)="changeMethod()">
|
2018-06-29 04:27:32 +02:00
|
|
|
<label class="form-check-label" for="method-paypal">
|
2019-10-11 17:22:21 +02:00
|
|
|
<i class="fa fa-fw fa-paypal" aria-hidden="true"></i> PayPal</label>
|
2018-06-29 04:27:32 +02:00
|
|
|
</div>
|
2019-02-21 02:16:06 +01:00
|
|
|
<div class="form-check form-check-inline" *ngIf="!hideCredit">
|
2019-02-21 22:50:37 +01:00
|
|
|
<input class="form-check-input" type="radio" name="Method" id="method-credit" [value]="paymentMethodType.Credit"
|
|
|
|
[(ngModel)]="method" (change)="changeMethod()">
|
2019-02-21 02:16:06 +01:00
|
|
|
<label class="form-check-label" for="method-credit">
|
2019-10-11 17:22:21 +02:00
|
|
|
<i class="fa fa-fw fa-dollar" aria-hidden="true"></i> {{'accountCredit' | i18n}}</label>
|
2019-02-21 02:16:06 +01:00
|
|
|
</div>
|
2018-06-29 04:27:32 +02:00
|
|
|
</div>
|
2019-08-10 05:57:30 +02:00
|
|
|
<ng-container *ngIf="showMethods && method === paymentMethodType.Card">
|
2018-06-29 04:27:32 +02:00
|
|
|
<div class="row">
|
2019-02-19 05:40:04 +01:00
|
|
|
<div class="form-group col-4">
|
|
|
|
<label for="stripe-card-number-element">{{'number' | i18n}}</label>
|
2019-02-19 06:23:15 +01:00
|
|
|
<div id="stripe-card-number-element" class="form-control stripe-form-control"></div>
|
2018-06-29 04:27:32 +02:00
|
|
|
</div>
|
2019-02-19 05:40:04 +01:00
|
|
|
<div class="form-group col-8 d-flex align-items-end">
|
2019-02-21 22:50:37 +01:00
|
|
|
<img src="../../images/cards.png" alt="Visa, MasterCard, Discover, AmEx, JCB, Diners Club, UnionPay"
|
|
|
|
width="323" height="32">
|
2018-06-29 04:27:32 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-4">
|
2019-02-19 05:40:04 +01:00
|
|
|
<label for="stripe-card-expiry-element">{{'expiration' | i18n}}</label>
|
2019-02-19 06:23:15 +01:00
|
|
|
<div id="stripe-card-expiry-element" class="form-control stripe-form-control"></div>
|
2018-06-29 04:27:32 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-4">
|
2019-02-19 05:40:04 +01:00
|
|
|
<label for="stripe-card-cvc-element" class="d-flex">
|
2018-06-29 04:27:32 +02:00
|
|
|
{{'securityCode' | i18n}}
|
2019-02-21 22:50:37 +01:00
|
|
|
<a href="https://www.cvvnumber.com/cvv.html" tabindex="-1" target="_blank" rel="noopener noreferrer"
|
2019-10-11 16:35:24 +02:00
|
|
|
class="ml-auto" appA11yTitle="{{'learnMore' | i18n}}">
|
|
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
2018-06-29 04:27:32 +02:00
|
|
|
</a>
|
|
|
|
</label>
|
2019-02-19 06:23:15 +01:00
|
|
|
<div id="stripe-card-cvc-element" class="form-control stripe-form-control"></div>
|
2018-06-29 04:27:32 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
2019-08-10 05:57:30 +02:00
|
|
|
<ng-container *ngIf="showMethods && method === paymentMethodType.BankAccount">
|
2018-07-16 23:17:07 +02:00
|
|
|
<app-callout type="warning" title="{{'verifyBankAccount' | i18n}}">
|
|
|
|
{{'verifyBankAccountInitialDesc' | i18n}} {{'verifyBankAccountFailureWarning' | i18n}}
|
|
|
|
</app-callout>
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-6">
|
|
|
|
<label for="routing_number">{{'routingNumber' | i18n}}</label>
|
2019-02-21 22:50:37 +01:00
|
|
|
<input id="routing_number" class="form-control" type="text" name="routing_number"
|
|
|
|
[(ngModel)]="bank.routing_number" required appInputVerbatim>
|
2018-07-16 23:17:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-6">
|
|
|
|
<label for="account_number">{{'accountNumber' | i18n}}</label>
|
2019-02-21 22:50:37 +01:00
|
|
|
<input id="account_number" class="form-control" type="text" name="account_number"
|
|
|
|
[(ngModel)]="bank.account_number" required appInputVerbatim>
|
2018-07-16 23:17:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-6">
|
|
|
|
<label for="account_holder_name">{{'accountHolderName' | i18n}}</label>
|
2019-02-21 22:50:37 +01:00
|
|
|
<input id="account_holder_name" class="form-control" type="text" name="account_holder_name"
|
|
|
|
[(ngModel)]="bank.account_holder_name" required>
|
2018-07-16 23:17:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-6">
|
|
|
|
<label for="account_holder_type">{{'bankAccountType' | i18n}}</label>
|
2019-02-21 22:50:37 +01:00
|
|
|
<select id="account_holder_type" class="form-control" name="account_holder_type"
|
|
|
|
[(ngModel)]="bank.account_holder_type" required>
|
2018-07-16 23:17:07 +02:00
|
|
|
<option value="">-- {{'select' | i18n}} --</option>
|
|
|
|
<option value="company">{{'bankAccountTypeCompany' | i18n}}</option>
|
|
|
|
<option value="individual">{{'bankAccountTypeIndividual' | i18n}}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
2019-08-10 05:57:30 +02:00
|
|
|
<ng-container *ngIf="showMethods && method === paymentMethodType.PayPal">
|
2019-02-21 02:16:06 +01:00
|
|
|
<div class="mb-3">
|
|
|
|
<div id="bt-dropin-container" class="mb-1"></div>
|
|
|
|
<small class="text-muted">{{'paypalClickSubmit' | i18n}}</small>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
2019-08-10 05:57:30 +02:00
|
|
|
<ng-container *ngIf="showMethods && method === paymentMethodType.Credit">
|
2019-02-21 02:16:06 +01:00
|
|
|
<app-callout type="note">
|
|
|
|
{{'makeSureEnoughCredit' | i18n}}
|
|
|
|
</app-callout>
|
|
|
|
</ng-container>
|