Credit Card Authorizing using PHP<

liunx

Guest
I need a function:

<?php

function dotransaction($theCard,$theNameOnCard,$theBillingAddress,$theBillingZipCode,$theCharge) {

// If success
// return 1;
// else
return 0;

}

?>

What method and/or site you do consider it is the best, I need to do it using <!-- w --><a class="postlink" href="http://www.authorize.net">www.authorize.net</a><!-- w --> and <!-- w --><a class="postlink" href="http://www.charge.com">www.charge.com</a><!-- w --> charge and authorizationb services. Any one has work with them?

Thanks,

Newbie RodolfoI have worked with authorise.net but not the other one.

if you search <!-- w --><a class="postlink" href="http://www.hotsrcipts.com">www.hotsrcipts.com</a><!-- w --> there are some free class files that let you do authorise.net transactions.I wrote an authorize.net script a while ago, it can still be found in the Zend Code Gallery here: <!-- m --><a class="postlink" href="https://www.zend.com/codex.php?id=619&single=1">https://www.zend.com/codex.php?id=619&single=1</a><!-- m -->

For most authorization services it is just a matter of getting the documentation and posting the right values.

I usually use CURL to post the values - documentation is here: <!-- m --><a class="postlink" href="http://us4.php.net/curl">http://us4.php.net/curl</a><!-- m -->.

If you can't compile cURL into PHP, you can easily use exec to interface with the command line version (like I did in my script) - it works like a charm.

Adam
 
Back
Top