We are using Square for our payment getaway and works great, but we are trying to display the card type in the order confirmation like if it is VISA or MASTERCARD and so on.
I tried using the following code but none of the seems to do the trick
<mvt:if expr="'AMERICAN_EXPRESS' CIN g.order:pay_data"><strong>American Express</strong></mvt:if>
<mvt:if expr="'DISCOVER' CIN g.order:pay_data"><strong>Discover</strong></mvt:if>
<mvt:if expr="'MASTERCARD' CIN g.order:pay_data"><strong>Mastercard</strong></mvt:if>
<mvt:if expr="'VISA' CIN g.order:pay_data"><strong>Visa</strong></mvt:if>
also tried
<mvt:if expr="'VISA' CIN g.PaymentMethod"><strong>Visa</strong></mvt:if>
<mvt:if expr="'MASTERCARD' CIN g.PaymentMethod"><strong>Master Card</strong></mvt:if>
<mvt:if expr="'AMERICAN_EXPRESS' CIN g.PaymentMethod"><strong>American Express</strong></mvt:if>
What am I missing?
Thanks
I tried using the following code but none of the seems to do the trick
<mvt:if expr="'AMERICAN_EXPRESS' CIN g.order:pay_data"><strong>American Express</strong></mvt:if>
<mvt:if expr="'DISCOVER' CIN g.order:pay_data"><strong>Discover</strong></mvt:if>
<mvt:if expr="'MASTERCARD' CIN g.order:pay_data"><strong>Mastercard</strong></mvt:if>
<mvt:if expr="'VISA' CIN g.order:pay_data"><strong>Visa</strong></mvt:if>
also tried
<mvt:if expr="'VISA' CIN g.PaymentMethod"><strong>Visa</strong></mvt:if>
<mvt:if expr="'MASTERCARD' CIN g.PaymentMethod"><strong>Master Card</strong></mvt:if>
<mvt:if expr="'AMERICAN_EXPRESS' CIN g.PaymentMethod"><strong>American Express</strong></mvt:if>
What am I missing?
Thanks
Comment