Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Wallet for Digital Goods not loading checkout page

I'm having a problem with the buy now button from the Google Checkout IPN.

I have a list of just over 10 products on my web page, each with it's own 'Buy Now' button. When I click the button, it gets stuck loading the pop-up box from which you would pay. It shows the following loading sign:

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

I know that this is not a problem for all users, or all browsers for that matter. If I load up a different browser (currently using Chrome), it pops up instantly and works. I also know that not all Chrome users have this issue, we have multiple buyers that are using Chrome. Users that have encountered this problem have reported that clearing their browser cache and temp files etc fixed the issue, however obviously this isn't a global fix, other user's further down the line will still encounter it.

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

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

So I figure this must be some issue with caching, but I have no idea how to go about solving this, the file stated is not linked from my end. I believe it is loaded via the inclusion on my end of:

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

The following code is in charge of initiating 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'm fairly certain there's no issue with the JWT I am generating, as I said earlier there are many people that are able to purchase, however there are a select few who can not.

I have had a search around and have not come across anyone with a similar problem to this.

like image 636
Felto Avatar asked Aug 27 '14 18:08

Felto


People also ask

Why Google Pay not working sometimes?

Your phone isn't certified or doesn't meet security requirements. Check if your software is Play Protect certified. If you were previously able to make contactless payments with Google Pay but no longer can, reach out to your device manufacturer. There might have been a device software update that impacts functionality ...

Is digital wallet the same as Google Pay?

The Google Pay app is now the Google Wallet app. This change is to simplify how you store and use cards and passes. Google Wallet is a secure and private digital wallet that gives you quick access to payment cards, passes, tickets, keys, or IDs that you choose to store on it.


1 Answers

You might have an ad blocker installed on your installation of chrome which may be stopping you from loading the checkout page. Try loading the page on another version of chrome on another PC and see how that goes. If it does work on other browsers, then it must be an issue with add-ons you have installed, but I can't be too sure.

like image 146
Hrach Ghapantsyan Avatar answered Oct 20 '22 00:10

Hrach Ghapantsyan