@yosle/tropipayjs 0.1.1 → 0.1.2
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 +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ You can use npm or yarn to install this package:
|
|
|
10
10
|
`yarn add tropipayjs`
|
|
11
11
|
|
|
12
12
|
# How to use
|
|
13
|
-
The Tropipay instance allows you to access all the method available in the API. This Object is meant to be used *only
|
|
13
|
+
The Tropipay instance, allows you to access all the method available in the API. This Object is meant to be used *only in server side*. Do not use the Tropipay object on the client side (browser). This would expose your app credentials (the client secret of your account). You can create an endpoint at your back-end using express and consume it in your front-end, or use SSR if you're using NextJS.
|
|
14
14
|
|
|
15
15
|
## Setting up your credentials
|
|
16
16
|
In order to use the Tropipay API you need to signup in a live (production) or the test enviroment. Create an app and configure the client id an client secret for the app.
|