logix-payment-shift4 1.0.8 → 1.0.9
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/dist/index.cjs.js +8 -6
- package/dist/index.esm.js +8 -6
- package/package.json +1 -1
- package/src/PaymentForm.jsx +3 -0
package/dist/index.cjs.js
CHANGED
|
@@ -198,13 +198,13 @@ function PaymentForm(_ref) {
|
|
|
198
198
|
var shift4Ref = React.useRef(null);
|
|
199
199
|
var componentsRef = React.useRef(null);
|
|
200
200
|
var _useState = React.useState(""),
|
|
201
|
-
_useState2 = _slicedToArray(_useState, 2)
|
|
202
|
-
_useState2[0]
|
|
203
|
-
|
|
201
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
202
|
+
error = _useState2[0],
|
|
203
|
+
setError = _useState2[1];
|
|
204
204
|
var _useState3 = React.useState(""),
|
|
205
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
206
|
-
_useState4[0]
|
|
207
|
-
|
|
205
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
206
|
+
success = _useState4[0],
|
|
207
|
+
setSuccess = _useState4[1];
|
|
208
208
|
var _useState5 = React.useState(false),
|
|
209
209
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
210
210
|
isSubmitting = _useState6[0],
|
|
@@ -213,6 +213,8 @@ function PaymentForm(_ref) {
|
|
|
213
213
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
214
214
|
isReady = _useState8[0],
|
|
215
215
|
setIsReady = _useState8[1];
|
|
216
|
+
console.log(error);
|
|
217
|
+
console.log(success);
|
|
216
218
|
React.useEffect(function () {
|
|
217
219
|
if (initializedRef.current) return;
|
|
218
220
|
initializedRef.current = true;
|
package/dist/index.esm.js
CHANGED
|
@@ -196,13 +196,13 @@ function PaymentForm(_ref) {
|
|
|
196
196
|
var shift4Ref = useRef(null);
|
|
197
197
|
var componentsRef = useRef(null);
|
|
198
198
|
var _useState = useState(""),
|
|
199
|
-
_useState2 = _slicedToArray(_useState, 2)
|
|
200
|
-
_useState2[0]
|
|
201
|
-
|
|
199
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
200
|
+
error = _useState2[0],
|
|
201
|
+
setError = _useState2[1];
|
|
202
202
|
var _useState3 = useState(""),
|
|
203
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
204
|
-
_useState4[0]
|
|
205
|
-
|
|
203
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
204
|
+
success = _useState4[0],
|
|
205
|
+
setSuccess = _useState4[1];
|
|
206
206
|
var _useState5 = useState(false),
|
|
207
207
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
208
208
|
isSubmitting = _useState6[0],
|
|
@@ -211,6 +211,8 @@ function PaymentForm(_ref) {
|
|
|
211
211
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
212
212
|
isReady = _useState8[0],
|
|
213
213
|
setIsReady = _useState8[1];
|
|
214
|
+
console.log(error);
|
|
215
|
+
console.log(success);
|
|
214
216
|
useEffect(function () {
|
|
215
217
|
if (initializedRef.current) return;
|
|
216
218
|
initializedRef.current = true;
|
package/package.json
CHANGED
package/src/PaymentForm.jsx
CHANGED
|
@@ -9,6 +9,9 @@ export default function PaymentForm({amount,currency,color,formwidth=400,formbor
|
|
|
9
9
|
const [success, setSuccess] = useState("");
|
|
10
10
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
11
11
|
const [isReady, setIsReady] = useState(false);
|
|
12
|
+
console.log(error);
|
|
13
|
+
console.log(success);
|
|
14
|
+
|
|
12
15
|
|
|
13
16
|
useEffect(() => {
|
|
14
17
|
if (initializedRef.current) return;
|