Skip navigation.
Home

OSCommerce Integration

The files mentioned here, as well as these installation instructions can now be found in the ASTPP svn tree

OSCommerce: www.oscommerce.org

We have chosen to integrate with oscommerce. This will allow you to setup a webstore selling postpaid or prepaid voip services as well as calling cards using only open source software.

Instructions

1. Add field to OSCommerce database:

"ALTER TABLE products ADD notify_astpp tinyint(4) NOT NULL default 0;"
"ALTER TABLE products ADD astpp_extra text;"

2. Add these lines at the bottom of catalog/admin/includes/configure.php and catalog/includes/configure.php.

define('ASTPP_NOTIFY_URL','http://"Location of astpp-auto-admin.cgi"');

4. Apply the following patch to OSCommerce Attach:osc-diff-3.txt

5. Copy astpp_notify.php into catalog/admin/

6. You can now add your settings into the product setup in the "ENTRY_ASTPP_EXTRA" box. When the order is changed to status 3, delivered, ASTPP will be called and calling cards or whatever you sold will be added. Here are some
sample values. They MUST be comma "," seperated.

function=create_cc,brand=default-cc,value=10000,pins=1,status=1,auth=aslk

function=add_account,brand=default,amount=100000,posttoexternal=0,creditlimit=0,auth=aslk

function=add_device,type=SIP,amount=0,context=astpp-outgoing,auth=aslk