Skip to content

Commit

Permalink
update throwing error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnpro authored Feb 24, 2024
1 parent f816385 commit 05c6b3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/src/chapa.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 05c6b3e

Please sign in to comment.