My first thought was to check the source for how they're handling credit card data, payments, and gateways. I can't find any of it... Skipping those bits makes ecommerce _a lot_ easier to build!
I second parent's suggestion here though, Stripe API is a great place to start.