#nakamura.k

1 messages · Page 1 of 1 (latest)

polar pawnBOT
junior scaffold
#

Seems like you're using the stripe package in your form.js code?

vague dust
#

that's right. js file that I created.
Did I make a mistake writing the code here?

junior scaffold
#

I guess that's client-side JavaScript?

vague dust
#

yes

junior scaffold
#

Yeah the stripe package is a Node.js library intended for server-side usage. You shouldn't be using that in frontend code, especially as you'll be exposing your account secret key

polar pawnBOT
vague dust
#

Excuse me, be careful...
What could be the cause of my error?
I intended to write the code according to this reference, but...

fresh vine
#

👋 taking over for my colleague. Let me catch up.

vague dust
#

I'm not familiar with English and I don't know if I can understand properly.
Would you mind explaining that to Tarzan again?

I wanted to use stripe.confirmKonbiniPayment(), so I wrote the code like the image I sent, but I'm having trouble with the error "stripe.confirmKonbiniPayment is not a function" on the console.

fresh vine
#

as my colleague explained, you are using the wrong package

#

you need to install @stripe/stripe-js

#

and use that

vague dust
#

I didn't install the correct packages.
I'll try that method.
thank you!