commit 16db209dc0330c56608294be335f6b738d307f17 Author: skirtiadi skirtiadi@giantrabbit.com Date: Wed Jun 24 18:46:27 2020 -0700
Move stripe.local.php variables to settings.local.php
Issue #45530 --- README.md | 9 +++------ src/StripeConfig.php | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md index f3502637..49aaad43 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ yarn install apt install redis ```
-Create a file at private/stripe.local.php. +Create a file at private/settings.local.php. It should have this in it:
``` php @@ -17,11 +17,8 @@ $stripeSettings['secretKey'] = 'Input-SecretKey-here(Sylvanus)'; $stripeSettings['publishableKey'] = 'Input-PublishableKey-here(Sylvanus)'; ```
-For local developments only, create a file at private/settings.local.php. -It should have this in it: - -``` php -<?php +For local developments only, add the following line in private/settings.local.php. +```
$torSiteBaseUrl = 'http://localhost:5000'; ``` diff --git a/src/StripeConfig.php b/src/StripeConfig.php index 27da7fb6..c922c1fc 100644 --- a/src/StripeConfig.php +++ b/src/StripeConfig.php @@ -25,7 +25,7 @@ class StripeConfig { }
public function configure() { - require_once(__DIR__ . "/../private/stripe.local.php"); + require(__DIR__ . "/../private/settings.local.php"); $this->secretKey = $stripeSettings['secretKey']; $this->publishableKey = $stripeSettings['publishableKey']; \Stripe\Stripe::setApiKey($this->secretKey);
tor-commits@lists.torproject.org