Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

solidus_fulfillment

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solidus_fulfillment

  • 2.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

SolidusFulfillment is a solidus extension to do fulfillment processing via various fulfillment services when a shipment becomes ready.

The extension adds an additional state to the Shipment state machine called fulfilling which acts as the transition between ready and shipped.

When a shipment becomes ready it is eligible for fulfillment:

  1. A solidus_fulfillment:process rake task intended to be called from a cron job checks for ready shipments (by delegating to the solidus_fulfillment:process:ready task) and initiates the fulfillment via the merchant API.
  2. If the fulfillment transaction succeeds, the shipment enters the fulfilling state.
  3. The solidus_fulfillment:process:fulfilling rake task then queries the merchant's API for tracking numbers of any orders that are being fulfilled.
  4. If the tracking numbers are found, the shipment transitions into the shipped state and an email is sent to the customer.

Stock levels can also be updated with the solidus_fulfillment:process:stock_levels rake task which is intended to be called from a cron job.

Installation

Add to your gemfile:

gem 'whenever', require: false # if you want whenever to manage the cron job
gem 'solidus_fulfillment'

Create config/fulfillment.yml:

development:
  adapter: amazon
  api_key: <YOUR AMAZON AWS API KEY>
  secret_key: <YOUR AMAZON AWS SECRET KEY>
  development_mode: true

test:
  adapter: amazon
  api_key: <YOUR AMAZON AWS API KEY>
  secret_key: <YOUR AMAZON AWS SECRET KEY>

production:
  adapter: amazon
  api_key: <YOUR AMAZON AWS API KEY>
  secret_key: <YOUR AMAZON AWS SECRET KEY>

Create config/schedule.rb:

every :hour do
  rake "solidus_fulfillment:process"
end

Add to deploy.rb:

require 'whenever/capistrano' # if you want whenever to manage the cron job

Configure the store

Set the SKU code for your products to be equal to the Amazon fulfillment SKU code.


Copyright (c) 2017 Rémy Coutable, released under the New BSD License Copyright (c) 2011 WIMM Labs, released under the New BSD License

FAQs

Package last updated on 30 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc