@superlogic/spree-pay 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,8 +18,8 @@ import { SpreePay, SpreePayProvider, useSpreePay } from '@superlogic/spree-pay';
18
18
  const spreeEnv = {
19
19
  tenantId: 'moca' // Keep moca for crypto payments on BASE network
20
20
  environment: 'dev',
21
- accessToken: 'eyJhbGciOiJSUzI1NiIs...', // Use user JWT token
22
21
  redirect3dsURI: '/3ds' // Any valid URI in your app that captures 3ds redirect
22
+ ssoPageURI: '/silent-check-sso.html' // Any valid URI in your app that will handle keyklock SSO (example below)
23
23
  };
24
24
 
25
25
  function Checkout() {
@@ -70,3 +70,18 @@ export default function ThreeDSRedirectPage() {
70
70
  }
71
71
 
72
72
  ```
73
+
74
+ ## Keyklock SSO page example (/silent-check-sso.html)
75
+
76
+ ```html
77
+ <!doctype html>
78
+ <html>
79
+ <body>
80
+ <script>
81
+ try {
82
+ parent.postMessage(location.href, location.origin);
83
+ } catch (e) {}
84
+ </script>
85
+ </body>
86
+ </html>
87
+ ```