Announcement

Collapse
No announcement yet.

What do the order payment:type integer values define?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What do the order payment:type integer values define?


    The below code comes from a batch report. I found info in the forums that payment:type EQ 5 indicates a credit payment. What do 2,4,6,7 and any other values indicate? Is there a list somewhere? and is type 5 a customer credit? or any type of credit? or a credit card, etc?
    Code:
     <mvt:foreach iterator="payment" array="order:payments">                     <mvt:if expr="( l.settings:payment:type EQ 2 ) OR                                   ( l.settings:payment:type EQ 4 ) OR                                   ( l.settings:payment:type EQ 7 )">                         <mvt:foreachcontinue />                     </mvt:if>                      <h2>                         <mvt:if expr="ISNULL l.settings:payment:descrip">                             <mvt:if expr="l.settings:payment:type EQ 6">                                 Refund                             <mvt:else>                                 Payment                             </mvt:if>                         <mvt:else>                             <mvt:if expr="l.settings:payment:type EQ 6">                                 Refund:                             <mvt:else>                                 Payment:                             </mvt:if>                             &mvt:payment:descrip;                         </mvt:if>                     </h2>                     <hr />                      <table><tr><th>Amount:</th><td>&mvt:payment:formatted_amount;</td></tr></table>                      <mvt:foreach iterator="field" array="payment:fields">                         <table><tr><th>&mvt:field:label;</th><td>&mvt:field:value;</td></tr></table>                     </mvt:foreach>                     <br />                 </mvt:foreach>

    #2
    From: https://www.miva.com/assets/api/html...r_payment.html

    Type.

    One of the following values:
    • 0 Declined
    • 1 Legacy Authorization
    • 2 Legacy Capture
    • 3 Authorization
    • 4 Capture
    • 5 Authorization + Capture
    • 6 Refund
    • 7 VOID
    Justin Sims
    216digital
    Cleveland Area - Code and Design
    https://216digital.com/

    Comment


      #3
      AH! now that is useful stuff to know. THANK YOU!

      Comment

      Working...
      X