Charging Cards with Server Authentication

With our Stripe account set up and our application configured to speak to the Stripe API, it’s time to actually charge some credit cards.

Stripe offers at least three ways to manage our interaction with the user’s credit card data:

  • A traditional web form that sends the customer credit card information to the server, to be authenticated by Stripe.

  • A custom form that authenticates with Stripe client-side before sending information to the server, which sends the server a one-time token rather than the credit card information.

  • Stripe’s generic checkout form, which can be added as an overlay to any checkout page. This form behaves like the client-side form but requires less coding and has less flexibility. ...

Get Take My Money now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.