Skip to content

Instantly share code, notes, and snippets.

@StoneCypher
Created September 29, 2014 06:43
Show Gist options
  • Select an option

  • Save StoneCypher/e726661e1fac2fecc9e1 to your computer and use it in GitHub Desktop.

Select an option

Save StoneCypher/e726661e1fac2fecc9e1 to your computer and use it in GitHub Desktop.
Paypal Base Post-Fee
PBPF = fun(Amt) ->
Amt - ( (Amt * 0.029) + 0.3 ) end.
% Usage:
%
% 1> PBPF(2).
% 1.642
%
% This means that unless you qualify for bulk rates, a $2 payment will yield $1.64 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment