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 {
|
export interface PriceCalculate {
|
||||||
service_fee: number;
|
service_fee: number;
|
||||||
discount?: number;
|
discount?: number;
|
||||||
|
certificate?: number;
|
||||||
total_price: number;
|
total_price: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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…",
|
||||||
|
|||||||
@@ -231,6 +231,7 @@
|
|||||||
"security": "Защищено Payme · SSL шифрование",
|
"security": "Защищено Payme · SSL шифрование",
|
||||||
"serviceFee": "Стоимость услуги",
|
"serviceFee": "Стоимость услуги",
|
||||||
"discountLabel": "Скидка",
|
"discountLabel": "Скидка",
|
||||||
|
"sertificateLabel":"Сертификат",
|
||||||
"total": "Итого",
|
"total": "Итого",
|
||||||
"paymentRequired": "Оплата не произведена",
|
"paymentRequired": "Оплата не произведена",
|
||||||
"connecting": "Подключение к Payme…",
|
"connecting": "Подключение к Payme…",
|
||||||
|
|||||||
@@ -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…';
|
||||||
|
|||||||
@@ -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…",
|
||||||
|
|||||||
Reference in New Issue
Block a user