Publishing connector events
Learn how to trigger connector events when using customer credit.
To implement the customer credit feature, in addition to calling the methods described previously, you must publish the events that interact with the components included in the connector. This section describes those events.
Reloading Drop-In
You should publish the event to reload Drop-in after applying or removing a partial amount from customer credit.
Refer to Payments component for more information.
Reloading the checkout summary component
Prerequisite: Publish this event after calling the addCustomerCreditSourceToCheckout
or deattachPaymentToCheckout
methods. Reload the checkout summary component to reflect the latest values whenever a shopper adds or removes a source from the checkout. This updates the UI with the latest values, including the amount contributed and the amount remaining to be contributed.
For more information, refer to the Checkout Summary component topic.
Last updated