@tender-cash/agent-sdk-react 0.0.2 → 0.1.1
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tender-cash/agent-sdk-react",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"repository": "git://github.com/tender-cash/agent-sdk-react.git",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "Tender",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"ts-types": " tsc --emitDeclarationOnly",
|
|
20
20
|
"format": "prettier --write \"**/*.{ts,tsx,json,md}\"",
|
|
21
21
|
"publish:new": "yarn publish --non-interactive",
|
|
22
|
-
"build:major": "yarn version --major && git push origin
|
|
23
|
-
"build:minor": "yarn version --minor && git push origin
|
|
24
|
-
"build:patch": "yarn version --patch && git push origin
|
|
22
|
+
"build:major": "yarn version --major && git push origin main && yarn publish:new",
|
|
23
|
+
"build:minor": "yarn version --minor && git push origin main && yarn publish:new",
|
|
24
|
+
"build:patch": "yarn version --patch && git push origin main && yarn publish:new"
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://merchant.tender.cash",
|
|
27
27
|
"devDependencies": {
|
package/readme.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# @tender-cash/agent-sdk-react
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/js/%40tender-cash%2Fagent-sdk-react)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
3
6
|
React component library for integrating the Tender Cash payment flow into your application.
|
|
4
7
|
|
|
5
8
|
## Installation
|
|
@@ -38,7 +41,7 @@ function PaymentComponent() {
|
|
|
38
41
|
// --- Configuration ---
|
|
39
42
|
const accessId = 'YOUR_ACCESS_ID'; // Replace with your actual Access ID
|
|
40
43
|
const accessSecret = 'YOUR_ACCESS_SECRET'; // Replace with your actual Access Secret
|
|
41
|
-
const amount =
|
|
44
|
+
const amount = 150.00; // Amount to charge
|
|
42
45
|
const fiatCurrency = 'USD'; // Currency code
|
|
43
46
|
const environment = 'test'; // 'test' or 'live'
|
|
44
47
|
|