ECHO-PHP Class drives all types of real-time credit card and check transactions using ECHO
merchant processings free secure payment gateway and open-source real-time software.
Supports system check, address verification, authorization and deposit, deposit, credit, electronic
check withdrawal, and more. Source Code is provided. Perfect for ISP/IPPs to use for billing their
clients, since this supports electronic checks as well. Ideal for all commerce applications. Perfect
for ISP/IPPs to use for billing their clients, since this supports electronic checks as well.
Download the bundle here:
http://www.openecho.com/php/echophp-1.4.tar.gz
Support available at: http://www.openecho.com
<?php
// this was written and tested in PHP4 so I can't
// vouch for PHP3.. but it should be fine.
include ("echophp.class");
$echoPHP = new EchoPHP;
$echoPHP->set_EchoServer("https://wwws.echo-inc.com/scripts/INR300.EXE");
$echoPHP->set_transaction_type("EV");
$echoPHP->set_order_type("S");
$echoPHP->set_merchant_echo_id("123>4681573"); // use your own id here
$echoPHP->set_merchant_pin("98164734"); // 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");