@tender-cash/agent-sdk-react 0.0.2 → 0.1.0
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";var Ka=Object.defineProperty;var Xa=(e,t,r)=>t in e?Ka(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Me=(e,t,r)=>Xa(e,typeof t!="symbol"?t+"":t,r);/**
|
|
2
2
|
* agent-sdk-react.js
|
|
3
3
|
* @summary
|
|
4
|
-
* @version v0.0
|
|
4
|
+
* @version v0.1.0
|
|
5
5
|
* @author Tender
|
|
6
6
|
* @license Released under the MIT license.
|
|
7
7
|
* @copyright Tender Cash
|
package/package.json
CHANGED
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
|
|