certificate row added to payment modal
This commit is contained in:
@@ -13,6 +13,7 @@ export type PaymentStatus = 'idle' | 'loading' | 'success' | 'error';
|
||||
export interface PriceCalculate {
|
||||
service_fee: number;
|
||||
discount?: number;
|
||||
certificate?: number;
|
||||
total_price: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -62,12 +62,24 @@ export const PriceSummary = ({
|
||||
currency="UZS"
|
||||
/>
|
||||
|
||||
{priceCalculate.discount && (
|
||||
{priceCalculate.discount ? (
|
||||
<PriceRow
|
||||
label={t('discountLabel')}
|
||||
amount={priceCalculate.discount}
|
||||
currency="UZS"
|
||||
/>
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
|
||||
{priceCalculate.certificate ? (
|
||||
<PriceRow
|
||||
label={t('sertificateLabel')}
|
||||
amount={priceCalculate.certificate}
|
||||
currency="UZS"
|
||||
/>
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
|
||||
<PriceRow
|
||||
|
||||
@@ -232,6 +232,7 @@
|
||||
"security": "Secured by Payme · SSL encrypted",
|
||||
"serviceFee": "Service fee",
|
||||
"discountLabel": "Discount",
|
||||
"sertificateLabel":"Certificate",
|
||||
"total": "Total",
|
||||
"paymentRequired": "Payment not completed",
|
||||
"connecting": "Connecting to Payme…",
|
||||
|
||||
@@ -231,6 +231,7 @@
|
||||
"security": "Защищено Payme · SSL шифрование",
|
||||
"serviceFee": "Стоимость услуги",
|
||||
"discountLabel": "Скидка",
|
||||
"sertificateLabel":"Сертификат",
|
||||
"total": "Итого",
|
||||
"paymentRequired": "Оплата не произведена",
|
||||
"connecting": "Подключение к Payme…",
|
||||
|
||||
@@ -235,6 +235,7 @@ declare const messages: {
|
||||
security: 'Payme tomonidan himoyalangan · SSL shifrlash';
|
||||
serviceFee: "Xizmat to'lovi";
|
||||
discountLabel: 'Chegirma';
|
||||
sertificateLabel: 'Sertifikat';
|
||||
total: 'Jami';
|
||||
paymentRequired: "To'lov qilinmagan";
|
||||
connecting: 'Paymega ulanmoqda…';
|
||||
|
||||
@@ -232,6 +232,7 @@
|
||||
"security": "Payme tomonidan himoyalangan · SSL shifrlash",
|
||||
"serviceFee": "Xizmat to'lovi",
|
||||
"discountLabel": "Chegirma",
|
||||
"sertificateLabel":"Sertifikat",
|
||||
"total": "Jami",
|
||||
"paymentRequired":"To'lov qilinmagan",
|
||||
"connecting": "Paymega ulanmoqda…",
|
||||
|
||||
Reference in New Issue
Block a user