All I made a paypal payment script, but it showed paypal email / price not existed errors. Can anybody tell what's wrong for this php script? If I put directly the paypal account and price there, there are no problems. <html> <body onLoad="document.mform.target='_self';document.mform.submit()"> <form name=mform target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <!-- a Buy Now button is specified by the command _xclick --> <input type=hidden name=cmd value=_xclick> <input type=hidden name=business value="<?php echo $paypal_email; ?>"> <!-- Allow customer to enter desired quantity --> <input type=hidden name=undefined_quantity value=1> <input type=hidden name=item_name value="Directory Submission"> <input type=hidden name=item_number value=135> <!-- No currency_code variable has been specified, so monetary amount is assumed to be USD --> <input type=hidden name=amount value="<?php echo $price; ?>"> <! Passthrough variables for order tracking or other purpose --> <input type=hidden name=invoice value=$myFile> <input type=hidden name=no_shipping value=1> <input type=hidden name=return value=http://www.gtsee.com> <input type=hidden name=cancel_return value=http://www.gtsee.com> <!-- Do not prompt customer to include a note with the purchase --> <!-- Do not prompt customer to include a note with the purchase --> <input type=hidden name=no_note value=1> <input type=hidden name=rm value=2> </form> </body> </html>
Can anybody check what's wrong with this payment script? Also it doesn't accept credit card payment, and has no options for credit card payment in the payment page. Thanks