# Publishing connector events

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](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.4/extend-the-salesforce-lightning-app/customizing-the-lightning-web-components/components/payments-component) for more information.

## Reloading the checkout summary component

{% hint style="info" %}
**Prerequisite**: Publish this event after calling the [`addCustomerCreditSourceToCheckout`](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.4/extend-the-salesforce-lightning-app/customer-credit/addcustomercreditsourcetocheckout) or [`deattachPaymentToCheckout`](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.4/extend-the-salesforce-lightning-app/customer-credit/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](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.4/extend-the-salesforce-lightning-app/customizing-the-lightning-web-components/components/checkout-summary-component) topic.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.4/extend-the-salesforce-lightning-app/customer-credit/publishing-connector-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
