#Зотов

1 messages · Page 1 of 1 (latest)

round breachBOT
agile pebble
#

Hi
can you share more details please ?

#

This is Javascript function, you can bind it/Create a function and attach it to a click handler.

#

Can you share the link of the page of that screenshot, to see if I can find some samples...

#

Yes I know, just to make sure we are seeing the same page.

#

So yeah, you need to implement that form if you needed by your own.

#

I don't understand you question, can you clarify more ?

#

That's internal code. You can embed that form in your web page following the guide you are sharing.

round breachBOT
sleek echo
#

I don't understand that sentence, sorry

#

you add Javascript code to detect the button being pressed and then attempt the payment. Step 4 in the docs.

#

what error appears in the browser devtools console?

#
  1. you're using the wrong API key, you're using sk_test_xxx which is your secret key, for the backend
#

you should be using your publishable key pk_test_xxx in frontend code.

#
  1. you are not looking at the Console tab of the devtools, there are errors there, you could read those.
#

sorry, I can't understand what you're asking.

#

In the video you can see the console is telling you that you're using your secret key incorrectly, as I also mentioned above. So you need to fix that.

#

also the client_secret is not correct

#

"{{pk_test_xxxx}}" is completely wrong and not the right thing. It should be pi_xxx_secret_yyyy, which you get from creating a PaymentIntent on the backend server. You seem completely lost unfortunately.

edgy sonnet
#

thank you

#

nice help