Shopify/active_merchant — pull request #362 by craigchristenson (2012-05-18 20:35:05+00:00)
Title: adding c_prod parameter support

The current branch only supported the 2Checkout Pass Through Products parameter set which requires that the seller mark tangible sales as shipped before they will charge the customer. A new method c_prod method was added to allow support for 2Checkout Third Party Cart Parameters which charge automatically.

The default purchase routine URL was changed from the multi-page checkout to the more popular single page checkout.

The notification took the item_id from the cart_order_id parameter returned by 2Checkout. On sales using the Pass Through Products parameters, 2Checkout does not return this parameter causing this method to return nil. The method now falls back to the merchant_order_id when cart_order_id is not passed back so that both the Third Party Cart parameters and Pass Through Product Parameters can be used.

Unit tests were updated to reflect the changes and are all passing.

All changes have been tested on live sales to insure backward compatibility with current version.