Add cancelUrl payment link param (#195)
Some checks are pending
Main / Build (push) Waiting to run
Main / Notify (push) Blocked by required conditions

This commit is contained in:
Ildar Galeev 2024-10-17 20:56:23 +07:00 committed by GitHub
parent aeefdc1d2e
commit b4d34e5e36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 11 additions and 0 deletions

View File

@ -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">

View File

@ -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,
};

View File

@ -5,6 +5,7 @@ export type Controls = {
description: string;
email: string;
redirectUrl: string;
cancelUrl: string;
locale: null;
paymentFlowHold: false;
onHoldExpiration: HoldExpiration.Cancel;

View File

@ -9,6 +9,7 @@ export interface PaymentLinkParams {
description?: string;
email?: string;
redirectUrl?: string;
cancelUrl?: string;
locale?: string;
paymentFlow?: PaymentFlow;
}

View File

@ -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"

View File

@ -93,6 +93,7 @@
"link": "Ссылка на оплату",
"name": "Наименование (опционально)",
"redirectUrl": "Redirect URL после успешного завершения платежа (опционально)",
"cancelUrl": "Checkout перенаправит на эту страницу, если плательщик нажмет кнопку назад (опционально)",
"locale": "Локализация (опционально)",
"paymentFlowHold": "Предварительно заблокировать сумму платежа у покупателя",
"paymentFlowHoldPolicy": "По истечении срока удержания"