npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hifive-dev/medusa-fulfillment-sendcloud

v1.1.0

Published

A MedusaJS plugin integrating the SendCloud platform used for managing shipping duties.

Downloads

13

Readme

Medusa - SendCloud Integration Plugin

Project Description

This plugin integrates Medusa, a powerful headless commerce engine, with SendCloud, a comprehensive shipping and fulfillment service, enabling automated shipping and tracking for Medusa-powered online stores.

Features

  • Automated shipping label creation.
  • Real-time tracking updates.
  • Seamless integration with Medusa's cart and checkout modules.
  • Support for SendCloud's parcel and return portal features.

Prerequisites

  • A Medusa project setup:
    • Server / Admin (https://docs.medusajs.com/deployments/server/)
    • Storefront (https://docs.medusajs.com/starters/nextjs-medusa-starter - https://docs.medusajs.com/deployments/storefront/)
  • A SendCloud account:
    • API key (https://sendcloud.dev/docs/getting-started/)
    • For returns a return address (https://sendcloud.dev/docs/returns/return-portal/)

Installation

Please install the plugin through these commands in your terminal and in the project directory.

yarn add medusa-fulfillment-sendcloud
yarn build

Configuration

Detailed steps on configuring the plugin with your Medusa project and SendCloud account, including setting up API keys and tokens.

  • Goto admin panel, and regions section open your desired region in which you want your users to use sendcloud as fulfillment.

Screenshot

  • Edit region, and add the sendcloud fulfillment provider.

Screenshot

  • Then in the shipping options, add a shipping option by providing the relevant details and selecting one of the shipping methods from sendcloud.

Screenshot Screenshot

  • Check the 'visible in store' option

Screenshot

  • similarly add a return shipping option.

Usage

Creating Shipping Labels:

  • Opening the Order Details Page: Access the specific order for which you want to create a shipping label.

  • Navigating to the Fulfillment Section: Locate the section dedicated to fulfillment within the order details.

Screenshot

  • Creating a Fulfillment: Use the provided interface to specify the details of the fulfillment, such as the quantity of items and the location from which they will be shipped.

Screenshot

  • Marking Fulfillment as Shipped: After creating the fulfillment, mark it as shipped and provide tracking information.

Tracking Shipments:

Steps to track order shipments in real-time.

  • Select the shipments menu in the admin panel sidebar and click track link for the specific shipment to see tracking info.

Screenshot

Handling Returns:

  • Open the specific order page and in the timeline section menu, users can request return.

Screenshot

Implementing Components in the Storefront (Next.js Example)

  • After installing the plugin and adding shipping methods from the admin panel, the shipping methods will automatically appear in the checkout form in store.

Screenshot

Prepare

In the medusa.config.js file in backend, you have to include the following in the plugins array

{
    resolve: `medusa-fulfillment-sendcloud`,
    options: {
        token: "<API_KEY_FOR_SENDCLOUD>",
        enableUI: true,
    },
}

Testing

SendCloud offers no sandbox. If you are testing please notice that there are free and paid shipping options in your account. There is a unstamped label option in the platform which is free and which is recommended for testing.

Once your integration is working you can check with paid shipping methods, but make sure that you cancel them before the cancellation deadline otherwise you have to pay for this label on the next invoice.

Troubleshooting

Common issues and solutions when using the plugin.

  • During checkout in the store, in the address field, there must be house # added. It requires user to include some digits in the address to pick the house number.

Support and Contact

Information for support and contacting the maintainers.