If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Payment Modules / How to make a payment module???

How to make a payment module???

Locked

Started by chris_the_ninja on 6 Sep 2006, 5:07 PM · Views: 2,365

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
6 Sep 2006, 5:07 PM
#1
chris_the_ninja avatar

chris_the_ninja

New Zenner

Join Date:
Aug 2006
Posts:
28
Plugin Contributions:
0

How to make a payment module???

Ok I have tried searching and going through all sorts of threads getting this thing to work and it still doesn't the documentation for integration for Verus Card Services reads as follows:

<?
//set the URL that will be posted to.
$eftsecure_url = "https://va.eftsecure.net/cgi-bin/eftbankcard.dll?transaction";
//make your query.
$data = "m_id=" . $mid; //your eftsecure merchant id.
$data .= "&m_key=" . $mkey; // your eftsecure merchant key;
$data .= "&T_amt=" . urlencode($amount); // The amount to be charged. Always encode
// any data given to you over the web. it is more
// secure and reliable.
$data .= "&C_name=" . urlencode($cardholder_name);
$data .= "&C_address=" . urlencode($billing_address);
$data .= "&C_state=" . urlencode($billing_state);
$data .= "&C_city=" . urlencode($billing_city);
$data .= "&C_cardnumber=" . urlencode($cardnumber);
$data .= "&C_exp=" . urlencode($exp_Date);
$data .= "&C_zip=" . urlencode($billing_zip);
$data .= "&C_email=" . urlencode($email_addr);
$data .= "&T_code=02"; // transaction type indicator
//now we will make the transaction. the first method is the preferred internal method

//using the built in CURL functions.
$ch = curl_init(); //initialize the CURL library.
curl_setopt($ch, CURLOPT_URL, $eftsecure_url); // set the URL to post to.
curl_setopt($ch, CURLOPT_POST, 1); // tell it to POST not GET (you can GET but POST is
//preferred)
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // set the data to be posted.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // this tells the library to return the
// data to you instead of writing it to
// a file
$res = curl_exec($ch); // make the post.
curl_close($ch); // shut down the curl library.
echo $res . "<br>\n"; // this is the response.
// or you can also use the curl executable directly.
$curl = "/usr/bin/curl"; // the location of the curl executable.
$fp=popen("$curl --data "$data" $eftsecure_url","r"); // this allows you to get the
// data directly from curl
while(!feof($fp)) $res .= fread($fp, 1024); // read all the output.
pclose($fp); // close the connection to curl.
echo "$res" . "<br>\n"; // this is the response.

// once you have the response then you need to parse its different components.
echo "<br><hr><br>\n";
echo "Approval Indicator: " . $res[1] . "<br>"; //A is approved E is declined/error.
echo "Approval/Error Code: " . substr($res, 2, 6) . "<br>\n";
echo "Approval/Error Message: " . substr($res, 8, 32) . "<br>\n";
echo "Front-End Indicator: " . substr($res, 40, 2) . "<br>\n";
echo "CVV Indicator: " . $res[42] . "<br>\n";
echo "AVS Indicator: " . $res[43] . "<br>\n";
echo "Risk Indicator: " . substr($res, 44, 2) . "<br>\n";
echo "Reference: " . substr($res, 46, 10) . "<br>\n";
echo "Order Number: " . substr($res, strpos($res, chr(28)) + 1,
strrpos($res, chr(28) - 1)) . "<br>\n";
?>


I've tried plugging this in and all I get is a secruity error--I need help here...

18 Sep 2006, 3:13 PM
#2
ambook avatar

ambook

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: How to make a payment module???

Have you contacted Verus to see if they can help out? My company just switched to Verus, and I am very interested in connecting my existing cart with their service.
Eric

18 Sep 2006, 4:27 PM
#3
chris_the_ninja avatar

chris_the_ninja

New Zenner

Join Date:
Aug 2006
Posts:
28
Plugin Contributions:
0

Re: How to make a payment module???

I indeed have contacted Verus and they pretty much said "Use Our Cart or Your Screwed(Paraphrase of course) I ended up having to use the standard paypal ipn module and it seems to be working fine.

18 Sep 2006, 4:31 PM
#4
chris_the_ninja avatar

chris_the_ninja

New Zenner

Join Date:
Aug 2006
Posts:
28
Plugin Contributions:
0

Re: How to make a payment module???

You can of course create your own module for them they give you the specifications for it but you have to Write it if you know how.

you can find the spec sheet at http://www.veruscs.com/MediaCenter/VirtualCheckHTTPS.pdf

18 Sep 2006, 5:44 PM
#5
ambook avatar

ambook

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: How to make a payment module???

I just talked with them and the guy I spoke to sent me a zen cart module. I haven't tried it out yet, but it's worth a shot. I'll send it to you. Let me know how it works for you.
Eric

18 Sep 2006, 5:47 PM
#6
chris_the_ninja avatar

chris_the_ninja

New Zenner

Join Date:
Aug 2006
Posts:
28
Plugin Contributions:
0

Re: How to make a payment module???

Really!! Wow! then they lied to me. But yeah that would be awesome if I could get that. Thank You

22 Sep 2006, 11:20 PM
#7
justinfm avatar

justinfm

New Zenner

Join Date:
Feb 2006
Posts:
7
Plugin Contributions:
0

Re: How to make a payment module???

Has anyone figured this out? I think the module was called Net1.