PDA

View Full Version : PayPal IPN (Calculating Fees) [PHP]


Deacon Frost
11-22-2009, 10:23 AM
[Not putting this in PHP, because I don't need PHP help, I just need PayPal knowledge...]

I can't find exactly what I'm looking for through PayPal's documentation, and nothing pops out on Google, so I figured I'd go ahead and ask you guys.

I'm developing a script with PayPal IPN, and the person is required to pay $1, as well as .35 to cover any fees that might come up from other countries, and our country, etc.

Anyways, I was wondering if $_POST['mc_gross']; will be showing the amount after the fees are deducted, or the amount before? I have used their IPN before, but I never made it past sandboxxing, and through that you control the exact post data, so... I just wasn't sure.

My question is, should I make the amount to match it be $1.35, or... well, that's the only thing I would think could work, calculating all the fees is impossible right? There's not a better PayPal variable for this, is there?

Thanks in advance! :)