Payment Processing Script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sebenza
Forum Newbie
Posts: 6
Joined: Mon Dec 13, 2004 4:25 pm

Payment Processing Script

Post by sebenza »

I need to create a simple php script to post some cc info to a gateway. The gateway then basically returns an Approved or a Declined message. What do you think is the best and safest way to go about this (calling the string). Basically, all the cc details and account login info are sent in one long string. The string also carries a "return url". So an example return would be domain.com/script.php?Login=Fail.

Thanks!
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

every cc auth company I've worked with use post data and I use cURL to send the data. There's no reason you couldn't do the same with url params though.

good thing about cURL is that you can do it with SSH and it's easy to enable/use.
sebenza
Forum Newbie
Posts: 6
Joined: Mon Dec 13, 2004 4:25 pm

Post by sebenza »

Cool... yeah, I just started coding it to use cURL. Thanks.
Post Reply