Spree Marketplace uses the Spree Drop Ship extension in order to enable using Spree as a Marketplace. Mainly all that really means is that this extension enables sending payments to your drop ship suppliers through Balanced Payments, however I would like to add support for Stripe as well now that they are also beginning to offer payment services.
All the other main marketplace functionality - such as - vendors, product setup, shipment details etc... is all accomplished by Spree Drop Ship.
Add spree_marketplace to your Gemfile:
gem 'spree_marketplace', github: 'jdutil/spree_marketplace'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_marketplace:install
Once installed you must configure your Balanced Payments API key. To do so you have two options:
-
Simply setup Balanced as your payment processing method and spree_marketplace will use your payment methods api key.
-
Configure in an initializer by adding the following to the end of your
config/intializers/spree.rb
:SpreeMarketplace::Config[:balanced_api_key] = 'YourKey'
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
bundle
bundle exec rake test_app
bundle exec rspec spec
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_marketplace/factories'
- On dso complete credit supplier bank account
- On order complete credit marketplace bank account w/commission
- On order complete credit marketplace bank account w/tax?
- De-couple Supplier payments from Balanced Payments so that Balanced is not required to use this extension but could be added w/say spree_balanced_marketplace. Or make code detect between balanced or stripe payments properly?
Copyright (c) 2013 Jeff Dutil, released under the New BSD License