forked from stripe-archive/stripe-payments-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
56 lines (49 loc) · 2.26 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
$iniFilename = __DIR__ . '/settings.ini';
if (!is_file($iniFilename)) {
die('Missing settings.ini file.');
}
$settings = parse_ini_file($iniFilename);
if (!$settings) {
die('Unable to read settings.ini file. Please check file format and read access.');
}
return [
'settings' => [
'displayErrorDetails' => true, // set to false in production
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
// Monolog settings
'logger' => [
'name' => 'slim-app',
'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/logs/app.log',
'level' => \Monolog\Logger::DEBUG,
],
'stripe' => [
// You shouldn't have to touch this
'apiVersion' => '2019-03-14',
// Update this path if you want to move your public folder
'staticDir' => __DIR__ . '/../../public/',
// Adapt these to match your account payments settings
// https://dashboard.stripe.com/account/payments/settings
'paymentMethods' => [
// 'ach_credit_transfer', // usd (ACH Credit Transfer payments must be in U.S. Dollars)
'alipay', // aud, cad, eur, gbp, hkd, jpy, nzd, sgd, or usd.
'bancontact', // eur (Bancontact must always use Euros)
'card', // many (https://stripe.com/docs/currencies#presentment-currencies)
'eps', // eur (EPS must always use Euros)
'ideal', // eur (iDEAL must always use Euros)
'giropay', // eur (Giropay must always use Euros)
'multibanco', // eur (Multibanco must always use Euros)
// 'sepa_debit', // Restricted. See docs for activation details: https://stripe.com/docs/sources/sepa-debit
'sofort', // eur (SOFORT must always use Euros)
'wechat' // aud, cad, eur, gbp, hkd, jpy, sgd, or usd.
],
// See settings.ini
'publishableKey' => $settings['publishableKey'],
'secretKey' => $settings['secretKey'],
'webhookSecret' => $settings['webhookSecret'],
'accountCountry' => $settings['accountCountry'],
'shopCurrency' => $settings['shopCurrency'],
'defaultCountry' => $settings['defaultCountry']
]
],
];