We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5f83d1 commit ebd82e3Copy full SHA for ebd82e3
1 file changed
src/paystack-client.ts
@@ -1,10 +1,7 @@
1
import { PaystackResponse, PaystackError } from "./types";
2
-import dotenv from 'dotenv';
+import { paystackConfig } from "./config";
3
4
-// Load environment variables
5
-dotenv.config();
6
-
7
-const PAYSTACK_BASE_URL = process.env.PAYSTACK_BASE_URL || 'https://api.paystack.co';
+const PAYSTACK_BASE_URL = paystackConfig.baseURL;
8
const USER_AGENT = process.env.USER_AGENT || 'Paystack-MCP-Client';
9
10
class PaystackClient {
@@ -87,5 +84,5 @@ class PaystackClient {
87
84
}
88
85
89
86
export const paystackClient = new PaystackClient(
90
- process.env.PAYSTACK_TEST_SECRET_KEY!
91
-);
+ paystackConfig.secretKey
+);
0 commit comments