Difference between revisions of "Developers - Payment Classes"

From Zen Cart(tm) Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
{{Template:menuBarDevelopers}}
 
{{Template:menuBarDevelopers}}
 
== Introduction ==
 
== Introduction ==
Payment modules consists of 2 files.
+
Payment modules consists of two files.
  
 
The payment class is stored in
 
The payment class is stored in
Line 8: Line 8:
 
while all text is stored in the appropriate language file
 
while all text is stored in the appropriate language file
 
:includes/languages/<current language>/modules/payment/<module name>.php
 
:includes/languages/<current language>/modules/payment/<module name>.php
 +
  
 
== Payment Class ==
 
== Payment Class ==
 +
 +
 
== Anatomy of a Payment Module ==
 
== Anatomy of a Payment Module ==
 
=== Class Names ===
 
=== Class Names ===
Line 27: Line 30:
 
=== remove Method ===
 
=== remove Method ===
 
=== keys Method ===
 
=== keys Method ===
 +
 +
 
== Tips & Tricks ==
 
== Tips & Tricks ==
 +
 +
 
== Trouble Shooting ==
 
== Trouble Shooting ==

Revision as of 18:37, 26 July 2006

Introduction

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

confirmation Method

process_button Method

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