paypal code - helper class