EcommerceService
from ‘experro-storefront’.
EcommerceService
provides an asynchronous method called subscribeToNewsLetter('sample@experro.com')
which accepts the email address. It will return the response as success. If the provided email address is already registered, you will receive a valid error message in the response’s Error.message
.
For detailed implementation, refer to footer-newsletter.tsx
and footer-newslatter-controller.tsx
.