Skip to content

Commit 6f94397

Browse files
fix(env): Switch config values to fetch from env variables
1 parent de0e027 commit 6f94397

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

resources/config/paystack.php

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,31 @@
33
return [
44

55
/**
6-
*
6+
* Public Key From Paystack Dashboard
77
*
88
*/
9-
'publicKey' => 'pk_test_489661a873de9d88380ceb58ad994d39a08255d9',
9+
'publicKey' => getenv('PAYSTACK_PUBLIC_KEY'),
1010

1111
/**
12-
*
12+
* Secret Key From Paystack Dashboard
1313
*
1414
*/
15-
'secretKey' => 'sk_test_15636445eb184d45e6c742e53dee2df4685ed18c',
15+
'secretKey' => getenv('PAYSTACK_SECRET_KEY'),
1616

1717
/**
18-
*
18+
* Paystack Payment URL
1919
*
2020
*/
21-
'merchantID' => '',
21+
'paymentURL' => getenv('PAYSTACK_PAYMENT_URL'),
2222

2323
/**
24-
*
24+
* Optional email address of the merchant
2525
*
2626
*/
27-
'paymentURL' => 'https://api.paystack.co/transaction/initialize',
28-
29-
/**
30-
* The route where paystack will redirect to after the payment has been made
31-
*
32-
*/
33-
'callbackURL' => '',
27+
'merchantEmail' => getenv('MERCHANT_EMAIL'),
3428

3529
/**
36-
* Optional email address of the merchant
37-
*
30+
* Unique transaction reference
3831
*/
39-
'merchantEmail' => ''
40-
41-
42-
32+
'reference' => 'payref'.time().'tranx'
4333
];

0 commit comments

Comments
 (0)