#krut4rth
1 messages · Page 1 of 1 (latest)
When creating the payment intent, only pass in card: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
const paymentIntent = await stripe.paymentIntents.create({
amount: 2000,
currency: 'usd',
automatic_payment_methods: {enabled: true},
});
What should change here?
where shall card come?
Did you see the link I sent?
You shouldn't pass automatic_payment_methods if passing payment_method_options
const paymentIntent = await stripe.paymentIntents.create({
amount: 2000,
currency: 'usd',
payment_methods_options: 'card',
});
is this correct?
Oh sorry I meant to send payment_method_types: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Which is an array
so payment_method_types: ['card']