Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1328

Customers cannot complete payment because tokenize() stalls in some environments

$
0
0

Yesterday I was improving my shopping cart on my website then when I did some basic testing, I notice your web SDK tokenize() method takes a while to complete. I’m calling it as

result=await info.tokenize();

The problem is that many times the function takes a while to return. As of last test, it took over 5 minutes to return a result which IMO is a terrible checkout experience.

For my test, I used the card payment method (where people type in their financial info without going to a 3rd-party site).

I also deliberately left the fields blank and made the submission in hopes I’d get a response fast from tokenize(), but I don’t.

I never received such an issue if I used my sandbox keys instead of the production keys.

Here is the code I used for debugging:

console.log(info);result=await info.tokenize();consoe.log(result);

And here is what the console returns:

This is what the value of info is as of 13:53:14.528 (1:53 and 14 seconds in):

This is what the value of info is as of 13:59:37.406 (1:59 and 37 seconds in):

No other code executed on the website during this time.

Is there a way to make the waiting time for this function shorter? (like maybe 20 seconds at most)?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1328

Trending Articles