André Walker > Business-CPI-0.902 > Business::CPI::Cart

Download:
Business-CPI-0.902.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.902   Source   Latest Release: Business-CPI-0.908

NAME ^

Business::CPI::Cart - Shopping cart

VERSION ^

version 0.902

DESCRIPTION ^

Cart class for holding products to be purchased. Don't instantiate this directly, use "new_cart" in Business::CPI::Gateway::Base to build it.

ATTRIBUTES ^

buyer

The person paying for the shopping cart. See Business::CPI::Buyer.

discount

Discount to be applied to the total amount. Positive number.

tax

Tax to be applied to the total amount. Positive number.

handling

Handling to be applied to the total amount. Positive number.

METHODS ^

add_item

Create a new Business::CPI::Item object with the given hashref, and add it to cart.

get_item

Get item with the given id.

get_form_to_pay

Takes a payment_id as the only argument, and returns an HTML::Element form, to submit to the gateway.

AUTHOR ^

André Walker <andre@andrewalker.net>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by André Walker.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: