Google Wallet for Digital Goods does not load checkout page

I have a problem with the Buy Now button from the IPN of Google Checkout.

I have a list of more than 10 products on my web page, each of which has its own Buy button. When I click the button, it gets stuck, loading a pop-up from which you will pay. It shows the following download sign:

http://i.imgur.com/ldxmLZC.png

I know that this is not a problem for all users or for all browsers. If I load another browser (currently using Chrome), it pops up instantly and works. I also know that not all Chrome users have this problem, we have several buyers who use Chrome. Users who have encountered this problem have reported clearing their browser cache and temp files, etc. They fixed the problem, however, obviously, this is not a global fix, another user further down the line will still encounter it.

I looked at the console in chrome to see any javascript errors, etc., and I have the following:

Failed to load the resource: the server responded with a status of 404 (not found) https://www.gstatic.com/commerce/inapp/gwt/58c64d72842d0eb2730f88c578d11ca2/C2AD9188DA255956F0928EBDDB27ADE3.cache.js

So, I suppose this should be a caching problem, but I don’t know how to solve it, the declared file is not related to me. I believe that it loads through the inclusion at the end:

<script src="https://wallet.google.com/inapp/lib/buy.js"></script>

The following code is responsible for launching the purchase window:

 function purchase(generatedJwt) { google.payments.inapp.buy({ 'jwt': generatedJwt, 'success': successHandler, 'failure': failureHandler }); } 

Each product has its own purchase button, which calls the above function as follows:

 <button onClick="purchase(generatedJWTHere)">Purchase Product 1</button> 

I am sure that there are no problems with the JWT that I generate, as I said earlier, there are many people who can buy, however there are a few select ones who cannot.

I had a search around and did not meet anyone with a similar problem.

+5
source share
1 answer

You may have an ad blocker installed during the installation of Chrome, which may prevent you from loading the verification page. Try loading the page on another version of chrome on another PC and see how this happens. If it works in other browsers, this should be a problem with the add-ons you installed, but I cannot be sure.

+3
source

Source: https://habr.com/ru/post/1201263/


All Articles