From 20195a42bdece0ccd39e1cf6e6da2aa23f3ab196 Mon Sep 17 00:00:00 2001 From: maniamartial Date: Wed, 12 Feb 2025 16:21:47 +0300 Subject: [PATCH] fix - Make tax id mendatory for vat purpose while initiating mpesa payments --- .../src2/components/billing/mpesa/BuyPrepaidCreditsMpesa.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dashboard/src2/components/billing/mpesa/BuyPrepaidCreditsMpesa.vue b/dashboard/src2/components/billing/mpesa/BuyPrepaidCreditsMpesa.vue index 3d0eedef70..c561d3dfef 100644 --- a/dashboard/src2/components/billing/mpesa/BuyPrepaidCreditsMpesa.vue +++ b/dashboard/src2/components/billing/mpesa/BuyPrepaidCreditsMpesa.vue @@ -139,6 +139,11 @@ export default { 'Both partner and phone number are required for payment.', ); } + if (!this.taxIdInput) { + throw new DashboardError( + 'Tax ID is required for payment.', + ); + } }, async onSuccess(data) { if (data?.ResponseCode === '0') {