Announcement

Collapse
No announcement yet.

Setting Up Dwolla Payment Method

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

    Setting Up Dwolla Payment Method

    I'm anxious to start using Dwolla so I've put together this temporary solution by setting up Dwolla as a payment method under Credit Card Payment with Simple Validation. It's almost working, I appear to be having one simple problem, maybe someone can help me out. I got the idea while recently implementing Sebenza's Gift Certification Module which hides the credit card input fields on OPAY if your order total is $0. Here's my OPAY page code so far. It says, or should say, if the payment method is Dwolla then hide the credit card entry fields and give Dwolla payment instructions.


    Code:
    <form method="post" action="&mvt:payment:url;" onsubmit="return submitOnce()">
    <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:if expr="l.settings:basket:formatted_total NE '($0.00)'"> 
    
    
      <mvt:if expr="l.settings:payment:desc EQ 'Dwolla'">
    
    
        <input type="hidden" name="PaymentMethod" value="">
        <tr><td align="left" valign="middle">
        <b>Thank you for selecting Dwolla as your payment method! DWOLLA INSTRUCTIONS GO HERE</b>
        </td></tr>
    
    
      <mvt:else>
    
    
        <mvt:item name="payment" />
      </mvt:if>
    </mvt:if>
    
    
    <table border="0" cellpadding="2" cellspacing="0" width="100%">
    <tr><td align="left" valign="middle" bgcolor="&mvt:colors:lhdr_bg;">
    
    
    <mvt:if expr="l.settings:basket:formatted_total EQ '($0.00)'">
      <input type="hidden" name="PaymentMethod" value="">
      <tr><td align="left" valign="middle">
      <b>Your balance is zero and no payment is necessary. Press continue to complete your purchase.</b>
      </td></tr>
    
    
    <mvt:else>
    
    
      <mvt:if expr="l.settings:payment:desc NE 'Dwolla'">    
        <b>Payment Information:</b>
    
    
        <input type="hidden" name="PaymentMethod" value="&mvte:global:PaymentMethod;">
    
    
      <mvt:if expr="NOT ISNULL l.settings:payment:desc">
    
    
      <b>&mvt:payment:desc;</b><br>
    
    
    </mvt:if>
    
    
    <mvt:if expr="NOT ISNULL l.settings:payment:message">
    
    
      &mvt:payment:message;<br>
    
    
    </mvt:if>
    
    
    
    
    <table border="0" cellpadding="2" cellspacing="0">
    
    <mvt:foreach array="payment:fields" iterator="field">
      <tr><td align="left" valign="middle">
    
    
      <mvt:if expr="l.settings:field:invalid">
        <font color="red"><b>&mvt:field:prompt;</b></font>
      <mvt:else>
        <b>&mvt:field:prompt;</b>
      </mvt:if>
    
    
      </td><td align="left" valign="middle">
    
    
      <mvt:item name="payment" param="field:code" />
    
    
      </td></tr>
    </mvt:foreach>
    </table>
    </td></tr> 
    </mvt:if>
    </mvt:if>
    </table>
    
    
    <br>    
    
    
    <mvt:item name="buttons" param="Continue" />
    
    
    </form>

    I'm getting the following Runtime error. I'm guessing its trying to collect credit card data that was never entered.


    Runtime error in mm5/5.00/merchant.mvc @ [0000000e:0000044a]: merchant.mv: Line 1044: MvDO: Unable to open 'mm5/5.00': File is either corrupt or not a valid compiled Miva Script file

    Hopefully we can use this as a temporary solution until we get an official Dwolla Payment Module.


    Jamin Jones, CEO
    the Appalachian Offroad Motorcycle Company

    #2
    Re: Setting Up Dwolla Payment Method

    I've tried filling in default values for the Dwolla Simple Validation Payment method and I still get the runtime error.

    Code:
    <mvt:if expr="l.settings:basket:formatted_total NE '($0.00)'">  
    
      <mvt:if expr="l.settings:payment:desc EQ 'Dwolla'">
    
    <input type="hidden" name="PaymentMethod" value="Dwolla">
    <input type="hidden" name="CardName" value="Dwolla">
    <input type="hidden" name="CardNumber" value="5555555555555555">
    <input type="hidden" name="CardExp_Month" value="05">
    <input type="hidden" name="CardExp_Year" value="05">
    Jamin Jones, CEO
    the Appalachian Offroad Motorcycle Company

    Comment


      #3
      Re: Setting Up Dwolla Payment Method

      I'm pretty sure my input variable names are incorrect. I'm getting this error:

      One or more required fields were not filled out correctly.

      with this code:

      Code:
      <mvt:if expr="l.settings:basket:formatted_total NE '($0.00)'">  
      
        <mvt:if expr="l.settings:payment:desc EQ 'Dwolla'">
      
      <input type="hidden" name="PaymentMethod" value="&mvte:global:PaymentMethod;">
      <mvt:if expr="NOT ISNULL l.settings:payment:desc">
                          
                          <b>&mvt:payment:desc;</b><br>
                          
                      </mvt:if>
      <mvt:if expr="NOT ISNULL l.settings:payment:message">
                          
                          &mvt:payment:message;<br>
                          
                      </mvt:if>
      
      <input type="hidden" name="payment:CardName" value="Dwolla">
      <input type="hidden" name="payment:CardNumber" value="4555555555555555">
      <input type="hidden" name="payment:CardExp_Month" value="5">
      <input type="hidden" name="payment:CardExp_Year" value="2015">
      Jamin Jones, CEO
      the Appalachian Offroad Motorcycle Company

      Comment


        #4
        Re: Setting Up Dwolla Payment Method

        I finally solved this problem by purchasing the Phone In Payment Module from Emporium Plus. I just changed the Phone-In text to say Dwolla in the admin settings and it seems to be working perfectly! The checkout and invoice message screen tokens are also a huge help.
        Jamin Jones, CEO
        the Appalachian Offroad Motorcycle Company

        Comment

        Working...
        X