@a-tech.jo/atech_payment 1.0.4 → 1.0.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 +11 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @a-tech.jo/atech_payment
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
This Package is the frontend interface to integrate with A-Tech payment project, its used a plug and play to be used without huge effort to embed payment providers in Next js projects
|
|
4
4
|
|
|
5
5
|
## Steps for Usage
|
|
6
6
|
|
|
@@ -11,10 +11,16 @@ A React component that integrates PayPal payments into your application.
|
|
|
11
11
|
To test the package locally:
|
|
12
12
|
|
|
13
13
|
- First, link the package by running `npm link` in the package directory.
|
|
14
|
-
- Then, in the app where you want to use the package, link it using `npm link
|
|
15
|
-
- Last, make sure `
|
|
14
|
+
- Then, in the app where you want to use the package, link it using `npm link @a-tech.jo/atech_payment`.
|
|
15
|
+
- Last, make sure `backend` is running at port 5000.
|
|
16
16
|
|
|
17
17
|
3. **Publishing**
|
|
18
18
|
When ready to share the package, publish it by running `npm publish`.
|
|
19
19
|
After publishing, it can be installed in any app using:
|
|
20
|
-
`npm
|
|
20
|
+
`npm run publish`
|
|
21
|
+
|
|
22
|
+
4. **Add to your project**
|
|
23
|
+
1. Open next.config.js
|
|
24
|
+
2. Add the package to transpilePackages key as below:
|
|
25
|
+
transpilePackages: [ "@a-tech.jo/atech_payment"]
|
|
26
|
+
3. use the package
|