Active Merchant library for integration with order fulfillment services.
Add to your gem file
gem 'active_fulfillment', :git => 'git://github.com/rgenerator/active_fulfillment.git'
fulfill(order_id, shipping_address, line_items, options = {})
-
order_id is internal order identifier
-
shipping_address format (hash with keys)
- name
- address1
- address2
- address3
- city
- state
- country
- zip
- phone
-
line_items format (array of hashes)
- sku
- quantity
- price
- shipping_price
- options hash
-
Any other extra information goes into options hash
A Response
object with the following params
:
- ????
Cafe Press specific methods
- Fetching the current data
fetch_tracking_data(cafe_press_order_id)
- Getting current order status
get_order_status(cafe_press_order_id)
- Cancel an order
cancel_order(cafe_press_order_id)