Miva Merchant 4 Module FAQs » Phone Order Manager (BROK_PHONEORDERS)


{docurl}

Collecting payment data on the POM page

I would like to save a step during checkout by collecting the payment data on the POM page> Is this possible?

 

It is possible but it requires a rather limited payment set up.  The approach is basically to copy the payment data from from the payment information page in checkout and put into the POM form. However, keep in mind that the POM itself will not process or validate the data collected by the form.  It simply "holds" it until you process the order and as such POM  would have to be configured to take you to the OPAY page (where  the data would be used to fill out the form) or to the INVC (Invoice) page. 

When copying the form from the Payment Information (by doing a "view source" on the page during checkout) make sure you get the hidden PaymentMethod field.

For example, using the stock Check module, the source on the page which collects the check number is:

<input type="hidden" name="PaymentMethod" value="check:check">
<h5>Check</h5>
<h5 class="paymentdetail">Check #:</h5>
<input type="text" name="Check_Number" size=40 value="">

This can be pasted into the POM template to collect the check number.  However, to have the number displayed when the page is refreshed you need to display the collected data. This can be done with the  %var|expression|% token.  Where "expression" is the name of the form field.  So in the above example:

<input type="hidden" name="PaymentMethod" value="check:check">
<h5>Check</h5>
<h5 class="paymentdetail">Check #:</h5>
<input type="text" name="Check_Number" size=40 value=" %var|Check_Number|%">



Categories for this entry

Last update: 2009-04-01 13:54
Author: Michael Brock
Revision: 1.1

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category