# Payment $cart

{'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 .= "
"; $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 .= "
- Make checks or money orders payable to LiveJournal.com.
"; $ret .= "
- Checks will only be accepted from the United States and Canada and must be made out in United States fund (Your bank will calculate the exchange rate if you suffix the amount field with \"US Funds\").
"; $ret .= "
- Orders received later than 1 month from order creation date will not be accepted.
"; $ret .= "
- Include with payment either a print-out of this page or a note referencing:
  Payment $cart.
"; $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?>