This project is deprecated and is no longer being actively maintained.
Stripe Elements modal demo
This sample shows how to implement Stripe Elements within a modal dialog using the following APIs.
-
Payment Intents API reference implementation with Payment Intents API in the cards only folder.
-
Payment Request API (i.e Apple Pay) reference implementation with PaymentIntents in the cards and mobile wallets folder.
Demo
See a hosted version of the sample in test mode or fork on codesandbox.io
The hosted demo is running in test mode -- use 4242424242424242
as a test card number with any CVC + future expiration date.
Use the 4000000000003220
test card number to trigger a 3D Secure challenge flow.
Read more about test cards on Stripe at https://stripe.com/docs/testing.
Payment success
Payment declined
Get support
If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.
If you have questions, comments, or need help with code, we're here to help:
- on IRC via freenode
- on Twitter at @StripeDev
- on Stack Overflow at the stripe-payments tag
- by email
Sign up to stay updated with developer news.