c# - Code echecks for DPM (Authorize.Net) -


i using asp.net, c#, , web forms (not mvc).

i following thread, not sure code behind implement solution.

https://community.developer.authorize.net/t5/integration-and-testing/dpm-with-echecks/m-p/33623#m181...

it states use form:

<input type='hidden' runat="server" name='x_login' id='x_login' /> <input type='text' readonly="readonly" runat="server" name='x_amount' id='x_amount' size='9' /> <input type='text' runat="server" name='x_fp_sequence' id='x_fp_sequence' /> <input type='text' runat="server" name='x_fp_timestamp' id='x_fp_timestamp' /> <input type='text' runat="server" name='x_fp_hash' id='x_fp_hash' /> <input type='hidden' name='x_method' id='x_method' value='echeck' /> <input type='hidden' name='x_bank_aba_code' id='x_bank_aba_code' value='?????????' /> <input type='hidden' name='x_bank_acct_num' id='x_bank_acct_num' value='123456789123' /> <input type='hidden' name='x_bank_acct_type' id='x_bank_acct_type' value='checking' /> <input type='hidden' name='x_bank_name' id='x_bank_name' value='bankname' /> <input type='hidden' name='x_bank_acct_name' id='x_bank_acct_name' value='accountname' /> <input type='hidden' name='x_echeck_type' id='x_echeck_type' value='web' /> <input id="x_relay_url" name="x_relay_url" type="hidden" value="https://developer.authorize.net/tools/paramdump/index.php" /> <input type='hidden' name='x_relay_response' value='true' /> <input type='hidden' name='x_delim_data' value='false' /> <input type='submit' runat="server" id='buttonlabel' /> 

so question necessary in c# code work? have been searching , haven't found resources on topic dpm method. have seen resources aim.

for dpm there's not can fields such "x_bank_aba_code", etc, in code-behind because involve posting own server, put land of "pci compliance", negates using dpm in first place.

what have done is:

1) ask non-cc or echeck data on previous page

2) store data , generate guid record

3) load data on payment page code-behind (on pageload() - pass guid on url can pull appropriate record , display data entered)

4) either name actual input fields "x_bank_aba_code", etc. (i don't recommend this) -or- attach onclientclick() event submit button (allows validation.) then...

5) use validation load hidden variables.

        // routing number         var routingnumber  = $("#<%=txtbankroutingnumber.clientid%>").val();         var routingnumber2 = $("#<%=txtbankroutingnumberconfirm.clientid%>").val();          routingnumber  = routingnumber.trim();         routingnumber2 = routingnumber2.trim();          if (routingnumber == '') {             alert('please provide routing number.');             return false;         }          if (routingnumber2 == '') {             alert('please confirm routing number.');             return false;         }          if (routingnumber != routingnumber2) {             alert('routing numbers don\'t match.');             return false;         }          // line set hidden variable         document.getelementsbyname('x_bank_aba_code')[0].value = routingnumber; 

i'll try post more detail later.

hope helps - main point banking/cc/echeck information cannot posted pack server - that's javascript/jquery comes in both validating input , loading hidden variables.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -