mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
Add cancelUrl payment link param (#195)
This commit is contained in:
parent
aeefdc1d2e
commit
b4d34e5e36
@ -26,6 +26,11 @@
|
||||
<input formControlName="redirectUrl" matInput type="url" />
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>{{ c('form.cancelUrl') }}</mat-label>
|
||||
<input formControlName="cancelUrl" matInput type="url" />
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>{{ c('form.locale') }}</mat-label>
|
||||
<mat-select formControlName="locale">
|
||||
|
@ -30,6 +30,7 @@ export class CreatePaymentLinkFormComponent extends FormGroupSuperclass<
|
||||
description: '',
|
||||
email: ['', Validators.email],
|
||||
redirectUrl: '',
|
||||
cancelUrl: '',
|
||||
locale: null,
|
||||
paymentFlowHold: false,
|
||||
onHoldExpiration: HoldExpiration.Cancel,
|
||||
@ -68,6 +69,7 @@ export class CreatePaymentLinkFormComponent extends FormGroupSuperclass<
|
||||
description: value.description,
|
||||
email: value.email,
|
||||
redirectUrl: value.redirectUrl,
|
||||
cancelUrl: value.cancelUrl,
|
||||
locale: value.locale,
|
||||
paymentFlow,
|
||||
};
|
||||
|
@ -5,6 +5,7 @@ export type Controls = {
|
||||
description: string;
|
||||
email: string;
|
||||
redirectUrl: string;
|
||||
cancelUrl: string;
|
||||
locale: null;
|
||||
paymentFlowHold: false;
|
||||
onHoldExpiration: HoldExpiration.Cancel;
|
||||
|
@ -9,6 +9,7 @@ export interface PaymentLinkParams {
|
||||
description?: string;
|
||||
email?: string;
|
||||
redirectUrl?: string;
|
||||
cancelUrl?: string;
|
||||
locale?: string;
|
||||
paymentFlow?: PaymentFlow;
|
||||
}
|
||||
|
@ -93,6 +93,7 @@
|
||||
"link": "Payment link",
|
||||
"name": "Name (optional)",
|
||||
"redirectUrl": "Redirect URL after successful payment completion (optional)",
|
||||
"cancelUrl": "Checkout will redirect to this page if the payer clicks the back button (optional)",
|
||||
"locale": "Localization (optional)",
|
||||
"paymentFlowHold": "Preliminarily hold the amount of payment from the payer",
|
||||
"paymentFlowHoldPolicy": "After the retention period"
|
||||
|
@ -93,6 +93,7 @@
|
||||
"link": "Ссылка на оплату",
|
||||
"name": "Наименование (опционально)",
|
||||
"redirectUrl": "Redirect URL после успешного завершения платежа (опционально)",
|
||||
"cancelUrl": "Checkout перенаправит на эту страницу, если плательщик нажмет кнопку назад (опционально)",
|
||||
"locale": "Локализация (опционально)",
|
||||
"paymentFlowHold": "Предварительно заблокировать сумму платежа у покупателя",
|
||||
"paymentFlowHoldPolicy": "По истечении срока удержания"
|
||||
|
Loading…
Reference in New Issue
Block a user