Members
(constant) clientExceptionRechargeHandler :PaymentErrorHandler
Handles form validation errors on ReCharge checkout
Type:
- Source:
(constant) paymentFailureRechargeHandler :PaymentErrorHandler
Handles payment failure errors on ReCharge checkout
Type:
- Source:
(constant) paymentFailureShopifyHandler :PaymentErrorHandler
Handles payment failure errors on Shopify checkout
Type:
- Source:
(constant) portalTaskMap :Map.<string, string>
Map of selectors to portal tasks.
Type:
- Map.<string, string>
- Source:
- See:
-
- getPortalTask
(constant) widgetFlowMap :Map.<string, string>
Maps widget names to flow names.
Widget names are keys of the global `rebuyWidgets` object.
Type:
- Map.<string, string>
- Source:
Methods
captureException(error)
Handles errors by logging them to the console and sending them to Sentry.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
any | the error to capture |
- Source:
dataLayerPush(data)
Wrapper for dataLayer.push that clears the ecommerce object before pushing new data.
This is to prevent ecommerce data from leaking between events.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | event data to push to dataLayer |
- Source:
trackAccountRegisterPage(options) → {void}
Sets up and tears down event listeners for the /account/register page.
Session storage is used to track attempts across page loads.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
options |
Object | an object of parameters
Properties
|
- Source:
Returns:
- Type
- void
withFlowName(handler) → {function}
Decorator for event handlers that adds the global flow name to the event.
Parameters:
| Name | Type | Description |
|---|---|---|
handler |
function | The event handler to decorate |
- Source:
Returns:
The decorated event handler
- Type
- function
Type Definitions
PaymentErrorHandler
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
errorType |
string | undefined | The event name to trigger |
paymentForm |
HTMLElement | null | undefined | The payment form element |
errorElement |
HTMLElement | null | undefined | The element that contains the error message |
- Source: