psigate and :invoice

6 views
Skip to first unread message

Jodi Showers

unread,
Apr 30, 2009, 11:08:29 AM4/30/09
to activem...@googlegroups.com
Psigate's recurring billing api builds the charge quantity by summing
up invoice itemInfos, It also builds autobuilds invoices for query

<ItemInfo>
<ProductID>NEWSPAPER</ProductID>
<Description>TORONTO STAR</Description>
<Quantity>1</Quantity>
<Price>25</Price>
<Tax1>2</Tax1>
<Tax2>1.25</Tax2>
</ItemInfo>

<ItemInfo>
<ProductID>Three Month Promotion</ProductID>
<Description>Flyer Coupon</Description>
<Quantity>1</Quantity>
<Price>-10</price>
</ItemInfo>

In order to support the common AM interface, where only an :amount is
provided, I would then need to generate a single generic
ItemInfo...hiding capabilities of the gateway

...else if :invoice could hold a sub hash of itemInfo line items -
paypal seems to be the sole user of the :invoice - used for a callback
it seems

else a new hash ? :line_items ?

thoughts?

thanks.
Jodi


Cody Fauser

unread,
May 12, 2009, 10:22:37 PM5/12/09
to activem...@googlegroups.com
See the CyberSource gateway for :line_items format. You can keep the
same interface accepting an amount, but the gateway wouldn't use the
information.
--
Cody Fauser
http://shopify.com - e-commerce done right
http://www.codyfauser.com - blog
http://peepcode.com/products/activemerchant-pdf - ActiveMerchant PeepCode
http://www.oreilly.com/catalog/rjsrails - RJS Templates for Rails
Reply all
Reply to author
Forward
0 new messages