We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07778da commit a781d98Copy full SHA for a781d98
Procfile
@@ -0,0 +1 @@
1
+web: php -S 0.0.0.0:$PORT -t public_html
includes/braintree_init.php
@@ -2,8 +2,10 @@
2
session_start();
3
require_once("../vendor/autoload.php");
4
5
-$dotenv = new Dotenv\Dotenv(__DIR__ . "/../");
6
-$dotenv->load();
+if(file_exists(__DIR__ . "/../.env")) {
+ $dotenv = new Dotenv\Dotenv(__DIR__ . "/../");
7
+ $dotenv->load();
8
+}
9
10
Braintree\Configuration::environment(getenv('BT_ENVIRONMENT'));
11
Braintree\Configuration::merchantId(getenv('BT_MERCHANT_ID'));
0 commit comments