#nakamura.k
1 messages · Page 1 of 1 (latest)
Seems like you're using the stripe package in your form.js code?
that's right. js file that I created.
Did I make a mistake writing the code here?
I guess that's client-side JavaScript?
yes
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
confirmKonbiniPayment exists on the Stripe.js package (@stripe/stripe-js): https://stripe.com/docs/js/payment_intents/confirm_konbini_payment
Excuse me, be careful...
What could be the cause of my error?
I intended to write the code according to this reference, but...
👋 taking over for my colleague. Let me catch up.
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.
as my colleague explained, you are using the wrong package
you need to install @stripe/stripe-js
and use that
I didn't install the correct packages.
I'll try that method.
thank you!