EventPro Planner Manual

Payment Setup

Hide Navigation Pane

Payment Setup

Previous topic Next topic No directory for this topic Expand/collapse all hidden text  

Payment Setup

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic.  

NOTE: This is Technical Information intended for users with IT expertise.

To process payments in Attendee Online, you need a merchant account with PayPal PayFlow Link, LinkPoint Central, e-Path or another online payment gateway.

Before you set up taking payments in Attendee Online, you need to set up SSL to ensure everything is secure.  See SSL Setup above.

After you set up payments, you need to change the Registration Submit template page to use the Payment button instead of the Submit button.

Also, after you have Payments set up,  you need to change the server configuration file so that Attendee Online knows to use it. Changing the server configuration file is explained under Server Configuration.

 

1.Turn on the Payment Button. To turn this button on, you  need to add it to the Registration Edit Success Page. The text to add to the page is “{%ButtonPaymentRedirect%}”. To do this, navigate to your attendee online template files on the server. Right click on the RegSuccessPage.html page and select to open it with Notepad. Put the cursor after: {%ButtonEventMenu%} and place: {%ButtonPaymentRedirect%} just after it and save the file.
2.Set up the Payment Redirection Page.  To set up the redirection page, you need to edit it. This page can be found in the ..\AttendeeOnline\Bin\Files.  The top of the page should like like the following, and shouldn't need to be changed. If the chargetotal.value at the top says anything other than = '0.00', make sure you change it to this amount.

<html>

<head>

   <title>Make Payment</title>

   <script>

     function fillform(){  

      document.payment.chargetotal.value = '0.00';

      var sURL = window.document.URL.toString();

 

          if (sURL.indexOf("?") > 0){

               var arrParams = sURL.split("?");  

               var arrURLParams = arrParams[1].split("&");

               var i = 0;

               for (i=0;i<arrURLParams.length;i++){

                    var sParam =  arrURLParams[i].split("=");

                    if (sParam[0] = 'total'){

                     document.payment.chargetotal.value = sParam[1];

                    }

               }

          }

 

          document.payment.submit();

     }

   </script>

</head>

The rest of the page is a form that will redirect you to the payment site. Note where the value for the fillform function comes from. The user will need to fill in the values for the fields that the payment site requires. This is also where you specify where the redirection should go to.

Click to expand/collapse textPayPal

If using Pay Pal, follow these instructions. Otherwise follow the instructions under Other Payment Sites below.

When using PayPal, you can have the redirect form generated for you by using Pay Pal's Merchant Tools to create a Buy Now button.

Enter the information and enter a value of $1.00 for the amount (the fillform script above will change to the correct amount when the user goes to this page). After all your information has been entered, click on the Create Button Now button and you will go to a page that has the html for the button you will place on your page.

The only change you should have to make to this form is the name of the form.  You need to set it to name="payment" so the script above will find it properly. The following is an example:*

<form name="payment" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="cmd" value="_xclick">

<input type="hidden" name="business" value="david@eventpro.net">

<input type="hidden" name="item_name" value="Event Regitration">

<input type="hidden" name="amount" value="1.00">

<input type="hidden" name="no_shipping" value="2">

<input type="hidden" name="no_note" value="1">

<input type="hidden" name="currency_code" value="CAD">

<input type="hidden" name="lc" value="CA">

<input type="hidden" name="bn" value="PP-BuyNowBF">

<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">

<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">

</form>

*(This example was created with a sandbox account and will not work with live data.)

Click to expand/collapse textOther Payment Sites

If using another online payment gateway besides PayPal, you  need to get an html form to be placed on our PaymentRedirect.html page.

For most sites, if you cannot find the form on your own, you can simply ask their Support department to send you the form information you need. An example of what this will look like can be seen below:

<form method="POST" name='payment' action=https://www.linkpointcentral.com/lpc/servlet/lppay>

    <input type="hidden" name="mode" value="fullpay">

    <input type="hidden" name="chargetotal">

    <input type="hidden" name="storename" value="1587538">

    <input type="submit" value="Continue to Secure Payment Form">

</form>

After you get the payment form script, you simply need to combine the top and bottom into one document.

