Ok, it seems to be working! Thanks for your help! I certainly appreciate it! Below is my final code in case someone comes across this thread and is trying to do the same thing.
Note: For my particular application, I choose NOT to tax the transaction fee. Also, this code is not plug-and-play. The numbers will need to be changed to match what you're selling, how much it is, the billing frequency options, the names of the fields on the order form, and that rates and fees specific to your PayPal account. Also, per netshine you should add a product to your product list for this fee and change the product ID in the code to match that new product. If you have any questions about this code I designed, feel free to reply and I'll do my best to answer them.
P.S. I think it might be against PayPal policy to pass down transaction fees to your buyers. I think this is also against the policy of other merchant account and credit card processing companies. If you are worried about this, you might want to call the fee an administrative fee or something.
-Andrew
// Setup variables needed later
$qty = $_POST['qty_users'];
$frequency = mosGetParam($_POST, 'frequency');
$rate = 0.029;
$trans_fee = 0.30;
if ($_POST['pay_method'] == "paypal") {
// If user selects PayPal for payment method
$order = array();
switch ($frequency) {
// Figure out what the price per unit is
// The depends upon the payment frequency the user selected
// Example: If the user selected monthly payments, they would pay $5 per month
case "CC":
// Paid 1 month at a time
$price = 5;
break;
case "DX":
// Paid 6 months at a time
$price = 30;
break;
case "EE":
// Paid 1 year at a time
$price = 60;
break;
case "FF":
// Paid 2 years at a time
$price = 120;
break;
case "GG":
// Paid 5 years at a time
$price = 300;
break;
}
$order['net_price'] = $price * $qty * $rate + $trans_fee; // If your locality requires administrative fees/transaction fees to be taxed, you'll need to add sales tax to this total
$order['tax_rate'] = 0;
$order['tax_amount'] = 0;
$order['payment_frequency'] = $frequency;
$order['product_name'] = "Online Payment Processing Fee";
$order['quantity'] = 1;
$order['product_id'] = 5; //Change this to whatever your actual product ID is
$orders[] = $order;
}
else {
// Non-paypal payment was selected; don't add anything
}