in reply to How to safely/atomically process payments
stripe.com provide quite detailed docs and by using their support pages you can refine your search.