3 # process/cust_pay.cgi: Add a payment (process form)
6 # http://server.name/path/cust_pay.cgi
8 # Note: Should be run setuid root as user nobody.
10 # ivan@voicenet.com 96-dec-11
12 # rewrite ivan@sisd.com 98-mar-16
14 # Changes to allow page to work at a relative position in server
15 # bmccane@maxbaud.net 98-apr-3
19 use FS::UID qw(cgisuidsetup);
20 use FS::cust_pay qw(fields);
22 my($req)=new CGI::Request;
23 &cgisuidsetup($req->cgi);
25 $req->param('invnum') =~ /^(\d*)$/ or die "Illegal svcnum!";
28 my($new) = create FS::cust_pay ( {
31 } qw(invnum paid _date payby payinfo paybatch)
38 CGI::Base::SendHeaders(); # one guess
42 <TITLE>Error posting payment</TITLE>
46 <H4>Error posting payment</H4>
48 Your update did not occur because of the following error:
50 <P>Hit the <I>Back</I> button in your web browser, correct this mistake, and press the <I>Post</I> button again.
55 $req->cgi->redirect("../../view/cust_bill.cgi?$invnum");