Use Stripe Elements, our prebuilt UI components, to create a payment form that lets you securely collect a customer’s card details without handling the sensitive data. The card details are then converted to a representative Token that you can safely send to your servers. Your server can use that token to create a charge.
Test your integration
If you can reliably enter a test card in your HTML form, submit it to the server, and see that your server created the charge, then your integration is finished.
Congratulations! You completed a basic payments integration with the Charges API. This API doesn’t support scaling businesses or customers outside of the U.S. and Canada. For more robust and global payments, learn to accept a payment with the Payment Intents API.