using checkout.pl and a payment processor

Get help with nopcart's interaction with payment provider gateways like Authorize.net, Worldpay, etc.

Moderators: Koibito, Stefko, Randy

using checkout.pl and a payment processor

Postby hatysbox » Thu Sep 15, 2005 4:22 am

I have my site running and I want to introduce a payment processor.
I notice that the instuctions say that the form action needs to be changed to link to the url of the payment processor. However, this will stop my site from running checkout.pl.

Therefore, my question is can you run checkout.pl as well as a payment processor.

Is there some script that you can add to checkout.pl to link it to a payment processor.

That is I want site to work as follows.
Hit Submit order button.
Reads checkout.pl and send emails to me and customer
and Transfer + Link details to payment processor.

I hope I am making some sense.

Any help would be greatly appreciated.
hatysbox
 
Posts: 16
Joined: Thu Sep 15, 2005 4:11 am

Postby Stefko » Thu Sep 15, 2005 4:41 am

Sure can!

checkout.pl can process the order and submit to a payment processor and even return the results of the payment processor and process that data as well!

The checkout.pl I use will write to a Database all the order info in one table and the products ordered in another table (which are cross-linkecd) adjust the inventory in the Inventory Database, process to a gateway, if the request is denied, then inventory is added back and the DENIED status a added the to the order info database, and an email is created with the Order Confermation or Order Denied!

What gateway/payment processor are you using?
Last edited by Stefko on Thu Sep 15, 2005 4:48 am, edited 1 time in total.
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Postby hatysbox » Thu Sep 15, 2005 4:43 am

Fantastic.
I am going to use national australia bank.
I have instructions of what fields I need.
Last edited by hatysbox on Thu Sep 15, 2005 4:49 am, edited 1 time in total.
hatysbox
 
Posts: 16
Joined: Thu Sep 15, 2005 4:11 am

Postby Stefko » Thu Sep 15, 2005 4:53 am

link to intergration guide?
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Postby hatysbox » Thu Sep 15, 2005 4:56 am

It is a 19 page word document but most of it does not mean much.
Would you like me to email it to you
hatysbox
 
Posts: 16
Joined: Thu Sep 15, 2005 4:11 am

Postby Stefko » Thu Sep 15, 2005 4:57 am

Sure,

will look it over, and see what they offer, and what can be done!
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Postby Stefko » Thu Sep 15, 2005 5:11 am

Well it's pretty straight forward!

Theres enough return data to work with!
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Postby hatysbox » Thu Sep 15, 2005 5:14 am

I noticed someone posted this and they put it down the bottom of the checkout.pl.
Is this the kind of modification I should be using and changing it for my particular needs.

#Generate random cart ID
$cart_id = int(rand(10000000));
$cart_id .= ".$$";
$cart_id =~ s/-//g;

#Build redirect string and output it.
print "Location: ";
print "http://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c?";
#SID is your seller ID given to you by 2Checkout
print "sid=146";
print "&total=$TOTAL";
print "&cart_order_id=$cart_id";
print "&card_holder_name=$b_first $b_last";
print "&street_address=$b_addr $b_addr2";
print "&city=$b_city";
print "&state=$b_state";
print "&zip=$b_zip";
print "&phone=$b_phone";
print "&email=$b_email";
#added this to the standard form for 2 Checkout
print "&country=$b_country";
print "\n\n";
hatysbox
 
Posts: 16
Joined: Thu Sep 15, 2005 4:11 am

Postby Stefko » Thu Sep 15, 2005 5:19 am

That's one way to do it and should work, just change the "print data" what the bank requires!
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Postby hatysbox » Thu Sep 15, 2005 5:23 am

Thanks Stefko

Down the bottom of my checkout.pl I have this

print "<h2>Thank you</h2>";
print "Thank you for your order from our online store. You will receive a confirmation email of your order ";
print "momentarily. Please contact us at $youremail if you have any questions or concerns.";
print "<P>";
print "<A HREF=\"$returnpage\" target=_top>Return Home</A>";
print "<P>";

should I replace this with the mod just posted
or should it go above or below this.
hatysbox
 
Posts: 16
Joined: Thu Sep 15, 2005 4:11 am

Postby Stefko » Thu Sep 15, 2005 5:24 am

After the checkout page, I like to have a confirm your order (part of checkout.pl) and SUMIT

Different Roads, Same Destination!
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Postby Stefko » Thu Sep 15, 2005 5:26 am

repace that, and you should have a confirmed or denied PERL script to finish the process and lead to a thankyou page!
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Postby hatysbox » Thu Sep 15, 2005 5:46 am

just gave it go and I seam to be having some problems
is there another way to go about it
i think my problem is the mod i posted had print value where my bank says to use <input type =â€
hatysbox
 
Posts: 16
Joined: Thu Sep 15, 2005 4:11 am

Postby hatysbox » Thu Sep 15, 2005 11:32 pm

I assume the line
#Build redirect string and output it.
print "Location: ";
print "http://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c?";

is the line that opens up a new url

I tried to test this but putting in the line
#Build redirect string and output it.
print "Location: ";
print "http://www.national.com.au/";

all that happened was the url address was printed on a white screen

so my question is what is the code I need to use in checkout.pl to open up a new url and where should it be put in checkout.pl
hatysbox
 
Posts: 16
Joined: Thu Sep 15, 2005 4:11 am

Postby Stefko » Fri Sep 16, 2005 1:59 am

Please refer to the Welcome e-mail for the applicable Test URL
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Next

Return to Help: Payment Gateways

Who is online

Users browsing this forum: No registered users and 1 guest

cron