#Matteo-payment-method
1 messages · Page 1 of 1 (latest)
Hi, what do you think about it?
var stripe = Stripe(document.getElementById('stripePublicKey').value, stripeOptions);
var elements = stripe.elements();
The stripe elements are created without problem than the apikey are ok
Do you have a dev website for me to take a look? Above code seems right
Maybe it's possible to share you my screen
Sorry, screen sharing is not supported in this channel
Can you try to print the result and see what you get?
yes of course
now working
but the API is very instable
how I test without this problem?
Yesterday I try to do this 3000 times always not responding
I tried again now it doesn't work
My coworker @whole tundra will be taking over. Can you share more information where you place stripe.createPaymentMethod? Is it in a button onClick callback?
ye of course is in a event click button
the problem is the response of your service maybe
Hi! I'm taking over this thread, give me a few minutes to catchup.
ook thanks
Do you have a public URL so I can try to reproduce the issue?
So if I understand correctly you call createPaymentMethod(), but most of the time you don't get any response in your code?
(I just edited my previous message)
exactly
Can you add a console.log(result) directly in the then() and check if it prints anything?
Also can you add a console.log just before calling createPaymentMethod to make sure it is actually called?
Yes, what output do you see with this code?
One second my enviroiment is slow
now all is work
it's impossible
maybe yesterday the service wentdown?
I don't think so. And on your end you didn't make any changes yesterday?
no it's same code
And when it wasn't working, did you see any error messages (frontend, backend, or Stripe dashboard)?
nono
I don't see nothing
if I submit a empty card I don't have response in this case
like a service has dead
OK, but if I understand correctly now the issue is resolved?
Note that without any error messages or links to reproduce the issue, it's difficult for us to investigate the issue.
yesterday i was crazy the code is the same
there were problems in your API
OK, but if I understand correctly now the issue is resolved?
For now yes, if I have any problem I could write you in this tread?
I will be closing this thread soon. But feel free to post a new message in the main channel if you are having issues in the future.