Developers - Payment Classes

From Zen Cart(tm) Wiki
Revision as of 21:09, 11 December 2006 by Xerophyte (talk | contribs) (pre_confirmation_check Method)
Jump to: navigation, search


Payment modules consists of two files.

The payment class is stored in

includes/modules/payment/<module name>.php

while all text is stored in the appropriate language file

includes/languages/<current language>/modules/payment/<module name>.php

Payment Class

Anatomy of a Payment Module

Class Names

Constructor Method

update_status Method

javascript_validation Method

selection Method

pre_confirmation_check Method

Pre confirmation checks (ie, check if credit card information is right before sending the info to the payment server

confirmation Method

Functions to execute before displaying the checkout confirmation page

process_button Method

Functions to execute before finishing the form

Examples: add extra hidden fields to the form

before_process Method

after_process Method

after_order_create Method

get_error Method

check Method

install Method

remove Method

keys Method

Tips & Tricks

Trouble Shooting