Payment Method Display
Copyright © 2001, William Weiland
Overview
Sort your payment methods, with your preferred method at the top of the list. In addition to the ability to sort the methods, you can restrict any of the methods to a specific list of countries. Each method can have its own list of acceptable or unacceptable countries. The default (blank) displays the method no matter which ship to country is to receive the product.
Initial Setup
1) In admin, click Add Modules
2) Click the file upload button
3) Browse to find the paydisp.mv file on your hard drive and upload
4) Click Add to add it to the domain
5) Click the image to the left of your store name
6) Click on the Utility Configuration link
7) Check the box to the left of Payment Method Display and select Update
8) Then click the tab at the top for Payment Method Display and enter the configuration settings for each method
Utility Configuration
In the Utility Configuration screen you will establish the sort order for your store's payment methods. Most inputs are self explanatory.


Do not change the module name or method code in the edit function. It is editable in case you make a mistake when you manually add a payment method. Normally all payment methods will appear in the list by default. The admin screen auto-lists all payment methods which are coded into the payment modules used by the store. In the case of a payment module which configures payment methods at runtime, e.g. available based on login or availability group, the store owner can manually add that method to the ordered list and include country acceptability.

* You can limit payment methods to specific ship to countries (optional)
* If you leave it blank, the method is available to all ship to locations
* To limit, enter each country code separated with the | character
* The default is to include the payment method for only those countries listed
* If you begin the line with a minus character (e.g. -US|CA|MX) the module will hide (exclude) the payment method if the ship to destination is in the list


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.

In the MMUI_Order_ShippingPaymentSelection function. Locate the line:
<SELECT NAME = "PaymentMethod"> Directly below that line, insert the following:
<MvDO FILE = "{g.Module_Root$'modules/util/paydisp.mv'}" NAME = "l.selectpay" VALUE = "{PayDisp_Eligible()}">
Then remove or comment out with the MvCOMMENT tag the next 14 lines between this point and the </SELECT> tag. Essentially, you are replacing the code that generates the OPTION tags. Do not comment out the </SELECT> tag.