Using a Secure Server with Hard-Coded and Database Shopping
Baskets
Example
- Securely processing the payment, confirmation and processing
of shopping basket orders (hard-coded and database).
MGI Tags
- mgiPaymentInfo
- mgiShippingInfo
- mgiConfirmOrder
- mgiSendOrder
- mgiToken
Steps
- Open the confirm order page in a text editor.
- Enter shoppingBasketURL parameter in the mgiConfirmOrder
tag.
- Save the confirm order page.
- Open the order processing page in a text editor.
- Enter shoppingBasketURL parameter in the mgiSendOrder.
- Save the order processing page.
- FTP the check out, confirm order, and order processing page
to your secure folder.
- Open the shopping basket page in a text editor.
- Enter a secure URL for the check out button link.
- Save the shopping basket page.
- FTP the shopping basket page to a non-secure server web running
MGI.
- Complete the shopping process.
Step 1: Open the confirm order page in a text editor.
- Open the confirm order page in a text editing program that
allows you to view and modify HTML.
Step 2: Enter shoppingBasketURL parameter in the mgiConfirmOrder
tag.
- The mgiConfirmOrder tag displays the shopping basket contents
by reading the internal shopping basket from the non-secure server.
The shoppingBasketURL parameter defines where the original MGI
Data folder and MGI Shopping Basket database are located. By
default, the MGI Data folder is located at the root level of
the non-secure web site. In this case, enter the URL of the web
site in the shoppingBasketURL parameter (e.g., http://www.domain.com).
If an mgiShoppingBasket tag is implemented in a folder containing
a tilde (~), then the MGI Data folder is created at the root
level of the tilde folder. In that case, enter the URL of the
web site and the tilde folder name in the shoppingBasketURL parameter
(e.g., http://www.domain.com/~store/).
<mgiConfirmOrder taxRate=".06" state="North Carolina"
shoppingBasketURL="http://www.domain.com">
The TShirt Store
1007 Main Ave
Raleigh NC 27606
</mgiConfirmOrder>
Step 3: Save the confirm order page.
- Save the changes you have made to the confirm order page.
Step 4: Open the order processing page in a text editor.
- Open the order processing page in a text editing program
that allows you to view and modify HTML.
Step 5: Enter theHutmanScenario in the mgiSendOrder tag (if
necessary).
- The mgiSendOrder tag obtains order information by reading
the internal shopping basket from the non-secure server. The
shoppingBasketURL parameter defines where the original MGI Data
folder and MGI Shopping Basket database are located. By default,
the MGI Data folder is located at the root level of the non-secure
web site. In this case, enter the URL of the web site in the
shoppingBasketURL parameter (e.g., http://www.domain.com). If
an mgiShoppingBasket tag is implemented in a folder containing
a tilde (~), then the MGI Data folder is created at the root
level of the tilde folder. In that case, enter the URL of the
web site and the tilde folder name in the shoppingBasketURL parameter
(e.g., http://www.domain.com/~store/).
<mgiSendOrder to="sales@tshirtstoredomain.com"
from="webmaster@tshirtstoredomain.com"
mailServer="mail.tshirtstoredomain.com"
subject="Online Order" taxRate=".06" state="North Carolina"
shoppingBasketURL="http://www.domain.com">
Step 6: Save the order processing page.
- Save the changes you have made to the order processing page.
Step 7: FTP the check out, confirm order, and order processing
page to your secure folder.
- Upload the check out, confirm order, order processing page
and any images associated with those pages to a your secure folder
using an FTP program.
Caution: Do not put
the shopping basket page on the secure server or link the shopping
basket page with a secure URL. If the shopping basket page is
located on a secure server, the internal MGI shopping basket
database is encrypted and cannot be read by the mgiShoppingBasket
or mgiConfirmOrder tag. |
Step 8: Open the shopping basket page in a text editor.
- Open the shopping basket page in a text editing program that
allows you to view and modify HTML.
Step 9: Enter a secure URL for the check out button link.
- To link from the shopping basket page to the secure check
out page, enter the secure absolute URL to the check out page
in your secure folder in the form action of the HTML <FORM>
tags that enclose the Check Out button . If you do not know the
secure URL to use, ask your server administrator.
<FORM ACTION="shoppingbasket.html" METHOD="Post">
<mgiShoppingBasket productDatabaseFileLocation="Clothing"
productTableName="Tshirts" productIDFieldName="ProductID">
<mgiSBPrice name="Price" pricefieldname="Price">
<mgiSBShippingCost name="Shipping" method="BasePlusPerItem"
baseShippingCost="2.00">
</mgiShoppingBasket>
<mgiButton name="Modify Shopping Basket">
</FORM>
<FORM
ACTION="https://secure.pageplanet.com/tshirtstore/checkout.html"
METHOD="Post">
<mgiButton name="Check Out">
</FORM>
Step 10: Save the shopping basket page.
- Save the changes you have made to the shopping basket page.
Step 11: FTP the shopping basket page to a non-secure server
web running MGI.
- Upload the shopping basket page to your non-secure folder
using an FTP program.
Step 12: Complete the shopping process.
- Complete the shopping basket process. When you access the
check out page from the shopping basket dispay page, the browser
will indicate a secure connection.
|