authscape 1.0.112 → 1.0.114

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/index.js CHANGED
@@ -262,7 +262,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
262
262
  Object.defineProperty(exports, "__esModule", {
263
263
  value: true
264
264
  });
265
- exports["default"] = void 0;
265
+ exports.checkoutForm = void 0;
266
266
 
267
267
  var _react = _interopRequireWildcard(require("react"));
268
268
 
@@ -514,8 +514,7 @@ var checkoutForm = function checkoutForm(_ref) {
514
514
  }, payButtonText), errorMessage && /*#__PURE__*/_react["default"].createElement("div", null, errorMessage));
515
515
  };
516
516
 
517
- var _default = CheckoutForm;
518
- exports["default"] = _default;
517
+ exports.checkoutForm = checkoutForm;
519
518
  "use strict";
520
519
 
521
520
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -523,7 +522,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
523
522
  Object.defineProperty(exports, "__esModule", {
524
523
  value: true
525
524
  });
526
- exports["default"] = stripePayment;
525
+ exports.stripePayment = void 0;
527
526
 
528
527
  var _react = _interopRequireWildcard(require("react"));
529
528
 
@@ -589,7 +588,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
589
588
 
590
589
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
591
590
 
592
- function stripePayment(_ref) {
591
+ var stripePayment = function stripePayment(_ref) {
593
592
  var title = _ref.title,
594
593
  description = _ref.description,
595
594
  _ref$amount = _ref.amount,
@@ -906,7 +905,9 @@ function stripePayment(_ref) {
906
905
  }
907
906
  }
908
907
  }, /*#__PURE__*/_react["default"].createElement(_Close["default"], null))), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], null, description, /*#__PURE__*/_react["default"].createElement(PaymentContent, null)), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null)), !isModal && /*#__PURE__*/_react["default"].createElement(PaymentContent, null));
909
- }
908
+ };
909
+
910
+ exports.stripePayment = stripePayment;
910
911
  "use strict";
911
912
 
912
913
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,7 +3,7 @@ import Button from '@mui/material/Button';
3
3
  import {useStripe, useElements, PaymentElement} from '@stripe/react-stripe-js';
4
4
  import PaymentRoundedIcon from '@mui/icons-material/PaymentRounded';
5
5
 
6
- const checkoutForm = ({payButtonText, clientSecret, onResponse, amount}) => {
6
+ export const checkoutForm = ({payButtonText, clientSecret, onResponse, amount}) => {
7
7
 
8
8
  const [isPaymentProcessing, setIsPaymentProcessing] = useState(false);
9
9
 
@@ -152,6 +152,4 @@ const checkoutForm = ({payButtonText, clientSecret, onResponse, amount}) => {
152
152
  {errorMessage && <div>{errorMessage}</div>}
153
153
  </form>
154
154
  )
155
- };
156
-
157
- export default CheckoutForm;
155
+ };
@@ -17,7 +17,7 @@ import MenuItem from '@mui/material/MenuItem';
17
17
  //import {apiService} from 'authscape';
18
18
  import Grid from '@mui/material/Grid';
19
19
 
20
- export default function stripePayment({title, description, amount = null, priceId = null, stripeCustomerId = null, isModal = true, logOffUserName, logOffEmail, paymentRequestType = 3, currentUser, isOpen, onModalClose, onResponse, payButtonText = "PAY NOW"}) {
20
+ export const stripePayment = ({title, description, amount = null, priceId = null, stripeCustomerId = null, isModal = true, logOffUserName, logOffEmail, paymentRequestType = 3, currentUser, isOpen, onModalClose, onResponse, payButtonText = "PAY NOW"}) => {
21
21
 
22
22
  const stripePromise = loadStripe(process.env.stripePublicKey);
23
23
  const [options, setOptions] = useState(null);