@stigg/react-sdk 4.5.4 → 4.6.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.
@@ -7,6 +7,7 @@ export declare type CheckoutResult = {
7
7
  results?: ApplySubscriptionResults;
8
8
  };
9
9
  export declare type OnCheckoutParams = {
10
+ customerId: string;
10
11
  checkoutParams: ApplySubscription;
11
12
  checkoutAction: (params: ApplySubscription) => Promise<CheckoutResult>;
12
13
  };
@@ -11560,7 +11560,8 @@ function useSubmit(_ref) {
11560
11560
  setWidgetReadOnly = _useCheckoutModel.setWidgetReadOnly;
11561
11561
 
11562
11562
  var _ref2 = checkoutState || {},
11563
- setupIntentClientSecret = _ref2.setupSecret;
11563
+ setupIntentClientSecret = _ref2.setupSecret,
11564
+ customer = _ref2.customer;
11564
11565
 
11565
11566
  var stripe = reactStripeJs.useStripe();
11566
11567
  var elements = reactStripeJs.useElements();
@@ -11679,6 +11680,7 @@ function useSubmit(_ref) {
11679
11680
 
11680
11681
  _context2.next = 17;
11681
11682
  return onCheckout({
11683
+ customerId: customer.id,
11682
11684
  checkoutParams: checkoutParams,
11683
11685
  checkoutAction: checkoutAction
11684
11686
  });