@pkorsholm/medusa-plugin-mailchimp

1.1.42 • Public • Published

medusa-plugin-mailchimp

Mailchimp plugin for Medusa that supports newsletter subscriptions.

Learn more about how you can use this plugin in the documentaion.

Options

{
  api_key: "MAILCHIMP_API_KEY",
  newsletter_list_id: ["123456789"]
}

Dynamic usage

You can resolve the Mailchimp service, such that your server can handle newsletter subscriptions.

Example:

const mailchimpService = req.scope.resolve("mailchimpService")
mailchimpService.subscribeNewsletter(
  "acme@mail.com",
  // merge_fields to include in the subscription
  { FIRSTNAME: "Acme", LASTNAME: "Inc." }
)

Readme

Keywords

none

Package Sidebar

Install

npm i @pkorsholm/medusa-plugin-mailchimp

Weekly Downloads

0

Version

1.1.42

License

MIT

Unpacked Size

66.2 kB

Total Files

19

Last publish

Collaborators

  • pkorsholm