The final result of the payment redirect page should like something like this:

***************************************************

<html>

<head>

   <title>Make Payment</title>

   <script>

     function fillform(){  

      document.payment.chargetotal.value = '0.00';

      var sURL = window.document.URL.toString();

 

          if (sURL.indexOf("?") > 0){

               var arrParams = sURL.split("?");  

               var arrURLParams = arrParams[1].split("&");

               var i = 0;

               for (i=0;i<arrURLParams.length;i++){

                    var sParam =  arrURLParams[i].split("=");

                    if (sParam[0] = 'total'){

                     document.payment.chargetotal.value = sParam[1];

                    }

               }

          }

 

          document.payment.submit();

     }

   </script>

</head>

 

<body onload="fillform()">

You are being redirected to a Secure Payment Form. <br>If the page does not appear click the button below to continue.<br>

 

    <form method="POST" name='payment' action=https://www.linkpointcentral.com/lpc/servlet/lppay>

    <input type="hidden" name="mode" value="fullpay">

    <input type="hidden" name="chargetotal">

    <input type="hidden" name="storename" value="1587538">

    <input type="submit" value="Continue to Secure Payment Form">

    </form>

</body>

</html>

***************************************************

Click to expand/collapse textFor E-PATH

The following is an example of how you can set up a payment redirect page with e-Path. You would need to change the form action to whatever e-Path gives you as a post action.  The order number sent to e-Path must be unique.  The example code below combines the booking number with the confirmation number to create the order number so it would look something like "1-BE7AF14B".

<html>

<head>

 <title>Make Payment</title>

 <script>

         function fillform(){                        

                 var sURL = window.document.URL.toString();

                 var sConfNo = '';

                 var sBookNo = '';

 

                 if (sURL.indexOf("?") > 0){

                         var arrParams = sURL.split("?");                        

                         var arrURLParams = arrParams[1].split("&");                

                         var i = 0;

                         for (i=0;i<arrURLParams.length;i++){

                                 var sParam =  arrURLParams[i].split("=");

                                 if (sParam[0] == 'total'){

                                         document.payment.amt.value = sParam[1];

                                 }

                                 if (sParam[0] == 'eventcode'){

                                         var sEventCode = sParam[1].split("-");

                                         sBookNo = sEventCode[1];

                                 }

                                 if (sParam[0] == 'eventname'){

                                         document.payment.des.value = sParam[1];

                                 }

                                 if (sParam[0] == 'confirmationno'){

                                         sConfNo = sParam[1];

                                 }

                                 if (sParam[0] == 'attendeename'){

                                 }

                                 if (sParam[0] == 'firstname'){

                                 }

                                 if (sParam[0] == 'lastname'){

                                 }

                                 if (sParam[0] == 'email'){

                                         document.payment.cemail.value = sParam[1];

                                 }

                                 if (sParam[0] == 'city'){

                                 }

                                 if (sParam[0] == 'state'){

                                 }

                                 if (sParam[0] == 'phone'){

                                 }

                         }

                         if (sBookNo == ''){

                                 document.payment.ord.value = sConfNo;

                         }

                         else{

                                 document.payment.ord.value = sBookNo + '-' + sConfNo;        

                         }

                 }

 

                 document.payment.submit();

         }

 </script>

</head>

 

<body onload="fillform()">

 You are being redirected to a Secure Payment Form. <br>If the page does not appear click the button below to continue.<br>

 

 <form action="http://e-path.com.au/demo1/demo1/demo1.php" method="post" name="payment">

 <input type="hidden" name="ord" value="" border="0">

 <input type="hidden" name="des" value="" border="0">

 <input type="hidden" name="amt" value="$0.00" border="0">

 <input type="hidden" name="frq" value="Once Only" border="0">

 <input type="hidden" name="opt" border="0">

 <input type="hidden" name="cemail" value="" border="0">

 <input type="hidden" name="ret" border="0">

 <input type="submit" value="Continue to Secure Payment">

 </form>

</body>

</html>

Now, whenever an attendee finishes registering online, they will see a button labeled Make Payment and will be taken to the payment site you specify.