#ishu-test-cards
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ishu22g-future-payments, 3 days ago, 30 messages
Instead of providing raw card details, you should be able to use the test payment method strings we provide here to create a setup intent. (like pm_card_visa)
I am not sure what you mean. Can you please share an example?
You can create a testmode Setup Intent like
const setupIntent = await stripe.setupIntents.create({
payment_method_types: ['card'],
payment_method: 'pm_card_visa'
});
Okay I see. Now will this setupIntent automatically have a card associated with this on creation?
Yup! Try it out and see how it works
There isn't really any specific documentation on this other than https://stripe.com/docs/testing?testing-method=payment-methods#cards that shows all the test cards we offer