<body onload="document.payment.submit()">
<form name="payment" action="https://www.2checkout.com/2co/buyer/purchase" method="post">
<input type="hidden" name="sid" value="<?= $co_sid ?>">
<input type="hidden" name="total" value="<?= $total ?>">
<input type="hidden" name="item_name" value="<?= $item_name ?>">
<input type="hidden" name="cart_order_id" value="<?= substr(strtoupper(md5(uniqid(rand(), true))), 0, 10) ?>">
<input type="hidden" name="secret" value="<?= $co_secret ?>">
<input type="hidden" name="pay_method" value="CC">
<input type="hidden" name="fixed" value="Y">
<input type="hidden" name="custom" value="<?= urlencode($custom) ?>">
<input type="hidden" name="invoice_id" value="<?= $invoice_id ?>">
<input type="hidden" name="notify_url" value="<?= urlencode($notify_url) ?>">
<input type="hidden" name="return" value="<?= urlencode($return_url) ?>">
<input type="hidden" name="cancel_return" value="<?= urlencode($cancel_url) ?>">
</form>