Hi everyone, I have the form code (below) on an events detail page. I've signed up for Paypal Website Payments Pro Gateway and have inserted the username, password and API signature in the Payment Gateways section of Business Catalyst. This is my first form so I'm trying to work out how to safely get it working and I have the following questions: I tested the form by filling out the first name, last name and email address. I then chose "PayPal" as the payment method. After I clicked submit, the browser was redirected to the paypal website but even though I didn't put through a payment on the website, I received a notification email saying that I had registered for the event. So it doesn't seem to be working properly, ie. it's registering someone for the event even though a payment had not gone through. Can someone tell me how to solve this problem? Also, the payment form itself contains fields for a credit card payment but when I click the radio button for PayPal the credit card fields still remain in place. Is there a way to make them disappear if someone has chosen PayPal? I hardcoded the value into the amount input field and set it to read only. Can you tell me if this is safe or whether someone could potentially change the amount value. If it's unsafe, is there any alternate way to handle the amount? I haven't included any billing address fields on the form as it is an event that they're registering for but can you tell me whether PayPal requires there to be address fields in order to accept a payment? I've already registered for a PayPal Website Payments Pro account here in Australia and I've inserted the username, password and API Signature into the fields in the Payment Gateways section of BC. I noticed though that in the drop down menu for this Gateway it says "(US, CA, UK only). Does this mean that I'm unable to use this Gateway in Australia? I've signed up for an account here but does BC actually support it here? I'd really appreciate any advice. Thanks in advance <form name="catwebformform86036" method="post" onsubmit="return checkWholeForm86036(this)" enctype="multipart/form-data" action="https://site.worldsecuresystems.com/FormProcessv2.aspx?WebFormID=70464&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}&CC={module_urlcountrycode}&Referrer={module_siteurl,true,true}"> <span class="req">*</span> Required <table class="webform" cellspacing="0" cellpadding="2" border="0"> <tbody> <tr> <td><label for="Title">Title</label><br /> <select name="Title" id="Title" class="cat_dropdown_smaller"> <option value="913142">DR</option> <option value="913141">MISS</option> <option value="913138" selected="selected">MR</option> <option value="913139">MRS</option> <option value="913140">MS</option> </select></td> </tr> <tr> <td><label for="FirstName">First Name <span class="req">*</span></label><br /> <input type="text" name="FirstName" id="FirstName" class="cat_textbox" maxlength="255" /> </td> </tr> <tr> <td><label for="LastName">Last Name <span class="req">*</span></label><br /> <input type="text" name="LastName" id="LastName" class="cat_textbox" maxlength="255" /> </td> </tr> <tr> <td><label for="EmailAddress">Email Address <span class="req">*</span></label><br /> <input type="text" name="EmailAddress" id="EmailAddress" class="cat_textbox" maxlength="255" /> </td> </tr> <tr> <td><label>Payment Method <span class="req">*</span></label><br /> <input checked="checked" type="radio" name="PaymentMethodType" id="PaymentMethodType_1" value="1" />Credit Card<br /> <input type="radio" name="PaymentMethodType" id="PaymentMethodType_5" value="5" />PayPal<br /> </td> </tr> <tr> <td><label for="CardName">Name on Card <span class="req">*</span></label><br /> <input type="text" name="CardName" id="CardName" class="cat_textbox" autocomplete="off" /></td> </tr> <tr> <td><label for="CardNumber">Card Number <span class="req">*</span></label><br /> <input type="text" name="CardNumber" id="CardNumber" class="cat_textbox" autocomplete="off" /></td> </tr> <tr> <td><label>Card Expiry <span class="req">*</span></label><br /> <select name="CardExpiryMonth" id="CardExpiryMonth" class="cat_dropdown_smaller"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> <option value="07">07</option> <option value="08">08</option> <option value="09">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select><select name="CardExpiryYear" id="CardExpiryYear" class="cat_dropdown_smaller"> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2016">2016</option> <option value="2017">2017</option> <option value="2018">2018</option> <option value="2019">2019</option> <option value="2020">2020</option> </select></td> </tr> <tr> <td><label for="CardType">Card Type <span class="req">*</span></label><br /> <select name="CardType" id="CardType" class="cat_dropdown"> <option value="1">Visa</option> <option value="2">Mastercard</option> <option value="3">Bank Card</option> <option value="4">American Express</option> <option value="5">Diners Club</option> <option value="6">JCB</option> </select></td> </tr> <tr> <td><label for="CardCCV">CCV Number <span class="req">*</span></label><br /> <input type="text" name="CardCCV" id="CardCCV" class="cat_textbox" autocomplete="off" /> </td> </tr> <tr> <td><label for="Amount">Amount <span class="req">*</span> <span id="constraint-300-label"></span></label><br /> <input type="text" name="Amount" id="Amount" class="cat_textbox" value="145.00" readonly="readonly" /></td> </tr> <tr> <td><input class="cat_button" type="submit" value="Submit" id="catwebformbutton" /></td> </tr> </tbody> </table> <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script> <script type="text/javascript"> //<![CDATA[ var submitcount86036 = 0;function checkWholeForm86036(theForm){var why = "";if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value); if (theForm.PaymentMethodType) why += checkSelected(theForm.PaymentMethodType, "Payment Method");if (!theForm.PaymentMethodType || getRadioSelected(theForm.PaymentMethodType) == 1) { if (theForm.CardName) why += isEmpty(theForm.CardName.value, "Name on Card"); if (theForm.CardNumber) why += isNumeric(theForm.CardNumber.value, "Card Number"); if (theForm.Amount) why += isCurrency(theForm.Amount.value, "Amount"); } if(why != ""){alert(why);return false;}if(submitcount86036 == 0){submitcount86036++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}} //]]> </script> </form>
... View more