Hard Coded Payment Method

Home : Examples

Example provided by Leslie Kirk

Authorize.net Payment Gateway and Emporium Plus PayPal Payment Module payment methods are used in this example.

<mvt:comment>Hard Coded Payment Methods</mvt:comment>
<mvt:if expr = "ISNULL g.PaymentMethod">
<label>
	<input type="radio" name="PaymentMethod" value="authnet:Visa" checked="checked" />
	<img src="visa-icon.gif" alt="Visa" /> Visa
</label>
<mvt:elseif expr = "g.PaymentMethod EQ 'authnet:Visa'">
<label>
	<input type="radio" name="PaymentMethod" value="authnet:Visa" checked="checked" />
	<img src="visa-icon.gif" alt="Visa" /> Visa
</label>
<mvt:else>
<label>
	<input type="radio" name="PaymentMethod" value="authnet:Visa" />
	<img src="visa-icon.gif" alt="Visa" /> Visa
</label>
</mvt:if>

<mvt:if expr = "g.PaymentMethod EQ 'authnet:MasterCard'">
<label>
	<input type="radio" name="PaymentMethod" value="authnet:MasterCard" checked="checked" />
	<img src="mastercard-icon.gif" alt="MasterCard" /> MasterCard
</label>
<mvt:else>
<label>
	<input type="radio" name="PaymentMethod" value="authnet:MasterCard" />
	<img src="mastercard-icon.gif" alt="MasterCard" /> MasterCard
</label>
</mvt:if>

<mvt:if expr = "g.PaymentMethod EQ 'authnet:AmerExp'">
<label>
	<input type="radio" name="PaymentMethod" value="authnet:AmerExp" checked="checked" />
	<img src="amex-icon.gif" alt="American Express" /> American Express
</label>
<mvt:else>
<label>
	<input type="radio" name="PaymentMethod" value="authnet:AmerExp" />
	<img src="amex-icon.gif" alt="America Express" /> American Express
</label>
</mvt:if>

<mvt:if expr = "g.PaymentMethod EQ 'authnet:Discover'">
<label>
	<input type="radio" name="PaymentMethod" value="authnet:Discover" checked="checked" />
	<img src="discover-icon.gif" alt="Discover" /> Discover
</label>
<mvt:else>
<label>
	<input type="radio" name="PaymentMethod" value="authnet:Discover" />
	<img src="discover-icon.gif" alt="Discover" /> Discover
</label>
</mvt:if>

<mvt:if expr = "g.PaymentMethod EQ 'paypalr:paypalr'">
<label>
	<input type="radio" name="PaymentMethod" value="paypalr:paypalr" checked="checked" />
	<img src="paypal-icon.gif" alt="PayPal" /> PayPal
</label>
<mvt:else>
<label>
	<input type="radio" name="PaymentMethod" value="paypalr:paypalr" />
	<img src="paypal-icon.gif" alt="PayPal" /> PayPal
</label>
</mvt:if>

For professional integration, please contact us via our Online Sales & Support Desk.

Comments & Ratings


 
All fields are mandatory!

Select your rating: