Stripe has a super easy API to use.  Here are some live code examples.