#krut4rth

1 messages · Page 1 of 1 (latest)

fast scaffoldBOT
shell garnet
fossil spear
#

const paymentIntent = await stripe.paymentIntents.create({
amount: 2000,
currency: 'usd',
automatic_payment_methods: {enabled: true},
});

What should change here?

#

where shall card come?

shell garnet
#

Did you see the link I sent?

#

You shouldn't pass automatic_payment_methods if passing payment_method_options

fossil spear
#

const paymentIntent = await stripe.paymentIntents.create({
amount: 2000,
currency: 'usd',
payment_methods_options: 'card',
});

#

is this correct?

shell garnet
#

Which is an array

#

so payment_method_types: ['card']