In-House Cards : Sample programs : Bonus Cash : E-Commerce and Bonus Cash : GetItemExpanded
 
GetItemExpanded
 
If an In-House Cards item is configured to use the new Bonus Cash functionality (that is it is configured with a Bonus Cash Rule in the item's template), Bonus Cash information is calculated when the GetItemExpanded call is made for that item. Bonus Cash information is returned as part of the price_xml as [dwp_bns]XXX[/dwp_bns] and [dwp_bnsext]YYY[/dwp_bnsext] (the Bonus Cash load times the quantity). In addition, when GetItemExpanded is called for a DebitWare reload, the following parameters need to be included in order for Bonus Cash information to be returned if applicable:
 
<dw_info><pass_no>385007001</pass_no><rel>75</rel></dw_info>
 
Where <rel> is the amount to be reloaded onto the card and <pass_no> is the pass number associated with the In-House Cards item which is being reloaded. ww.dll has been further modified so that the GetDWInfo call returns Bonus Cash information in the fields "CashOutBal" (which contains the Cash out Balance) and "AvailBonus" (which contains the Bonus Cash available).