Location: PHPKode > scripts > WebsiteMemberManager > members-section/admin/php/paypal.php
<?php
if (!isset($tax)) $tax=0.00;

if (isset($the_action))
{
 if ($the_action=="delete") paypal_delete_item($id);
 elseif ($the_action=="update_paypal_config") paypal_update_config($business,$installed,$currency_code,$currency_left_chars,$currency_right_chars,$display_position_right);
 elseif ($the_action=="update_paypal_item")
 {
  if (isset($a1)) paypal_update_item($amount,$tax,$item_name,$duration,$id,$a1,$a2,$p1,$p2);//insert trial
  else paypal_update_item($amount,$tax,$item_name,$duration,$id);
 }
 elseif ($the_action=="add_paypal_item")
  {
   $desc=($name=="standard") ? 'One Week Membership' : 'One week recurring Subscription';
   $desc.=($name=="sub_trial") ? ' with reduced trial period to ' : " to ";
   paypal_insert_item('9999.00', $desc.CO_NAME,604800,$name);//cost, description, duration in seconds
  }
}
$dbc = dbc::instance();
$result = $dbc->prepare("SELECT * FROM wmm_paypal_config");
$rows = $dbc->executeGetRows($result); 
$paypal_email_text = "<font color=\"#0000FF\">".$rows[0]['business']."</font>";

include("paypal.html");
?>
Return current item: WebsiteMemberManager