Too many attempts at Checkout

Solved
aamirbilvani
Tourist
10 0 4

Screenshot_20200210-161444_Chrome.jpg

We are encountering this issue when some users try to perform checkout on our store (it is happening intermittently). We’re not entirely sure why this is happening, since everything appears to be OK, and also because this error is appearing after the Checkout process has been initiated, which is out of our control (since Shopify locks this part of the process).

 

Users have experienced this on both iOS and Android (on Chrome in both occasions). One thing to note is that we are applying a discount using some javascript before going to Checkout. This is done as follows:

  • A shopify URL exists which you can use to apply a discount, and after calling this URL, the user is redirected to the home page of the website. https://dvago.pk/discount/Medicine%205%25%20off. We first call this URL using jquery so that the discount gets applied
  • Since we don’t know whether the discount has been applied or not, we call the checkout page using jquery, and check the HTML response to find out whether the discount has been applied
  • Finally, we take the user to the checkout page

The user is able to get to the first Checkout screen (Customer Information) without issue, and only once they click “Continue to Shipping” (or sometimes once they click from the Shipping screen to “Continue to Payments”) they get this issue.

 

Anybody have any ideas? Any help would be appreciated.

Accepted Solution (1)

Accepted Solutions
builder51
Tourist
5 1 0

This is an accepted solution.

This worked for me:

Clear cookies in Chrome
  1. On your computer, open Chrome.
  2. At the top right, click More .
  3. Click More tools. Clear browsing data.
  4. At the top, choose a time range. To delete everything, select All time.
  5. Next to "Cookies and other site data" and "Cached images and files," check the boxes.
  6. Click Clear data.

View solution in original post

Replies 24 (24)
achieveapplabs
Shopify Partner
512 39 85

Hi there,

 


@aamirbilvani wrote:

 

 

  • Since we don’t know whether the discount has been applied or not, we call the checkout page using jquery, and check the HTML response to find out whether the discount has been applied
  • Finally, we take the user to the checkout page

 


Applying a discount code should just be a GET request to /discounts/{discount_code}

Here's an example:

var url = '/discount/' + reward.code;

$.ajax({
method: 'GET',
url: url });

You should get a HTTP 200 back. You can perhaps look at the return status instead of parsing the HTML and making calls to checkout which is likely creating a new checkout session that we don't see. 

 

I would also use Chrome developer tools to make sure only the appropriate calls are being made.

Use Approovly to create and track order approvals | Looking for more Shopify apps? achieveapplabs.com/#apps
Reincarnated
Pathfinder
103 8 31

This would be a Security feature to prevent Bots if your sending a lot of orders at once from the same connections.  Is this all happening on the Same Router connection?  If not, I would contact support so they can look into it.

aamirbilvani
Tourist
10 0 4

Hi Reincarnated. 

 

I have already created a ticket with Shopify Support, but it's taking them some time to investigate the issue (partly because of the time difference between here and Canada). So far they haven't responded in a satisfactory manner, hence why I am resorting to these forums. We are definitely not sending a lot of orders from the same connection, the orders are coming from individual customers all across the city. The only reason why that could happen is if the ISP/cellular network were themselves sending requests through a proxy, but I doubt that's the case.

aamirbilvani
Tourist
10 0 4

HI achieveapplabs. Thanks for your response. Let me try it out. 

Reincarnated
Pathfinder
103 8 31

Hey there.

 

I wonder if its the API Call that then checks the checkout.  I would try to remove that temperately, and trust its being applied and see if that fixes the issue.  If it does, then you could look into alternatives for checking or re-enforcing the discount is applied.

Kev6
Tourist
13 0 3

Hi there,

 

I have this EXACT same problem.

 

Nothing that anyone has mentioned below is working.

 

Any ideas?? Please help anyone.

achieveapplabs
Shopify Partner
512 39 85
Use Chrome developer tools and verify the calls being made to /checkout. We should only see one call to checkout once the shopping cart is submitted. Definitely a security feature warning likely caused by some customization.
Use Approovly to create and track order approvals | Looking for more Shopify apps? achieveapplabs.com/#apps
Kev6
Tourist
13 0 3

