This is the presentation that accompanied LSU_JBOB's presentation at NYCCamp 2013 regarding Drupal Commerce. The session was designed for those who want to understand the broad concepts and processes that power Drupal Commerce. Foundational topics included commerce entities, the checkout process and payment gateways. In addition, brief explanations on inventory and shipping management, as well as accepting different forms of payment were discussed.
The second half of the session showcased two real world examples of companies using Drupal Commerce: The Diamond Reserve Steak Company that sells Texas beef using Drupal & The Robin Hood Foundation that uses Drupal Commerce to fight poverty in NYC.
6. Products
• Something you’re trying to sell
• A title and a price
• Create product references on nodes for end users
7. Orders
• Start out with a status of “cart”
• Once a product is placed in the cart, a new order is created
• Contains Line Items, payment transactions
• Contains customer information and order metadata
8. Line Items
• An instance of a product in an order (or cart)
• Able to contain personalized options for that instance of
the product
9. Payment Transactions
• Hold all detailed financial info and metadata
• Can have a status of accepted or declined
• Payload from Payment Gateways
11. Payment Gateways
• You don’t want to store actual credit card numbers
( compliance headaches, security headaches)
• Use 3rd Party Payment Gateways
• Send payment info over https to the third party and get
accepted or declined
• Paypal, Payflow Pro, Authorize.Net, Amazon Payments,
Bitcoin?!?
19. Hooks for Developers
• hook_commerce_checkout_router - routes the default
checkout url to an alternate url if neccessary
• hook_commerce_checkout_complete - Allows other
modules to perform business logic when an order is
completed
• hook_commerce_checkout_pane_info_alter - alter an
existing checkout pane’s metadata
• MUCH MUCH MORE