{'userid'}) { my $remote = LJ::get_remote(); return "You must be logged in as this cart's owner to proceed with checkout." unless $remote; return "You do not own this cart. If you'd like to start a new cart, please click " . "here." unless $cartobj->{'userid'} == $remote->{'userid'}; } unless (LJ::Pay::is_valid_cart($cartobj)) { return "The given cart contains items that are no longer valid. This could be caused by conflicts with other " . "carts created during the same time. Please try again with a new cart."; } my $ret; $ret .= "Payment $cart"; $ret .= ""; $ret .= ""; $ret .= "

Order ($cart)

"; LJ::Pay::render_cart($cartobj, \$ret); if ($cartobj->{'amount'} > 0) { $ret .= "

Pay

"; $ret .= "If the above is correct, send your payment to:
"; $ret .= "
" . LJ::Pay::postal_address_text() . "
"; $ret .= "Please note the following guidelines:"; $ret .= ""; $ret .= "

"; if (LJ::Pay::cart_needs_shipping($cartobj)) { $ret .= "Your shipping address is on file, associated with your order number. "; } $ret .= "Thank you for your order!

"; } else { # mark cart as 'free' and ready for processing my $dbh = LJ::get_db_writer(); $dbh->do("UPDATE payments SET used='N', mailed='N', ". "method='free', daterecv=NOW() WHERE payid=?", undef, $cartobj->{'payid'}); $ret .= ""; $ret .= ""; } $ret .= ""; return $ret; } _code?>