e-comm part2

Views:
 
Category: Education
     
 

Presentation Description

Present 2

Comments

Presentation Transcript

E-Commerce (Master in Business Informatics) : 

E-Commerce (Master in Business Informatics) SEE UniversityContemporary Sciences and Technologies 1 Prof. Zamir Dika, PhD Assistant: Adrian Besimi, MSc

Final Project Requirement : 

Product Catalog User Authentication Shopping Cart Payment System Integration Reports + Administration part for Product Catalog Management, User Management, Payment and Order / Sales Reports Final Project Requirement 2

Sample FlowChart : 

Sample FlowChart 3

Shopping Cart Details : 

Temporary list of items selected to be purchased. Can contain the following data: Product ID Quantity Product Price (optional) User ID or Session ID Date / Time Shopping Cart Details 4

Shopping Cart vs. Order : 

Order has the list of items to be purchased. Must contain two parts: Order (INVOICE) Order Details (list of items and quantities) Shopping Cart vs. Order 5

Order : 

The Order must contain these data: Order ID (Invoice NR) TOTAL Price TOTAL TAX-es TOTAL Shipping Price Username (User ID) Date / Time of Order Confirmation by Payment Gateway Information that Order is Processed Date / Time when Order is Processed Order 6

Order Details : 

Order details contains the list of items that are included in the Order. Must contain these data: Product ID Quantity Product Price Shipping Per Product Tax Per Product Date / Time Order ID (Invoice NR) * related to the Order Order Details 7

Payment Gateways : 

Order can be processed using commercial third-party payment gateways, such as: PayPal Google Checkout 2CO.com CPAY.com.mk (CASYS) Payment Gateways 8

PayPal Sample Code (ASPX) : 

if (PaymentOption == "Visa" || PaymentOption == "MasterCard" || PaymentOption == "Amex" || PaymentOption == "Discover") { NVPAPICaller test = new NVPAPICaller(); creditCardType = "<<Visa/MasterCard/Amex/Discover>>"; // Set this to one of the acceptable values (Visa/MasterCard/Amex/Discover) match it to what was selected on your Billing page creditCardNumber = "<<CC number>>"; // Set this to the string entered as the credit card number on the Billing page expDate = "<<Expiry Date>>"; // Set this to the credit card expiry date entered on the Billing page cvv2 = "<<cvv2>>"; // Set this to the CVV2 string entered on the Billing page firstName = "<<firstName>>"; // Set this to the customer's first name that was entered on the Billing page lastName = "<<lastName>>"; // Set this to the customer's last name that was entered on the Billing page street = "<<street>>"; // Set this to the customer's street address that was entered on the Billing page city = "<<city>>"; // Set this to the customer's city that was entered on the Billing page state = "<<state>>"; // Set this to the customer's state that was entered on the Billing page zip = "<<zip>>"; // Set this to the zip code of the customer's address that was entered on the Billing page countryCode = "<<PayPal Country Code>>"; // Set this to the PayPal code for the Country of the customer's address that was entered on the Billing page currencyCode = "<<PayPal Currency Code>>"; // Set this to the PayPal code for the Currency used by the customer orderDescription = "<<OrderDescription>>"; // Set this to the textual description of this order paymentType = "Sale"; string retMsg = ""; string finalPaymentAmount = ""; NVPCodec decoder; finalPaymentAmount = Session["payment_amt"].ToString(); bool ret = test.DirectPayment( paymentType, paymentAmount, creditCardType, creditCardNumber, expDate, cvv2, firstName, lastName, street, city, state, zip, countryCode, currencyCode, orderDescription, ref retMsg ); if (ret) { // success } else { Response.Redirect("APIError.aspx?" + retMsg); } PayPal Sample Code (ASPX) 9

Google CheckOut : 

Google CheckOut 10

Google CheckOut Sample Code HTML : 

<form method="POST" action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/1234567890" accept-charset="utf-8"> <input type="hidden" name="item_name_1" value="Peanut Butter"/> <input type="hidden" name="item_description_1" value="Chunky peanut butter."/> <input type="hidden" name="item_quantity_1" value="1"/> <input type="hidden" name="item_price_1" value="3.99"/> <input type="hidden" name="item_currency_1" value="USD"/> <input type="hidden" name="ship_method_name_1" value="UPS Ground"/> <input type="hidden" name="ship_method_price_1" value="10.99"/> <input type="hidden" name="ship_method_currency_1" value="USD"/> <input type="hidden" name="tax_rate" value="0.0875"/> <input type="hidden" name="tax_us_state" value="NY"/> <input type="hidden" name="_charset_"/> <input type="image" name="Google Checkout" alt="Fast checkout through Google" src="http://checkout.google.com/buttons/checkout.gif?merchant_id=1234567890&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180"/> </form> Google CheckOut Sample Code HTML 11

Thank you! : 

Any Questions? Thank you! 12