@paykit-sdk/react 1.1.7 → 1.1.81

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.
Files changed (2) hide show
  1. package/README.md +18 -8
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -10,13 +10,23 @@ npm install @paykit-sdk/react
10
10
 
11
11
  ## Quick Start
12
12
 
13
- ### 1. Setup Provider
13
+ ### 1. Setup PayKit
14
14
 
15
15
  ```tsx
16
- import { PaykitProvider } from '@paykit-sdk/react';
17
- import { stripe } from '@paykit-sdk/stripe';
16
+ import { PayKit } from '@paykit-sdk/core';
17
+ import { local } from '@paykit-sdk/local';
18
+
19
+ const provider = local();
20
+ const paykit = new PayKit(provider);
21
+
22
+ export { provider, paykit };
23
+ ```
18
24
 
19
- const provider = stripe();
25
+ ### 2. Setup Provider
26
+
27
+ ```tsx
28
+ import { provider } from '@lib/paykit';
29
+ import { PaykitProvider } from '@paykit-sdk/react';
20
30
 
21
31
  function App() {
22
32
  return (
@@ -27,7 +37,7 @@ function App() {
27
37
  }
28
38
  ```
29
39
 
30
- ### 2. Use Hooks
40
+ ### 3. Use Hooks
31
41
 
32
42
  ```tsx
33
43
  import * as React from 'react';
@@ -61,9 +71,9 @@ Works with any PayKit provider including Stripe, Polar, Gumroad, and more.
61
71
 
62
72
  ## Documentation
63
73
 
64
- - [React Documentation](https://usepaykit.dev/docs/react)
65
- - [PayKit Documentation](https://usepaykit.dev)
66
- - [Production Examples](https://usepaykit.dev/docs/examples)
74
+ - [React Documentation](https://www.usepaykit.dev/docs/concepts/client-side-usage)
75
+ - [PayKit Documentation](https://usepaykit.dev/docs)
76
+ - [Framework Examples](https://usepaykit.dev/docs/framework-examples)
67
77
 
68
78
  ## TypeScript Support
69
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paykit-sdk/react",
3
- "version": "1.1.7",
3
+ "version": "1.1.81",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "peerDependencies": {
27
27
  "react": ">=16.8.0",
28
28
  "react-dom": ">=16.8.0",
29
- "@paykit-sdk/core": ">=1.1.6"
29
+ "@paykit-sdk/core": ">=1.1.7"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@swc/core": "^1.12.9",