#Matteo-payment-method

1 messages · Page 1 of 1 (latest)

mild lark
#

👋 Happy to help

pine vine
#

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

mild lark
#

Do you have a dev website for me to take a look? Above code seems right

pine vine
#

Maybe it's possible to share you my screen

mild lark
#

Sorry, screen sharing is not supported in this channel

#

Can you try to print the result and see what you get?

pine vine
#

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

mild lark
#

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?

pine vine
#

ye of course is in a event click button

#

the problem is the response of your service maybe

whole tundra
#

Hi! I'm taking over this thread, give me a few minutes to catchup.

pine vine
#

ook thanks

whole tundra
#

Do you have a public URL so I can try to reproduce the issue?

pine vine
#

mmh no it's private sorry

#

I have tried 20 times only two response on my call

whole tundra
#

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)

pine vine
#

exactly

whole tundra
#

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?

pine vine
#

I tried to do thi

#

i will send you my consol

whole tundra
#

Yes, what output do you see with this code?

pine vine
#

One second my enviroiment is slow

#

now all is work

#

it's impossible

#

maybe yesterday the service wentdown?

whole tundra
#

I don't think so. And on your end you didn't make any changes yesterday?

pine vine
#

no it's same code

whole tundra
#

And when it wasn't working, did you see any error messages (frontend, backend, or Stripe dashboard)?

pine vine
#

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

whole tundra
#

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.

pine vine
#

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?

whole tundra
#

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.