#ishu-test-cards

1 messages · Page 1 of 1 (latest)

iron domeBOT
#

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.

smoky hearth
#

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)

remote star
#

I am not sure what you mean. Can you please share an example?

smoky hearth
#

You can create a testmode Setup Intent like

const setupIntent = await stripe.setupIntents.create({
  payment_method_types: ['card'],
  payment_method: 'pm_card_visa'
});
remote star
#

Okay I see. Now will this setupIntent automatically have a card associated with this on creation?

smoky hearth
#

Yup! Try it out and see how it works

remote star
#

Okay let me check

#

Can you please share link to documentation if there is any?

smoky hearth