Hi achieveapplabs,

 

I have been emailing the app developer for a week, I removed a certain app to see if this was the issue, it wasn't.

 

I am still waiting for a shopify support person to come in and fix or explain this issue, instead of just sending me to the app developer.

 

Is there a phone number for shopify support? I have not been having a positive experience with the shopify email support system. 

 

If this was a security feature created naturally by shopify, then can Shopify fix it?

achieveapplabs
Shopify Partner
512 39 85

Hi @Kev6,

 

We can help you right here in the forum.

 

Do you have any sales channel apps installed? 

 

Regards,

 

Sam

Use Approovly to create and track order approvals | Looking for more Shopify apps? achieveapplabs.com/#apps
Kev6
Tourist
13 0 3

Hi Sam,

 

Currently we have these apps:

 

"Advanced Bundle Products"

"Best Fit- Size Chart"

"Book That App" - this one has been removed, the coding at least from the designer who is helping me. But tecnically we still have the app.

"Customer Attribute" by Secomapp, This App, we have had and I just removed it about 1 hour ago. Only because the Secomapp suggested removing it to see if it was causing the problem. 

 

 

achieveapplabs
Shopify Partner
512 39 85

Hi @Kev6 ,

 

Ok we successfully broke our checkout on a demo shop. error.PNG

 

We ran this snippet of JavaScript in the browser 

 

for(var x = 0; x < 100; x++){$("input[name='checkout']").click();}    

 

 

Please tell me the URL when you get this error message as it can be displayed throughout your shop not just checkout.

 

Regards,

 

Sam

Use Approovly to create and track order approvals | Looking for more Shopify apps? achieveapplabs.com/#apps
achieveapplabs
Shopify Partner
512 39 85

Let's also not rule out this message could be displayed to some of your shoppers for legitimate security concerns. 

Use Approovly to create and track order approvals | Looking for more Shopify apps? achieveapplabs.com/#apps
Kev6
Tourist
13 0 3
Kev6
Tourist
13 0 3
Hi Sam,

The shop is NOT public yet. Thus, all of these checkout trials have just been me trying to test the back end of the site.

What are the steps to get this fixed? All of the app developers that I have contacted told me it is a shopify problem
achieveapplabs
Shopify Partner
512 39 85

Hi @Kev6 ,

 

Steps would be to use Chrome then visit your shopping cart. Right click and open "inspect element". Select the network tab and select "Preserve log". Next you want to press checkout and hit the error page. Look at the logs it should be flagged red with a 400 series error. Finally in the "initiator" column we can try and identify what made the calls to checkout. 

 

Regards,

 

Sam

Use Approovly to create and track order approvals | Looking for more Shopify apps? achieveapplabs.com/#apps
Kev6
Tourist
13 0 3
Hi Sam,

Thank you for your continued support. I was able to get on the phone with Devin a shopify worker, and we worked through it together. Somehow or another, my browser had created some “bad cookies”. It was causing the checkout to be disabled. As of now, 5 minutes, it has been working again. Lets hope it stays this way!

I will definitely reach out again if this issue happens. Thank you
pr77
New Member
1 0 0

Our store is having the exact same issue. How did you resolve it?

Kev6
Tourist
13 0 3

Hi there,

 

I cleared the cookies on my chrome browser, and that actually did the trick.

 

If you are not sure how to do this, reach out to Shopify support. Devin I believe was the one who helped me, and he was very polite and kind. 

builder51
Tourist
5 1 0

This is an accepted solution.

This worked for me:

Clear cookies in Chrome
  1. On your computer, open Chrome.
  2. At the top right, click More .
  3. Click More tools. Clear browsing data.
  4. At the top, choose a time range. To delete everything, select All time.
  5. Next to "Cookies and other site data" and "Cached images and files," check the boxes.
  6. Click Clear data.