#ayberk-node-parameters

1 messages · Page 1 of 1 (latest)

feral riverBOT
outer patio
#

Hello! Can you provide more details? Are you using one of our libraries? What programming language? Can you share your current code?

tired bough
#

Hi yes im using stripe libraries. Im developing a mobile application with dart on flutter. This is firebase function's index page with js.

The stripe was working well but i need to this 2 parameters on my project cuz of basicly when deciding which database to migrate and when i add this parameters to body stripe is getting this error. 'Received unknown parameters: userid, bookid

With this parameters im getting userid and bookid informations from another dart page.

I think so the api doesn't have this parameters and i need to change or fix it but idk how can i do this.

Thank you for your help!

outer patio
tired bough
#

hmm i guess i can not add this parameters to stripe right? So should i use metadata?

outer patio
#

Yes.

tired bough
#

Do you have any tuttorial about the metadata. It is looking like so confusing. Im new about the programming.

outer patio
#

Nothing beyond what I linked above. It would basically be something like this:

const paymentIntent = await stripe.paymentIntents.create({
  amount: ...,
  currency: ...,
  metadata: {
    userid: ...,
    bookid: ...,
  },
  ...
});
tired bough
#

hmm i didnt do anything about the website i just typed your code and im feeling like idiot cuz of the program get the error about syntax. I have to fixed this problem really im sorry i feel bad for asking such silly questions.

Probably i should do something on the website

outer patio
#

You need a comma after the }

#

You have this:

}
customer: ...
tired bough
#

oh you are right

#

i got it im trying

#

omg man what a huge you are :D

#

i thougt i should set up something from website of you send

#

i appreciative for taking care of a newbie like me

#

and sorry for your wasting time

outer patio
#

Happy to help!