You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,37 @@ Some core shop files needed to be changed for this to work, though only new meth
13
13
### Gateways
14
14
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.
15
15
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
+
16
47
### Templates
17
48
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.
0 commit comments