Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

credit card payments with PHP

Status
Not open for further replies.

Murugs

Technical User
Jun 24, 2002
549
US
Hello All
I am coming to TT as my last resort.
I have designed a form which has name,address,email etc..details as well as credit card number amount etc and when some one submits the form the details to go to a Mysql database.
Simple.
Now comes the hard part. How do I make this form to accept credit cards. I have a account with verisign. When I called support the guy told me that they don't support Linux/PHP officially but they sent me a email which has some sample PHP code. I do not know where to include this code or how to start programming or get info from the email sent by customer service. do I need to create a separate PHP file.
Some friends told me that it is easy just plug in the code..but it doesn't seem so.

I have a simple form.html which calls formaction.php.

Could some one explain step by step and i have less time to accomplish this.
Should I leave verisign and go to a different gateway provider completely since they don't support PHP.
Totally Confused.

regards
MP
 
Insufficient data for a meaningful answer.

The sample code may contain snippets that, when copied to your formaction.php scripot, give you the functionality you need. But it's impossible to say without knowing what Verisign sent you.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Sorry for the insufficent information..
But the file is little lengthy and I am just including some 2 or 3 lines..

// dl("pfpro.so");

// Fix this line according to where your Payflow pro certificate may be
found
// (this is the certificate included in the VeriSign SDK, at

// verisign/payflowpro/whatever/certs)


pfpro_init();
$response = pfpro_process($transaction, 'testabc-payflow.verisign.com', 443);
if (!$response) {

die("Couldn't establish link to VeriSign.\n");
}

echo "
VeriSign responded with RESULT code ".$response[RESULT];
 
It looks like the instructions they gave you assume that you're running PHP on a unix-like OS. The "dl(...)" line is loading a .so file, which is more common there -- typically, you'd specify a .dll file in the dl() invocation on Win32.

Have you looked at the following PHP online manual pages?
?

It looks like you need to download the PayFlow libraries appropriate to your OS, place the file where PHP can find it, modify the dl() invocation to use that library, then use the code Verisign gave you or the example code on the pfpro_process() man page.


Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top