Interfacing your Web Pages with the Secure Cottage Ecommerce System

Important Points

You need to have the encrypt.class applet reside on your web pages.

You need to reference your Javascript RSA public key file kept at SecureCottage

You need to call "javascript:
in the action clause of your HTML ordering form.

if you are using the Paypal option you need to include some hidden members in your ordering form.

You need to do three things to interface with SecureCottage.

  1. You need to download the encrypt.class java applet. This applet must be uploaded to your web page and referenced in the same web page where your final Ecommerce order form is.

    This applet encrypts your order form with your public RSA key. The encrypted communication is then sent to the SecureCottage creditcard.cgi script. This PERL program returns a secure web (HTTPS) credit card entry web page to your client. When the client enters his credit card details, these details are then encrypted with your public RSA key again. The combined encrypted data is then sent by secure web to a SecureCottage mailing script. This mailing script then emails you the encrypted order. Only you can decrypt this order because only you have the private RSA key necessary to decrypt the order. The encrypt applet effects this client-side encryption process.

    If your client does not have java installed, then custom Javascript functions encrypt using the public RSA key. The process is much the same, but may be a little bit slower (see the Web Page Encryption Demo on the main menu for more of this).

    To download the encrypt applet please click here.

  2. By creating and publishing a public RSA key with SecureCottage, you have created a Javascript file containing your public key at SecureCottage. You must reference this Javascript file in order for the Java encrypt applet to securely encrypt your client's order form to you.

    You can reference the two required SecureCottage files in your own HTML code by the following HTML:

    <applet code="encrypt.class" MAYSCRIPT height=0 width=0 > </applet > 

    You can select and copy this text if you wish.

    If you are using the Paypal option of SecureCottage Ecommerce then use the following two lines:

    <applet code="encrypt.class" MAYSCRIPT height=0 width=0 > </applet > 
  3. Finally, in the action clause of your Ecommerce order form you will call the Javascript function securecottage() instead of an URL.
    <form action="javascript:securecottage()">

However, if you are using the Paypal option for your own web pages, there are several hidden members of the order form you need to program. They are:

<input type="hidden" name="redirection" value="http://theurlyouwantpaypaltoreturnyourclientto">
<input type="hidden" name="invoice" value="YourInvoiceNumber">
<input type="hidden" name="amount" value="TheTotalAmountBeingCharged">
<input type="hidden" name="item" value="TheNameGivenToTheCharge">
For instance, if your business URL was, your invoice number was CELICA131A12, your client was to be charged 50.34$, and the name of the service being rendered was "Celica Engine Book Sales", your HTML code would be:
<input type="hidden" name="redirection" value="">
<input type="hidden" name="invoice" value="CELCIA131A12">
<input type="hidden" name="amount" value="50.34">
<input type="hidden" name="item" value="Celica Engine Book Sales">
Changing the public key reference to the paypal directory instead of the keys directory (see above) and including the above four hidden items in your order form would direct you to Paypal instead of SecureCottage for credit card processing purposes.

Using SecureCottage and Paypal is a powerful way to securely transit your Ecommerce details and to take credit cards in real time. This combination avoids almost all traditional dealings with Ecommerce companies needed before you can sell products on the Internet.

If you wish to proceed with the Paypal option, sign up for the 30 day Free Securecottage trial (see the menu item to the left), go to the Paypal site and sign up for a merchant account, and then interface your HTML in the manner described above. This is the quickest way for an ordinary person to securely offer Ecommerce and to take real time credit card orders.

This is all you need to do to interface with the SecureCottage Ecommerce System.

You can now return to the welcome page.

Thank you for joining up with SecureCottage and happy Cottage Ecommerce to you.