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.
I'm getting the following Runtime error. I'm guessing its trying to collect credit card data that was never entered.
Hopefully we can use this as a temporary solution until we get an official Dwolla Payment Module.
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.
Comment