#Shahzaib

1 messages · Page 1 of 1 (latest)

novel condorBOT
obsidian snow
#

You want to accept a payment or just collecting the payment method ?

fringe hinge
#

I want to just payment method as I using that payment method id on backend to create intent using Stripe.paymentIntents.create

obsidian snow
fringe hinge
#

I can't i get payment method with something like
const { error, paymentMethod } = await stripe.createPaymentMethod({
elements: elements.getElement('payment'),
})
as currently it is giving me error : " type should be a string such as 'card', 'ideal', or 'sepa_debit'."

obsidian snow
#

But you should be following the step I shared with you. not using createPaymentMethod function.

fringe hinge
#

req_oFgoeM1mKQuiP1

old ice
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

#

You don't need stripe.createPaymentMethod