Show Payment Type
Copyright © 2001, William Weiland
Overview
The purpose of this module is to display the payment method/type in the merchant and customer notification emails.
Initial Setup
Use the Merchant admin upload feature to upload the showpay.mv module. Once uploaded, click the Add button to add it to the mall/domain.

If you are updating an existing module, click Modules, then the link to the module, then the file upload feature, overwriting and updating the older version.

In admin, under your store, click on the link for Utilities. Assign the module and Update it to install it in your store.

Click the link to Show Payment in order to enter the configuration settings.


Configuration Settings
Enter data into the applicable input fields.

Payment Data Also
Show Payment Data In Addition to Type, eg Check or PO number. This data will be transmitted in non-secure email so you know whether this is something you want included in your store.


Editing Requirements (skip if using the OpenUI)
If you are using the Miva Merchant User Interface (mmui) you will need to make some very simple edits to the core files. Be sure to do that with a text editor (NO WYSIWYG editors) such as Programmer's File Editor (PFE) so as not to damage the mv files. ALWAYS BACKUP your unmodified mv files in case you make a mistake.

Insert the following lines just above the </MvSMTP> tag in your meremail.mv and custeml.mv files prior to Merchant version 4.10.
<MvDO FILE="{g.Module_Root$'modules/util/showpay.mv'}" NAME = "l.paymenttype" VALUE = "{DeterminePaymentType()}">
<MvEVAL EXPR = "{l.paymenttype}">

In the meremail.mv and custeml starting with Merchant 4.10, locate the line:
<MvDO FILE = "{ g.Module_Library_Utilities }" NAME = "l.ok" VALUE = "{ SendEmail( l.to,l.from,l.cc,l.subject,l.headers,l.message ) }">
Add the following immediately preceeding that line:
<MvDO FILE="{g.Module_Root$'modules/util/showpay.mv'}" NAME = "l.paymenttype" VALUE = "{DeterminePaymentType()}">
<MvASSIGN NAME = "l.message" VALUE = "{l.message $ asciichar(10) $ l.paymenttype}">