Javascript error preventing me from verifying my account

103 views
Skip to first unread message

dreinhold

unread,
Nov 17, 2012, 2:26:04 AM11/17/12
to chromi...@chromium.org
Hello,

I'm attempting to publish my first browser extension, but I'm unable to pay the developer fee because of a bug in Google's production code. When I visit:


and click the 'pay this fee now' button, nothing happens. The following message is printed to the web console:

Uncaught TypeError: Cannot call method 'buy' of undefined
It is coming from the following block of code:

if (!window.goog.payments) {
window.goog.payments = {inapp: {
buy: function(params) {
window.google.payments.inapp.buy(params);
Uncaught TypeError: Cannot call method 'buy' of undefined
},
preload: function(params) {
window.google.payments.inapp.preload(params);
}
}};
} Has anyone else had trouble with this?

Jake Jolis

unread,
Nov 18, 2012, 12:51:56 AM11/18/12
to chromi...@chromium.org
Yes, we are seeing the exact same error and have not yet found a workaround.

Gustav Rydstedt

unread,
Nov 18, 2012, 1:18:20 AM11/18/12
to chromi...@chromium.org
Here is an insane workaround for the inpatient developer:

Open the Chrome debugger.

Click the "Pay this fee now" button.

Check out the console. There will be a an undefined variable due to a race condition in the Google production code. Put a break point at that location (at the location in red above).

Click the "Pay this fee now" button again. Let the debugger break at the your breakpoint.

Copy the "params" parameter (in your console window):

window.params = params;

Continue the debugger (play button).

now manually call the function that broke using the params object you stored:

window.google.payments.inapp.buy(window.params);

The payment modal will show up.

Voila.




On Friday, November 16, 2012 11:26:04 PM UTC-8, dreinhold wrote:

Ino Detelić

unread,
Nov 19, 2012, 6:13:16 AM11/19/12
to chromi...@chromium.org
If you don't want to fiddle with the page's javascript, you can pay if you click the pay $5 button not from the main developer main dashboard, but your draft app listing, the link is in the bottom, and it worked for me.
Reply all
Reply to author
Forward
0 new messages