Zend - The PHP Company




Commerce

Add Code


"Customers who bought this item also bought..." lists maker  

Type: code fragment
Added by: runix
Entered: 14/08/2001
Last modified: 05/12/2009
Rating: **** (12 votes)
Views: 15065
This code will help you to make those "Customers who bought this item also bought..." lists


ABA (Bank ID) Validator  

Type: code fragment
Added by: davidbhale
Entered: 19/07/2002
Last modified: 31/10/2010
Rating: - (fewer than 3 votes)
Views: 10539
This function validates the supplied ABA number using a simple mod 10 check digit routine.


Amazon Affiliate "Optimizer"  

Type: code fragment
Added by: mcobby
Entered: 31/08/2000
Last modified: 31/10/2008
Rating: **** (5 votes)
Views: 9623
provides a normal search interface to Amazon, which works at 5% fees, and takes the results and turns them into "individually linked books"which should earn 15% but does so while preserving the look and feel of amazon.


Authorize.net AIM interfacing class  

Type: class
Added by: micahcarrick
Entered: 12/04/2005
Last modified: 04/12/2004
Rating: ***** (3 votes)
Views: 9464
This is a class used to interface to authorize.net. It is just a small class to ease the process of constructing the fields string being passed in an HTTPS POST via CURL and returning the response in an array. It also has two handy functions to dump the data to a neat table for debugging purposes.


Authorize.net AIM Script  

Type: application
Added by: erikjs
Entered: 19/05/2003
Last modified: 04/12/2007
Rating: ***** (6 votes)
Views: 7483
An easy to use script to help those who are having difficulty with Authorize.net's AIM method.


Authorize.net AIM Script (Version 2.0)  

Type: application
Added by: ErikJS
Entered: 10/01/2004
Last modified: 02/11/2006
Rating: ***** (7 votes)
Views: 12230
An easy to use script to help those who are having difficulty with Authorize.net's AIM method. (New version allows use of all Authorize.net's returned information)


Authorize.net Interface Class  

Type: class
Added by: adamolsen
Entered: 18/07/2001
Last modified: 02/11/2002
Rating: **** (6 votes)
Views: 15881
A class to interface with the authorize.net merchant account company. Supports credit cards or checks.


Authorize.Net, QuickCommerce, PlanetPayment Gateway Class  

Type: class
Added by: praefex
Entered: 09/05/2003
Last modified: 07/12/2006
Rating: **** (3 votes)
Views: 8508
This is an update to a class already in the code library. It is updated to handle Auth.net's v3.1 AIM Transactions.


CCVal  

Type: code fragment
Added by: Darguz
Entered: 14/03/2000
Last modified: 08/12/1999
Rating: **** (19 votes)
Views: 13935
This function accepts a credit card number and, optionally, a code for a credit card name. If a Name code is specified, the number is checked against card-specific criteria, then validated with the Luhn Mod 10 formula. Otherwise it is only checked against the formula. It can be used for Visa, Mastercard, Amex, Discover, Diners Club and JCB


Credit Card Identification and Validation Class  

Type: class
Added by: zak
Entered: 02/03/2000
Last modified: 05/12/2000
Rating: **** (15 votes)
Views: 35203
The credit_card class provides methods for cleaning, validating and identifying the type of credit card numbers.

Methods include:
    identify() - Find the type of credit card (Mastercard, Visa, etc...) based on the card number.
     The method can identify 8 different card types, including Amex, Mastercard and Visa

    validate() - Validate a number using the LUHN (mod 10) algorithm.

    check() - Validate and identify a credit card number.

    clean_no() - Strip all non-numeric characters from the passed value and return an integer.


CyberClass  

Type: class
Added by: Rival7
Entered: 06/04/2000
Last modified: 05/12/2000
Rating: ***** (11 votes)
Views: 25021
CyberClass is an interface to the CyberCash Cash Register Service for online financial transactions (such as credit card processing). This is an adaptation to the origional CyberLib but included is automatic 'merchant_conf' parsing. Check out my article at http://www.phpbuilder.com/columns/nathan20001225.php3


Easy Display of Dollars?  

Type: code fragment
Added by: woodys
Entered: 13/09/2000
Last modified: 01/12/2000
Rating: ** (3 votes)
Views: 9887
You know those stupid little things you come accross after years in the profession, that make you say "Golly, if I'd just known that 3 or 4 years ago, it would have saved a ton of work!" This is one of them.


functions for ofx,qfx,qif,csv export..  

Type: code fragment
Added by: joeldg
Entered: 17/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 13664
export data to all the xml type formats recognized by the money programs out there. MSMoney, Quicken, CSV etc. The code is really designed for financial data obviously. It is in use in the IPN system I developed for working with Paypal. See the example URL and go into the test account and look in the history to see a live example. Any comments would be appreciated.


GoEmerchant.com Payment Gateway Class  

Type: class library
Added by: sleighboy
Entered: 10/01/2004
Last modified: 01/12/2003
Rating: - (fewer than 3 votes)
Views: 7613
This class allows for processing of Credit Cards with the merchant provider GoEmerchnt.com. It requires you have CURL installed. It has a debug mode so you can test it first without sending lots of bogus transactions to their server.


highly efficient Mod 10 function for credit card validation  

Type: code fragment
Added by: jlopez123
Entered: 23/07/2003
Last modified: 07/12/2002
Rating: - (fewer than 3 votes)
Views: 6186
this is a very simple function that performs a mod 10 on a credit card number. this function is not meant to be a complete solution, I only wanted to show how the mod 10 portion of a credit card validation function could be done quickly and efficiently.


