File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 18
18
* Paystack Payment URL
19
19
*
20
20
*/
21
- 'paymentURL ' => getenv ('PAYSTACK_PAYMENT_URL ' ),
21
+ 'paymentUrl ' => getenv ('PAYSTACK_PAYMENT_URL ' ),
22
22
23
23
/**
24
24
* Optional email address of the merchant
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class Paystack {
16
16
*/
17
17
const ITF = "Invalid transaction reference " ;
18
18
19
-
20
19
/**
21
20
* Issue Secret Key from your Paystack Dashboard
22
21
* @var mixed
@@ -40,7 +39,7 @@ class Paystack {
40
39
* Paystack API base Url
41
40
* @var string
42
41
*/
43
- protected $ baseUrl = ' https://api.paystack.co ' ;
42
+ protected $ baseUrl ;
44
43
45
44
/**
46
45
* Authorization Url - Paystack payment page
@@ -51,11 +50,20 @@ class Paystack {
51
50
public function __construct ()
52
51
{
53
52
$ this ->setKey ();
53
+ $ this ->setBaseUrl ();
54
54
$ this ->setRequestOptions ();
55
55
}
56
56
57
57
/**
58
- * Get secret key from paystack config file
58
+ * Get Base Url from Paystack config file
59
+ */
60
+ public function setBaseUrl ()
61
+ {
62
+ $ this ->baseUrl = config ('paystack.paymentUrl ' );
63
+ }
64
+
65
+ /**
66
+ * Get secret key from Paystack config file
59
67
* @return void
60
68
*/
61
69
public function setKey ()
You can’t perform that action at this time.
0 commit comments