Using PayPal with the Hassan Cart


This guide describes how to use the Hassan Cart with the Web Accept system from


  1. Verify you are running version 1.54 or higher of the Hassan Cart.
  2. Add the payment_type variable to your email form. Include a payment type of paypal
  3. Add the line "$PAYMENT_FILE{'paypal'} = 'paypal.html';" to your shop.cfg file.
  4. Create a web page called paypal.html in your $shopping_root directory. (usually /shop)
  5. Put the form below in paypal.html. Make sure you fill in the return and business variables with your relevant information.
  6. You are ready to process orders via the PayPal payment gateway!

Example PayPal Form:

<form action="" method="POST">
<input type="hidden" name="cmd" value="_ext-enter"> 
<input type="hidden" name="bn" value="hassanirata"> 
<input type="hidden" name="return" value=""> 
<input type="hidden" name="redirect_cmd" value="_xclick"> 
<input type="hidden" name="business" value="your_PayPal_ID"> 
<input type="hidden" name="item_name" value="PUT_ORDER_DESCRIPTION_HERE"> 
<input type="hidden" name="amount" value="PUT_TOTAL_HERE"> 
<input type="hidden" name="first_name" value="PUT_FNAME_HERE"> 
<input type="hidden" name="last_name" value="PUT_LNAME_HERE"> 
<input type="hidden" name="address1" value="PUT_STREET_HERE"> 
<input type="hidden" name="address2" value="PUT_STREET2_HERE"> 
<input type="hidden" name="city" value="PUT_CITY_HERE"> 
<input type="hidden" name="state" value="PUT_STATE_HERE"> 
<input type="hidden" name="zip" value="PUT_ZIP_HERE"> 
<input type="hidden" name="night_phone_a" value="PUT_PHONE_A_HERE"> 
<input type="hidden" name="night_phone_b" value="PUT_PHONE_B_HERE"> 
<input type="hidden" name="night_phone_c" value="PUT_PHONE_C_HERE"> 
<input TYPE="submit" VALUE="Pay Via Payal">
[an error occurred while processing this directive]