summit-registration-lite 5.0.27 → 5.0.28-beta.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.
package/dist/index.js CHANGED
@@ -553,6 +553,7 @@ const STEP_COMPLETE = 3; // ANALYTICS
553
553
  const VIEW_ITEM = 'view_item';
554
554
  const ADD_TO_CART = 'add_to_cart';
555
555
  const BEGIN_CHECKOUT = 'begin_checkout';
556
+ const PURCHASE_COMPLETE = 'purchase_complete';
556
557
  ;// CONCATENATED MODULE: ./src/utils/payment-providers/lawpay-provider.js
557
558
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
558
559
 
@@ -3778,6 +3779,13 @@ const RegistrationLite = _ref => {
3778
3779
  const trackBeginCheckout = data => {
3779
3780
  const eventData = buildTrackEvent(data.ticketType, data.ticketQuantity, promoCode);
3780
3781
  trackEvent(BEGIN_CHECKOUT, eventData);
3782
+ };
3783
+
3784
+ const handlePurchaseComplete = order => {
3785
+ onPurchaseComplete(order);
3786
+ trackEvent(PURCHASE_COMPLETE, {
3787
+ order
3788
+ });
3781
3789
  }; // if we dont have yet ticket types and we didnt requested so far for them but we are already logged in
3782
3790
  // just dont render
3783
3791
 
@@ -3913,7 +3921,7 @@ const RegistrationLite = _ref => {
3913
3921
  checkout: checkout,
3914
3922
  user: profileData,
3915
3923
  summit: summitData,
3916
- onPurchaseComplete: onPurchaseComplete,
3924
+ onPurchaseComplete: handlePurchaseComplete,
3917
3925
  goToEvent: goToEvent,
3918
3926
  goToMyOrders: goToMyOrders,
3919
3927
  goToExtraQuestions: goToExtraQuestions,