logix-payment-shift4 1.0.7 → 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 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
- var setError = _useState2[1];
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
- var setSuccess = _useState4[1];
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;
@@ -375,12 +377,13 @@ function PaymentForm(_ref) {
375
377
  display: "grid",
376
378
  gridTemplateColumns: "1fr 1fr",
377
379
  gap: "10px",
378
- marginTop: "12px"
380
+ marginTop: "5px"
379
381
  }
380
382
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", {
381
383
  style: {
382
384
  fontWeight: "500",
383
- color: "#555"
385
+ color: "#555",
386
+ marginBottom: 2
384
387
  }
385
388
  }, "Expiration"), /*#__PURE__*/React.createElement("div", {
386
389
  "data-shift4": "expiry",
@@ -394,7 +397,8 @@ function PaymentForm(_ref) {
394
397
  })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", {
395
398
  style: {
396
399
  fontWeight: "500",
397
- color: "#555"
400
+ color: "#555",
401
+ marginBottom: 2
398
402
  }
399
403
  }, "CVC"), /*#__PURE__*/React.createElement("div", {
400
404
  "data-shift4": "cvc",
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
- var setError = _useState2[1];
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
- var setSuccess = _useState4[1];
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;
@@ -373,12 +375,13 @@ function PaymentForm(_ref) {
373
375
  display: "grid",
374
376
  gridTemplateColumns: "1fr 1fr",
375
377
  gap: "10px",
376
- marginTop: "12px"
378
+ marginTop: "5px"
377
379
  }
378
380
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", {
379
381
  style: {
380
382
  fontWeight: "500",
381
- color: "#555"
383
+ color: "#555",
384
+ marginBottom: 2
382
385
  }
383
386
  }, "Expiration"), /*#__PURE__*/React.createElement("div", {
384
387
  "data-shift4": "expiry",
@@ -392,7 +395,8 @@ function PaymentForm(_ref) {
392
395
  })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", {
393
396
  style: {
394
397
  fontWeight: "500",
395
- color: "#555"
398
+ color: "#555",
399
+ marginBottom: 2
396
400
  }
397
401
  }, "CVC"), /*#__PURE__*/React.createElement("div", {
398
402
  "data-shift4": "cvc",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logix-payment-shift4",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "description": "A React component library for integrating Shift4 payments with Logix applications.",
@@ -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;
@@ -131,14 +134,14 @@ export default function PaymentForm({amount,currency,color,formwidth=400,formbor
131
134
  </div>
132
135
 
133
136
  {/* Expiration + CVC */}
134
- <div style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: "10px", marginTop: "12px" }}>
137
+ <div style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: "10px", marginTop: "5px" }}>
135
138
  <div>
136
- <label style={{ fontWeight: "500", color: "#555" }}>Expiration</label>
139
+ <label style={{ fontWeight: "500", color: "#555",marginBottom:2 }}>Expiration</label>
137
140
  <div
138
141
  data-shift4="expiry"
139
142
  className="form-control"
140
143
  style={{
141
- padding: inputpadding,
144
+ padding: inputpadding,
142
145
  borderRadius: formborderRadius,
143
146
  border: "1px solid #ccc",
144
147
  boxShadow: "inset 0 2px 4px rgba(0,0,0,0.05)"
@@ -146,7 +149,7 @@ export default function PaymentForm({amount,currency,color,formwidth=400,formbor
146
149
  />
147
150
  </div>
148
151
  <div>
149
- <label style={{ fontWeight: "500", color: "#555" }}>CVC</label>
152
+ <label style={{ fontWeight: "500", color: "#555",marginBottom:2 }}>CVC</label>
150
153
  <div
151
154
  data-shift4="cvc"
152
155
  className="form-control"