Jens J. Parree  

Type: code fragment
Added by: Cyberskater
Entered: 31/05/2003
Last modified: 07/12/2006
Rating: - (fewer than 3 votes)
Views: 3795
When working with realtime credit card billing systems, e.g. Wire Card C3 you need to convert prices to cent values. Example: "9.99" $ must be "999" or "123.10" must be "12310" So here ist the method for doing a simple conversion:


Multiple stock quote retrieval  

Type: class
Added by: gren
Entered: 09/04/2000
Last modified: 08/12/1999
Rating: **** (4 votes)
Views: 9360
I messed around with the stock quote retrieval class, and made the get() function in it to get multiple quotes rather than just a single one. Example here


Number Speller  

Type: code fragment
Added by: lesantoso
Entered: 01/12/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 5511
A function that takes a number and spells it out in English.


pfpro.class - Verisign payflowpro class  

Type: class
Added by: Chikki
Entered: 01/08/2002
Last modified: 08/12/2001
Rating: ***** (4 votes)
Views: 8021
A Verisign pfpro class for managing credit card transactions through Verisign. Includes ability to do AVS checks and add order comments.


PHP Paypal IPN Integration Class v1.0.0  

Type: class
Added by: micahcarrick
Entered: 16/04/2005
Last modified: 04/12/2004
Rating: **** (4 votes)
Views: 27031
This file provides a neat and simple method to interface with paypal and the paypal Instant Payment Notification (IPN) interface. It is designed to be an aid, and therefore provide the developer with complete control. I've also included a demonstration file in the zip, called paypal.php, which shows how to use the class. This class handles the submission of an order to paypal aswell as the processing an Instant Payment Notification (IPN). Including the demonstration file, the entire "paypal system" consists of just 2 PHP scripts. Once is the class and one implements the class.


PHP/MySQL Shopping cart  

Type: class
Added by: homechicken
Entered: 03/04/2000
Last modified: 08/12/1999
Rating: **** (48 votes)
Views: 109845
This was based on a shopping cart by Ethan Schroeder. You can still find the original on px.sklar.com (thanks Bill)


Priority Mail Shipping Calculator  

Type: code fragment
Added by: woodys
Entered: 18/07/2001
Last modified: 07/12/2000
Rating: - (fewer than 3 votes)
Views: 9038
This function returns the price to send a standard Priority Mail package from one zip code to another zip code, based on weight. No USPS-issued username or password is required. Safety feature. Error repression.


Real Time Transactions Ware  

Type: class
Added by: openecho
Entered: 24/05/2001
Last modified: 05/12/2009
Rating: - (fewer than 3 votes)
Views: 7219
Updated 9-24-01: ECHO-PHP Class is now available. ECHO-PHP Class drives all types of real-time credit card and check transactions using ECHO merchant processing�s free secure payment gateway and open-source real-time software. Supports system check, address verification, authorization and deposit, deposit, credit, commercial card, electronic check debit, and more. The new ECHO-PHP Class makes it easier than ever to connect to ECHO using this popular server-side, cross-platform, HTML embedded scripting language. Ideal for all commerce applications. Perfect for ISP/IPPs to use for billing their clients, since this supports electronic checks as well.


Sample AIM (Advanced Integration Method) PHP Script For Authorize.net using CURL  

Type: code fragment
Added by: spiderwt
Entered: 22/01/2003
Last modified: 02/12/2002
Rating: ***** (4 votes)
Views: 13889
Sample AIM (Advanced Integration Method) PHP Script For Authorize.net using CURL.


Stock quote retrieval  

Type: class
Added by: jcostom
Entered: 04/03/2000
Last modified: 08/12/1999
Rating: ***** (14 votes)
Views: 12425
This class will, given a symbol, retrieve various pieces of information from Yahoo!'s stock quotes. It uses Yahoo's nifty .csv download option. It also works for the various indices, so long as you use the proper Yahoo! symbol for the index you want info on.


String to money  

Type: code fragment
Added by: kcochrane
Entered: 20/06/2002
Last modified: 07/12/2001
Rating: - (fewer than 3 votes)
Views: 5864
This is a spin off from cwe7g's comma integer. It will take in a string and it will turn it into the common money format 1,234.56 It will add commas and the correct format for cents.


Terbilang  

Type: code fragment
Added by: lesantoso
Entered: 01/12/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 5521
A function that takes a number and spells it out in Indonesian language.


UPS Shipping Calculation  

Type: class
Added by: jcostom
Entered: 03/03/2000
Last modified: 04/12/2000
Rating: ***** (20 votes)
Views: 24571
This class interfaces with the UPS website to calculate shipping costs.


UPS Shipping Rates (XML)  

Type: application
Added by: quietbit
Entered: 29/09/2003
Last modified: 31/10/2002
Rating: - (fewer than 3 votes)
Views: 15433
Slighty messy but functional XML interface into the UPS system to retrieve shipping rates. Requires free registration on UPS website. Not intended for live system.


UPSTrack  

Type: class
Added by: jonwhitcraft
Entered: 10/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 8178
This class allows someone to go and get the status of a package from UPS.


USPS Shipping Calculator  

Type: class
Added by: dhiggins
Entered: 08/07/2000
Last modified: 08/12/1999
Rating: **** (7 votes)
Views: 19025
This is a class to compute shipping costs for usps mailing. Also includes a shipping tracking method which I haven't completly tested yet Also, you must get the server name, a username, and a password from USPS at http://www.uspsprioritymail.com.



Search



This Category All Categories