Skip to content

Commit 1063b61

Browse files
authored
Merge pull request #10 from RootStudio/readme
Add config changes to readme
2 parents 5dee12a + a47389e commit 1063b61

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,37 @@ Some core shop files needed to be changed for this to work, though only new meth
1313
### Gateways
1414
The shop gateway files have not been touched, and only the `PerchShopGateway_stripe_intents.class.php` has been added. However all the Omnipay packages were upgraded from v2 to v3 so it is quite likely that they will no longer work.
1515

16+
You'll need to add a new config option to the shop config file the stripe keys will be the same though, unless you create new ones. You can also just rename the stripe gateway config to stripe_intents
17+
18+
```
19+
'stripe' => [
20+
'enabled' => true,
21+
'test_mode' => SHOP_TEST_MODE,
22+
'live' => [
23+
'secret_key' => 'sk_live_xxxxxx',
24+
'publishable_key' => 'pk_live_xxxxxx',
25+
],
26+
'test' => [
27+
'secret_key' => 'sk_test_xxxxxx',
28+
'publishable_key' => 'pk_test_xxxxxx,
29+
],
30+
],
31+
32+
33+
'stripe_intents' => [
34+
'enabled' => true,
35+
'test_mode' => SHOP_TEST_MODE,
36+
'live' => [
37+
'secret_key' => 'sk_live_xxxxxx',
38+
'publishable_key' => 'pk_live_xxxxxx',
39+
],
40+
'test' => [
41+
'secret_key' => 'sk_test_xxxxxx',
42+
'publishable_key' => 'pk_test_xxxxxx',
43+
],
44+
],
45+
```
46+
1647
### Templates
1748
You'll need to update your page templates and gateway form to make use of the newest gateway. The repo contains some examples for what you would need, but I've outlined the most important below.
1849

0 commit comments

Comments
 (0)