What MIVA Says
Modules including this feature provide methods for MIVA Merchant stores to receive payment for the products offered. The methods could be from among the following:
* Check payment mailed before shipment
* COD
* Credit card processing manually
* Credit card processing in real time
* Electronic Funds Transfer (ETF) for total of purchase
Parameters:
<MvFUNCTION NAME="PaymentModule_LeftNavigation" PARAMETERS="module var,indent" STANDARDOUTPUTLEVEL="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when it expands the store’s Order Processing link in Admin’s left navigation menu.
It allows one to enter a link into the admin tool’s left navigation menu, if desired.
Default Return: NULL
Parameters:
Return Type:acount
The method parameter is expected to be populated with an array of methods. The structure of the array is two fields, code and name. With code being the unique to the module method code that allows it to tell one method from another, and the name being the visible text that appears in the drop down list or wherever the UI renders it.
<MvFUNCTION NAME="PaymentModule_Payment_Methods" PARAMETERS="module var,methods var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="0">
</MvFUNCTION>
What MIVA Says
The UI calls this function when displaying a list of payment methods available for use in checkout.
It loads the l.methods structure with information about available shipping methods offered via this module, such as name and code.
It must return the number of methods added.
Default Return: NULL
Example 1:
<MvFUNCTION NAME="PaymentModule_Payment_Methods" PARAMETERS="module var,methods var" STANDARDOUTPUTLEVEL="">
<MvASSIGN NAME="l.methods[1]:code" VALUE="meth1">
<MvASSIGN NAME="l.methods[1]:name" VALUE="Method 1">
<MvASSIGN NAME="l.methods[2]:code" VALUE="meth2">
<MvASSIGN NAME="l.methods[2]:name" VALUE="Method 2">
<MvFUNCTIONRETURN VALUE="2">
</MvFUNCTION>
Parameters:
Return Type:string
<MvFUNCTION NAME="PaymentModule_Payment_URL" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function before displaying the OPAY screen.
If the function returns a value, MIVA Merchant knows it needs to deal with a CGI gateway for payment authorization and it forms the OPAY page appropriately, i.e. it sets the action of the main form to the payment url.
The module should return NULL for non CGI gateways.
Parameters:
Return Type:string
<MvFUNCTION NAME="PaymentModule_Payment_Description" PARAMETERS="module var,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function before displaying the OPAY screen.
It returns a textual description of the module, for display as a heading above the payment information input fields on the OPAY screen.
Default Return: NULL
Parameters:
Return Type:string
<MvFUNCTION NAME="PaymentModule_Payment_Message" PARAMETERS="module var,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function before displaying the OPAY screen.
It returns a textual description of the module, for display above the payment information input fields and below the heading from PaymentModule_Payment_Descrioption.
Default Return: NULL
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Payment_Hide_Additional_Fields" PARAMETERS="module var,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function when displaying the OPAY screen.
It allows a module to insert hidden input fields on the OPAY form, such as might be required to pass state information to the CGI gateway processor.
Default Return: 1
Parameters:
Return Type:cslist
<MvFUNCTION NAME="PaymentModule_Payment_Fields" PARAMETERS="module var,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function before displaying the OPAY screen.
It returns comma separated list of field identifiers, of the form id[,id,id,id-]. MIVA Merchant will display the fields during the checkout process (usually on OPAY screen).
Default Return: NULL (i.e. no fields to diplay)
Parameters:
Return Type:string
<MvFUNCTION NAME="PaymentModule_Payment_Prompt" PARAMETERS="module var,data,field_id" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function before displaying the OPAY screen.
It returns a prompt (i.e. text) for the field named in the field_id parameter originally named in PaymentModule_Payment_Fields.
Default Return: NULL
Parameters:
Return Type:boolinv
<MvFUNCTION NAME="PaymentModule_Payment_Invalid" PARAMETERS="module var,data,field_id" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="0">
</MvFUNCTION>
What MIVA Says
The UI calls this function when displaying the OPAY screen.
It is a boolean flag to indicate whether or not the customer entered invalid data for the field specified by field_id.
The UI uses this flag so as to know whether to turn prompt red on screen (i.e. visually signal to the user that the valued entered in the field is invalid). The function may check flags set in PaymentModule_Payment_Field (e.g. g.Check_Number_Invalid) in order to determine whether the field is invalid or not.
Default Return: NULL
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Payment_Field" PARAMETERS="module var,data,field_id" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function when displaying the payment information input fields on the OPAY screen.
It receives the "data" element of the selected payment method from PaymentModule_Payment_Methods and the "field_id" identifier from the list returned by PaymentModule_Payment_Fields().
It outputs the HTML code required to display the field specified by field_id, for the method specified in data.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Payment_Validate" PARAMETERS="module var,pay_data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
MIVA Merchant uses this function to determine whether to proceed with PaymentModule_Authorize.
One can insert here logic to determine whether or not to continue or to ask the shopper to re-enter data, for instance if the shopper failed to input a credit card expiration date.
Default Return: 1
Parameters:
Return Type:string
<MvFUNCTION NAME="PaymentModule_Report_Description" PARAMETERS="module var,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
It returns a textual description of the payment processing method, for use by MIVA Merchant during display during order processing and by batchreport modules.
Default Return: NULL
Parameters:
Return Type:cslist
<MvFUNCTION NAME="PaymentModule_Report_Fields" PARAMETERS="module var,data,secure_data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
This function is an analog of PaymentModule_Payment_Fields, but for batchreport display.
It returns a comma-separated list of field identifiers
Default Return: NULL
Parameters:
Return Type:string
<MvFUNCTION NAME="PaymentModule_Report_Label" PARAMETERS="module var,field_id" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
This function is an analog of PaymentModule_Payment_Prompt.
It returns text for display beside the field identified by field_id (generated by PaymentModule_Report_Fields).
Default Return: NULL.
Parameters:
Return Type:string
<MvFUNCTION NAME="PaymentModule_Report_Value" PARAMETERS="module var,field_id,data,secure_data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
This function returns the value corresponding to the field identified in field_id, e.g. the check number for field check.
Default Return: NULL
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Manipulate_Shipping" PARAMETERS="module var,data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
MIVA Merchant runs this function upon receiving the form submission from the OSEL screen.
The function provide an opportunity for a payment module to introduce extra charges for shipping, as may be the case with COD for example.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Authorize" PARAMETERS="module var,module_data,total,data var,secure_data var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
This function provides a place for the code for determining whether to authorize a charge of l.total given the information in l.data. This is typically where the call to the payment processor resides, for use during order placement.
It The module should return 1 if successful, 0 on failure.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Process" PARAMETERS="module var,data var,secure_data var,order var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin calls this function during order processing in admin when one clicks Process Order.
This function exists for processing the payment data, typically for a post authorization.
It should It The module should return 1 on success, 0 on failure.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Order_Validate" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin calls this function to validate fields when one clicks Update on the Edit Order configuration screen.
It returns 1 if all fields are valid, 0 on failure.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Order_Update" PARAMETERS="module var,data var,secure_data var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin calls this function to validate fields when one clicks Update on the Edit Order configuration screen. One typically uses it to update any module-specific records for the order.
It The module should return 1 on success, 0 on error.
Default Return: 1
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Order_Delete" PARAMETERS="module var,data,secure_data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin calls this function when one clicks Delete on the Edit Order screen. One typically uses it to clean up any module specific records for the order.
It The module should return 1 on success, 0 on error.
Default Return: 1
Parameters:
Return Type:cclist
<MvFUNCTION NAME="PaymentModule_Order_Tabs" PARAMETERS="module var" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="">
</MvFUNCTION>
What MIVA Says
Admin calls this function when displaying the Edit Order configuration screen.
It returns a tab list for the Edit Order configuration screen.
Default Return: {toupper(l.module:code) $ ‘:’ $ l.module:name}
Parameters:
Return Type:bool
<MvFUNCTION NAME="PaymentModule_Order_Content" PARAMETERS="module var,tab,load_fields,data,secure_data" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="1">
</MvFUNCTION>
What MIVA Says
Admin calls this function to know what to display on the Edit Order configuration screen. This is similar to the other vis content functions.
Default Return: 1
Return Types are expressed in the document by the following codes:
For information and function requirements for the various MIVA Merchant 5 Module API Feature Codes see the following:
batchreport,
component,
component_prov,
currency,
custrt,
data_domain,
data_store,
export,
externalreq,
fields_cust,
fields_prod,
fulfill,
import,
log,
not_fields,
payment,
provision_store,
shipping,
storeselui,
storewizard,
system,
tax,
upload,
util,
wizard,
vis_affil,
vis_affilbe,
vis_category,
vis_categorybe,
vis_cust,
vis_custbe,
vis_domain,
vis_fulfill,
vis_log,
vis_order,
vis_payment,
vis_product,
vis_productbe,
vis_shipping,
vis_store,
vis_system,
vis_util,
vis_wizard
This document is copyright 2005-2006 4TheBest eCommerce Solutions and was last generated using Serade on 01/13/2006 23:04:54. It is permissible to place a copy of this document in it's current or altered form on your website as long as you leave the copyright notice along with the links to the websites referenced intact.