This is a small example of charging a user for a membership using PayPal API in PHP