2020-06-08 17:42:59 +02:00
|
|
|
<div class="panel panel-default m-t-md">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<span class="font-sbold" translate>{{ 'app.admin.invoices.payment.payment_settings' }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
|
|
|
<h3 class="m-l" translate>{{ 'app.admin.invoices.payment.online_payment' }}</h3>
|
|
|
|
<p class="alert alert-warning m-h-md" ng-bind-html="'app.admin.invoices.payment.online_payment_info_html' | translate"></p>
|
|
|
|
<boolean-setting name="online_payment_module"
|
|
|
|
settings="allSettings"
|
|
|
|
label="app.admin.invoices.payment.enable_online_payment"
|
|
|
|
classes="m-l"
|
2021-03-03 15:28:56 +01:00
|
|
|
on-before-save="selectPaymentGateway"
|
2020-10-26 16:38:17 +01:00
|
|
|
fa-icon="fa-font">
|
2020-06-08 17:42:59 +02:00
|
|
|
</boolean-setting>
|
2021-03-30 15:56:36 +02:00
|
|
|
<select-gateway-modal is-open="openSelectGatewayModal"
|
|
|
|
toggle-modal="toggleSelectGatewayModal"
|
|
|
|
current-user="currentUser"
|
|
|
|
on-success="onGatewayModalSuccess"
|
|
|
|
on-error="onGatewayModalError" />
|
2020-06-08 17:42:59 +02:00
|
|
|
</div>
|
2021-04-06 17:47:47 +02:00
|
|
|
<div class="row m-t" ng-show="allSettings.online_payment_module === 'true' && allSettings.payment_gateway === 'stripe'">
|
2020-06-09 13:09:31 +02:00
|
|
|
<h3 class="m-l" translate>{{ 'app.admin.invoices.payment.stripe_keys' }}</h3>
|
|
|
|
<div class="col-md-4 m-l">
|
|
|
|
<label for="stripe_public_key" class="control-label">{{ 'app.admin.invoices.payment.public_key' | translate }}</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-info"></i></span>
|
|
|
|
<input type="text"
|
|
|
|
class="form-control"
|
|
|
|
id="stripe_public_key"
|
|
|
|
ng-model="allSettings.stripe_public_key"
|
|
|
|
readonly>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 col-md-offset-1">
|
|
|
|
<label for="stripe_secret_key" class="control-label">{{ 'app.admin.invoices.payment.secret_key' | translate }}</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-key"></i></span>
|
|
|
|
<input type="password"
|
|
|
|
class="form-control"
|
|
|
|
id="stripe_secret_key"
|
|
|
|
ng-model="stripeSecretKey"
|
|
|
|
readonly>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-1">
|
2021-04-07 11:36:04 +02:00
|
|
|
<button class="btn btn-default m-t-lg" ng-click="selectPaymentGateway(allSettings.online_payment_module)" translate>{{ 'app.admin.invoices.payment.edit_keys' }}</button>
|
2020-06-09 13:09:31 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-06 17:47:47 +02:00
|
|
|
<div class="row m-t" ng-show="allSettings.online_payment_module === 'true' && allSettings.payment_gateway === 'stripe'">
|
2020-06-10 16:37:11 +02:00
|
|
|
<h3 class="m-l" translate>{{ 'app.admin.invoices.payment.currency' }}</h3>
|
|
|
|
<p class="alert alert-warning m-h-md" ng-bind-html="'app.admin.invoices.payment.currency_info_html' | translate"></p>
|
|
|
|
<p class="alert alert-danger m-h-md" ng-bind-html="'app.admin.invoices.payment.currency_alert_html' | translate"></p>
|
|
|
|
<div class="col-md-4 m-l">
|
|
|
|
<text-setting name="stripe_currency"
|
|
|
|
settings="allSettings"
|
|
|
|
label="app.admin.invoices.payment.stripe_currency"
|
|
|
|
fa-icon="fa-money"
|
|
|
|
placeholder="XXX"
|
|
|
|
required="true"
|
|
|
|
min-length="3"
|
|
|
|
max-length="3"
|
|
|
|
read-only="onlinePaymentStatus">
|
|
|
|
</text-setting>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-18 15:56:22 +02:00
|
|
|
<div class="row m-t" ng-if="allSettings.online_payment_module === 'true' && allSettings.payment_gateway === 'payzen'">
|
2021-04-07 16:21:12 +02:00
|
|
|
<payzen-settings on-edit-keys="selectPaymentGateway" on-currency-update-success="alertPayZenCurrencyUpdated" />
|
2021-04-06 17:47:47 +02:00
|
|
|
</div>
|
2020-06-08 17:42:59 +02:00
|
|
|
</div>
|
|
|
|
</div>
|