#timothy WU-PI

1 messages ยท Page 1 of 1 (latest)

hard bobcat
#

๐Ÿ‘‹ happy to help

#

please use the thread instead of the main channel for our subsequent messages

#

and could you please move the screenshot

lavish dew
#

yes of course

hard bobcat
#

so we could keep the context

lavish dew
#

pi_3LSglBAubXoYV6cs0FlzOQVI

hard bobcat
#

I'm still looking at this just a quick moment

#

the value you are passing is a string

#

for one, so probably a parseInt might help

#

but in all cases we highly discourage you from passing the amount to be paid from your front-end as this would lead to potential exploiting of your system

lavish dew
#

hello sorry im back, first i would like to thank you for your quick response, and i know for now it s nor recommended to put it in the front i will change it after

#

and i don t understand, i do think my rep is a number type thank to the console.log(typeof rep) wich return number

dusk quiver
#

Hello ๐Ÿ‘‹ Taking over

#

I see that in your console that there are two amounts being printed, 158 and then 0

#

I believe the error is raised by you passing in 0 as the amount

lavish dew
#

yes thanks you,but know it give me another error code error - StripeInvalidRequestError: No valid payment method types for this Payment Intent. Please ensure that you have activated payment methods compatible with your chosen currency in your dashboard (https://dashboard.stripe.com/settings/payment_methods) or specify payment_method_types

#

and i ve tried to look at the page and activated all the card method i needed but it s still does not work

dusk quiver
lavish dew
#

i m sorry wrong one

#

ok idk why but when i have changed a little something it s working perfectly now, thanks a lot for your quick response big thumbs up for all of you thanks a lot again !