WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
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 Update Picture
Robb Hanisee
Date : May 25th 2001
Grade : 2 of 5 (graded 2 times)
Viewed : 6756
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

  Submit your own code examples 
 

<?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("jim@openecho.com");

// 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());
?>



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
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
Authorize.net AIM Interface Class v1.0.0
Categories : PHP, PHP Classes, Ecommerce, Payment Gateways
ECHO-Perl Module Credit Card, Check and ACH Transaction Processor
Categories : Perl, Cybercash, Classes and Objects, Ecommerce, Credit Cards
gpg encryption. 99% of it will apply to PGP.
Categories : Credit Cards, Authentication, Ecommerce, Misc
shopping cart class with add/edit/delete product functionality.
Categories : PHP, PHP Classes, Ecommerce
ECHO-PHP Class Real Time Transaction Processor v1.4.4 for Credit Cards and Checks / ACH
Categories : PHP Classes, Cybercash, Classes and Objects, Ecommerce, PHP
ECHOcart - Open Source Shopping Cart
Categories : PHP, Credit Cards, Ecommerce
Validating Credit Card Numbers Without Bank Involvement
Categories : Credit Cards, Ecommerce, Java Script
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 validation routine. Uses MOD 10 to check if credit card number is valid.
Categories : Ecommerce, Credit Cards, PHP, Complete Programs
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
simple shopping cart for php3
Categories : PHP, PHP Classes, Complete Programs, Ecommerce
A set of functions to check the validity of a credit card number.
Categories : Ecommerce, Credit Cards, PHP
 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