google wallet inapp payments: Uncaught ReferenceError: goog is not defined. google.payments vs goog.payments
问题 we've been using google wallet inapp-payments since google io 2012. Recently we see this error: Uncaught ReferenceError: goog is not defined The code is very simple: <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load('payments', '1.0', { 'packages': ['production_config'] }) Then we use the jquery document.ready callback to call goog.payments.inapp.buy, but it seems that the goog object is not created by then. This seems to