Is there a way to make sure that when checking out with Amazon pay or using the regular checkout and the customer is brought to the INVC page that the URL in the address bar reads https://www.example.com/INVC.html instead of https://www.example.com/mm5/merchant.mvc?
We use the Toolkit Shortlinks (Legacy Shortlinks)
The code for the OPAY page form:
Code for AMAZONPAY_OPAY form:
Just want to make sure our google analytics / adwords transactions are being recorded accurately.
Thanks!
We use the Toolkit Shortlinks (Legacy Shortlinks)
The code for the OPAY page form:
Code:
<form method="post" action="&mvt:payment:url;" id="js-opay-form" class="clearfix">
<input type="hidden" name="Action" value="AUTH" />
<input type="hidden" name="Screen" value="INVC" />
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
<mvt:item name="payment" />
<input type="hidden" name="PaymentMethod" value="&mvte:global:PaymentMethod;" />
<input type="hidden" name="SplitPaymentData" value="&mvte:global:SplitPaymentData;" />
<input type="hidden" name="PaymentDescription" value="&mvte:payment:desc;" />
<div>
<p class="column whole h4 fields-heading" style="background:#e8e8e8;margin-bottom:0"><span class="icon-icon_lock"></span> Payment Method: &mvt:payment:desc;</p>
</div>
<div class="column whole bg-lt-gray ptp1 pbm1 mbm1-25">
<div class="column whole medium-half">
<mvt:if expr="NOT ISNULL l.settings:payment:desc">
<span class="bold"></span>
</mvt:if>
<mvt:if expr="NOT ISNULL l.settings:payment:message">
<p class="column whole">&mvt:payment:message;</p>
</mvt:if>
<mvt:if expr="l.settings:paymentsettings:mivapay:enabled AND ( l.settings:mivapay:paymentcardtype:id OR l.settings:mivapay:paymentcard:id )">
<div class="form-row">
<mvt:item name="mivapay" />
</div>
<mvt:elseif expr="'brain' CIN g.PaymentMethod">
<mvt:foreach array="payment:fields" iterator="field">
<div class="form-row">
<mvt:item name="payment" param="field:code" />
</div>
</mvt:foreach>
<mvt:else>
<mvt:foreach array="payment:fields" iterator="field">
<div id="js-&mvt:field:code;" class="form-row">
<mvt:if expr="l.settings:field:invalid">
<label class="required error">&mvt:field:prompt;</label>
<mvt:else>
<label class="required">&mvt:field:prompt;</label>
</mvt:if>
<div class="&mvt:field:code;"><mvt:item name="payment" param="field:code" /></div>
</div>
</mvt:foreach>
</mvt:if>
<mvt:if expr="l.settings:payment:capabilities:split">
<div class="form-row">
<mvt:if expr="g.Amount_Invalid">
<label class="required error">Payment Amount:</label>
<mvt:else>
<label class="required">Payment Amount:</label>
</mvt:if>
<div id="payment-amount-fields">
<mvt:if expr="( NOT l.settings:payment:capabilities:balance ) OR ( l.settings:payment:balance GE l.settings:splitpayment:remaining )">
<mvt:if expr="NOT g.UI_Exception">
<mvt:assign name="g.AmountType" value="'total'" />
<mvt:assign name="g.Amount" value="l.settings:splitpayment:remaining ROUND 2" />
</mvt:if>
<mvt:if expr="g.AmountType EQ 'total'">
<input type="radio" name="AmountType" value="total" onclick="AmountType_Changed( this.value );" checked />
<mvt:else>
<input type="radio" name="AmountType" value="total" onclick="AmountType_Changed( this.value );" />
</mvt:if>
<mvt:if expr="NOT ISNULL l.settings:payment:split_data">
Remaining Order Total (&mvt:payment:formatted_remaining;)<br />
<mvt:else>
Entire Order Total (&mvt:basket:formatted_total;)<br />
</mvt:if>
<mvt:else>
<mvt:if expr="NOT g.UI_Exception">
<mvt:assign name="g.AmountType" value="'balance'" />
<mvt:assign name="g.Amount" value="l.settings:payment:balance ROUND 2" />
</mvt:if>
<mvt:if expr="g.AmountType EQ 'balance'">
<input type="radio" name="AmountType" value="balance" onclick="AmountType_Changed( this.value );" checked />
<input type="hidden" id="payment-balance-amount" name="Amount" value="&mvte:payment:balance;" />
<mvt:else>
<input type="radio" name="AmountType" value="balance" onclick="AmountType_Changed( this.value );" />
<input type="hidden" id="payment-balance-amount" name="Amount" value="&mvte:payment:balance;" disabled />
</mvt:if>
Available Balance (&mvt:payment:formatted_balance;)<br />
</mvt:if>
<mvt:if expr="g.AmountType EQ 'partial'">
<input type="radio" name="AmountType" value="partial" onclick="AmountType_Changed( this.value );" checked />
Partial: <input type="text" id="payment-amount" name="Amount" value="&mvte:global:Amount;" />
<mvt:else>
<input type="radio" name="AmountType" value="partial" onclick="AmountType_Changed( this.value );" />
Partial: <input type="text" id="payment-amount" name="Amount" value="&mvte:global:Amount;" disabled />
</mvt:if>
</div>
</div>
<mvt:if expr="g.AmountType EQ 'total'">
<mvt:assign name="g.totalPayment" value="'display: none;'" />
</mvt:if>
<div id="payment-additional" style="&mvt:global:totalPayment;">
<div class="form_row">
<label class="required">Pay Additional Balance With:</label>
<select name="AdditionalPaymentMethod">
<mvt:foreach array="paymentmethods" iterator="method">
<mvt:if expr="(l.settings:method:module NE 'customercredit') OR ((g.PaymentMethod NE 'customercredit:credit') AND (NOT miva_array_search(l.settings:splitpayment:splits, 1, l.split, 'l.split:module:code EQ l.settings:method:module')))">
<mvt:if expr="l.settings:method:paymentcard:id">
<option value="paymentcard:&mvte:method:paymentcard:id;">&mvt:method:name;</option>
<mvt:elseif expr="l.settings:method:paymentcardtype:id">
<option value="paymentcardtype:&mvte:method:paymentcardtype:id;">&mvt:method:name;</option>
<mvt:else>
<option value="&mvte:method:module;:&mvte:method:code;">&mvt:method:name;</option>
</mvt:if>
</mvt:if>
</mvt:foreach>
</select>
</div>
</div>
</mvt:if>
</div>
</div>
<div class="breaker"></div>
<div>
<div class="column whole align-center np">
<mvt:if expr="l.settings:paymentsettings:mivapay:enabled AND ( l.settings:mivapay:paymentcardtype:id OR l.settings:mivapay:paymentcard:id )">
<script>
var onclick_submit = function( event ) {
if ( MivaPay && ( typeof MivaPay.Submit === 'function' ) ) {
MivaPay.Submit( function() {
var form;
form = document.getElementById( 'js-opay-form' );
form.submit();
} );
}
}
</script>
<span onclick="onclick_submit(); return false;">
<input class="button button-large-font corners bg-sky" type="submit" value="Complete Order" title="Complete Order">
<p class="ptp1"><span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=O77iPdMF08ACXGhM5cEzqTjCiEH72r6dwXCQDC3RAcc0NWC6cK"></script></span></p>
<p><script src="https://sealserver.trustwave.com/seal.js?style=invert&size=65x36&code=f6e634926e664239a5a4daf7f9938bee"></script></span></p>
</span>
<mvt:elseif expr="'brain' CIN g.PaymentMethod">
<input class="button button-large-font corners bg-sky" type="submit" value="Complete Order" title="Complete Order">
<p class="ptp1"><span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=O77iPdMF08ACXGhM5cEzqTjCiEH72r6dwXCQDC3RAcc0NWC6cK"></script></span></p>
<p><script src="https://sealserver.trustwave.com/seal.js?style=invert&size=65x36&code=f6e634926e664239a5a4daf7f9938bee"></script></span></p>
<mvt:else>
<input class="button button-large-font corners bg-sky" type="submit" value="Complete Order" title="Complete Order">
<p class="ptp1"><span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=O77iPdMF08ACXGhM5cEzqTjCiEH72r6dwXCQDC3RAcc0NWC6cK"></script></span></p>
<p><script src="https://sealserver.trustwave.com/seal.js?style=invert&size=65x36&code=f6e634926e664239a5a4daf7f9938bee"></script></span></p>
</mvt:if>
</div>
</div>
<div class="breaker"></div>
</form>
Code:
<form method="post" action="&mvt:global:secure_sessionurl;" id="js-opay-form" class="clearfix">
<input type="hidden" name="Action" value="AUTH" />
<input type="hidden" name="Screen" value="INVC" />
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
<div class="column whole medium-half mbm1-25">
<p class="h4 fields-heading"><span class="icon-icon_lock"></span> Select Amazon Payment Method Below</p>
<mvt:item name="amazonpay_wallet" />
</div>
<div class="column whole medium-half mbm1-25">
<p class="h4 fields-heading">Amazon Shipping Address</p>
<mvt:item name="amazonpay_address" />
</div>
<input type="hidden" name="PaymentMethod" value="&mvte:global:PaymentMethod;" />
<input type="hidden" name="PaymentAuthorizationToken" value="&mvte:global:Basket:auth_token;" />
<div class="column whole align-center np">
<input class="button button-large-font corners bg-sky" type="submit" value="Complete Order" title="Complete Order">
<p class="ptp1"><span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=O77iPdMF08ACXGhM5cEzqTjCiEH72r6dwXCQDC3RAcc0NWC6cK"></script></span></p>
<p><script src="https://sealserver.trustwave.com/seal.js?style=invert&size=65x36&code=f6e634926e664239a5a4daf7f9938bee"></script></span></p>
</div>
</form>
Thanks!
Comment