certificate row added to payment modal

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-08 11:14:22 +05:00
parent c61182adcf
commit f18d35c29b
6 changed files with 18 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ export type PaymentStatus = 'idle' | 'loading' | 'success' | 'error';
export interface PriceCalculate { export interface PriceCalculate {
service_fee: number; service_fee: number;
discount?: number; discount?: number;
certificate?: number;
total_price: number; total_price: number;
} }

View File

@@ -62,12 +62,24 @@ export const PriceSummary = ({
currency="UZS" currency="UZS"
/> />
{priceCalculate.discount && ( {priceCalculate.discount ? (
<PriceRow <PriceRow
label={t('discountLabel')} label={t('discountLabel')}
amount={priceCalculate.discount} amount={priceCalculate.discount}
currency="UZS" currency="UZS"
/> />
) : (
''
)}
{priceCalculate.certificate ? (
<PriceRow
label={t('sertificateLabel')}
amount={priceCalculate.certificate}
currency="UZS"
/>
) : (
''
)} )}
<PriceRow <PriceRow

View File

@@ -232,6 +232,7 @@
"security": "Secured by Payme · SSL encrypted", "security": "Secured by Payme · SSL encrypted",
"serviceFee": "Service fee", "serviceFee": "Service fee",
"discountLabel": "Discount", "discountLabel": "Discount",
"sertificateLabel":"Certificate",
"total": "Total", "total": "Total",
"paymentRequired": "Payment not completed", "paymentRequired": "Payment not completed",
"connecting": "Connecting to Payme…", "connecting": "Connecting to Payme…",

View File

@@ -231,6 +231,7 @@
"security": "Защищено Payme · SSL шифрование", "security": "Защищено Payme · SSL шифрование",
"serviceFee": "Стоимость услуги", "serviceFee": "Стоимость услуги",
"discountLabel": "Скидка", "discountLabel": "Скидка",
"sertificateLabel":"Сертификат",
"total": "Итого", "total": "Итого",
"paymentRequired": "Оплата не произведена", "paymentRequired": "Оплата не произведена",
"connecting": "Подключение к Payme…", "connecting": "Подключение к Payme…",

View File

@@ -235,6 +235,7 @@ declare const messages: {
security: 'Payme tomonidan himoyalangan · SSL shifrlash'; security: 'Payme tomonidan himoyalangan · SSL shifrlash';
serviceFee: "Xizmat to'lovi"; serviceFee: "Xizmat to'lovi";
discountLabel: 'Chegirma'; discountLabel: 'Chegirma';
sertificateLabel: 'Sertifikat';
total: 'Jami'; total: 'Jami';
paymentRequired: "To'lov qilinmagan"; paymentRequired: "To'lov qilinmagan";
connecting: 'Paymega ulanmoqda…'; connecting: 'Paymega ulanmoqda…';

View File

@@ -232,6 +232,7 @@
"security": "Payme tomonidan himoyalangan · SSL shifrlash", "security": "Payme tomonidan himoyalangan · SSL shifrlash",
"serviceFee": "Xizmat to'lovi", "serviceFee": "Xizmat to'lovi",
"discountLabel": "Chegirma", "discountLabel": "Chegirma",
"sertificateLabel":"Sertifikat",
"total": "Jami", "total": "Jami",
"paymentRequired":"To'lov qilinmagan", "paymentRequired":"To'lov qilinmagan",
"connecting": "Paymega ulanmoqda…", "connecting": "Paymega ulanmoqda…",