|
|
| Title : |
Real-Time Transaction Processing PHP Class. Credit Cards & Checks. Supports system check, address verification, authorization and deposit, deposit, credit, commercial card, electronic check debit, and more. |
| Categories : |
PHP Classes, OpenSSL, Credit Cards, Ecommerce, Verisign Payflow Pro |
 Robb Hanisee |
| Date : |
May 25th 2001 |
| Grade : |
2 of 5 (graded 2 times) |
| Viewed : |
14204 |
| File : |
echophp.class
|
| Images : |
No Images for this code example. |
|
| Search : |
More code by Robb Hanisee |
|
| Action : |
Grade This Code Example
|
|
| Tools : |
My Examples List |
|
|
|
|
|
|
<?php
// this was written and tested in PHP4 so I can't
// vouch for PHP3.. but it should be fine.
// we set this up to work with ECHO processing svcs. Their gateway is free and they have no
// software licensing or purchase fees. Support is available at http://www.openecho.com
// this example show how to use the downloadable PHP Class provided
include ("echophp.class");
$echoPHP = new EchoPHP;
$echoPHP->set_EchoServer("https://wwws.echo-inc.com/scripts/INR200.EXE");
$echoPHP->set_transaction_type("EV");
$echoPHP->set_order_type("S");
$echoPHP->set_merchant_echo_id("123>6481573"); // use your own id here
$echoPHP->set_merchant_pin("98123734"); // use your onw pin here
$echoPHP->set_billing_phone("503-123-4567");
$echoPHP->set_billing_ip_address($REMOTE_ADDR);
$echoPHP->set_billing_name("Visa");
$echoPHP->set_billing_address1("18303 Some Street");
$echoPHP->set_billing_city("Some City");
$echoPHP->set_billing_state("Some State");
$echoPHP->set_billing_zip("98223");
$echoPHP->set_billing_country("USA");
$echoPHP->set_billing_phone("503-123-4569");
$echoPHP->set_billing_fax("503-123-4569");
$echoPHP->set_billing_email("[email protected]");
// check payment info if supplied...
/*
$echoPHP->set_ec_bank_name($ec_bank_name);
$echoPHP->set_ec_first_name($ec_first_name);
$echoPHP->set_ec_last_name($ec_last_name);
$echoPHP->set_ec_address1($ec_address1);
$echoPHP->set_ec_city($ec_city);
$echoPHP->set_ec_state($ec_state);
$echoPHP->set_ec_zip($ec_zip);
$echoPHP->set_ec_rt($ec_rt);
$echoPHP->set_ec_account($ec_account);
$echoPHP->set_ec_serial_number($ec_serial_number);
$echoPHP->set_ec_payee($ec_payee);
$echoPHP->set_ec_id_state($ec_id_state);
$echoPHP->set_ec_id_number($ec_id_number);
$echoPHP->set_ec_id_type($ec_id_type);
$echoPHP->set_ec_license_state($ec_id_state);
$echoPHP->set_ec_license_number($ec_id_number);
*/
$echoPHP->set_debug("T");
$echoPHP->set_cc_number("4005 5500 0000 0019");
$echoPHP->set_grand_total(199.34);
$echoPHP->set_ccexp_month(12);
$echoPHP->set_ccexp_year(2004);
$echoPHP->set_counter($echoPHP->getRandomCounter());
if ($echoPHP->Submit()) {
print("You made it!<BR>");
} else {
print("You didn't make it.<BR>");
}
print($echoPHP->get_echotype2());
?>
|
|
| Credit Card Identification and Validation Class - The credit_card class provides methods for cleaning, validating and identifying the type of credit card numbers. Categories : PHP, PHP Classes, Credit Cards, Ecommerce, Algorithms | | | an example of the cyberlib payment class Categories : PHP, PHP Classes, Ecommerce, Credit Cards | | | credit card security code Categories : PHP, Credit Cards, PHP Classes, Credit Cards | | | A set of functions to check the validity of a credit card number. Categories : Ecommerce, Credit Cards, PHP | | | Authorize.net AIM Interface Class v1.0.0 Categories : PHP, PHP Classes, Ecommerce, Payment Gateways | | | Credit Card validation routine. Uses MOD 10 to check if credit card number is valid. Categories : Ecommerce, Credit Cards, PHP, Complete Programs | | | a class for doing payments to a cybercash server
Categories : Ecommerce, Complete Programs, PHP Classes, PHP | | | simple shopping cart for php3 Categories : PHP, PHP Classes, Complete Programs, Ecommerce | | | shopping cart class with add/edit/delete product functionality. Categories : PHP, PHP Classes, Ecommerce | | | Example Shopping cart class Categories : Ecommerce, PHP, PHP Classes | | | gpg encryption. 99% of it will apply to PGP.
Categories : Credit Cards, Authentication, Ecommerce, Misc | | | After discovering some credit card validation routines didnt work - here is one that I found works with all the numbers I have tried so far Categories : Credit Cards, Ecommerce, PHP | | | Validation function for LUHNMod10 and variant. Can discriminate credit card numbers of varying lengths. Uses [Double >> Sum-of-Digits] transform. Categories : Credit Cards, Authentication, Ecommerce, PHP | | | Credit Card Numbers for testing Categories : Credit Cards, Ecommerce, Debugging | | | ECHO-Perl Module Credit Card, Check and ACH Transaction Processor Categories : Perl, Cybercash, Classes and Objects, Ecommerce, Credit Cards | |
| |
| | | | | Robb Hanisee wrote :673
TWO OF THE FIELDS IN THIS EXAMPLE ARE NOW OUT OF DATE:
ec_license_number
Note: This field is obsolete and should not be used.
Use the field ec_id_number instead.
The driver`s license number of the owner of the checking account.
This field applies to electronic check transactions only.
ec_license_state
Note: This field is obsolete and should not be
used.
Use the field ec_id_state instead.
The state issuing the driver`s license of the owner of the checking account.
You can contact us for support issues:
support AT openecho DOT com
800 233 0406 ext 3109
| |
|
|