From 05c6b3ee458bcc0c75323281457ff075a384eb2c Mon Sep 17 00:00:00 2001 From: Natnael Fikadu <88460514+mrnpro@users.noreply.github.com> Date: Sat, 24 Feb 2024 11:26:54 -0800 Subject: [PATCH] update throwing error message. --- lib/src/chapa.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/chapa.dart b/lib/src/chapa.dart index 6dd4f3c..eb657b4 100644 --- a/lib/src/chapa.dart +++ b/lib/src/chapa.dart @@ -98,7 +98,10 @@ class Chapa { }) async { // validate the private key if (_privateKey == null) { - throw const AuthException(msg: "please configure before you initialize"); + throw const AuthException( + msg: + 'Please configure the API key before starting the payment. Refer to the documentation: [https://pub.dev/packages/chapa_unofficial]'); + } // intialize on the server @@ -133,7 +136,7 @@ class Chapa { //validate if the build context is passed if (context == null) { throw Exception( - "to use 'InAppPayment' ,you are required to pass context or set 'enableInAppPayment' to false"); + "To use 'InAppPayment' ,you are required to pass context or set 'enableInAppPayment' to false"); } // fire the WeView here