Google chrome 谷歌支付,Chrome扩展的应用内购买出现意外错误

Google chrome 谷歌支付,Chrome扩展的应用内购买出现意外错误,google-chrome,in-app-purchase,Google Chrome,In App Purchase,我正在开发一个Chrome扩展,我想允许用户进行应用内购买 我的扩展已经部署在Chrome store上,“应用内”购买将在新版本(我正在开发的版本)上可用 嗯,我正在努力购买:谷歌支付页面出现了,但我想购买该选项,我收到了一个“意外错误”,无法获得有关该错误的更多详细信息-( 到目前为止我所做的: 我已经导入了buy.js并实现了所有需要的功能 我已经建立了一个谷歌商户支付账户(甚至在收到谷歌发送的小额款项后验证了我的账户) 我不知道出了什么问题……似乎这是支付流程中最后一个失败的部分

我正在开发一个Chrome扩展,我想允许用户进行应用内购买

我的扩展已经部署在Chrome store上,“应用内”购买将在新版本(我正在开发的版本)上可用

嗯,我正在努力购买:谷歌支付页面出现了,但我想购买该选项,我收到了一个“意外错误”,无法获得有关该错误的更多详细信息-(

到目前为止我所做的:

  • 我已经导入了buy.js并实现了所有需要的功能
  • 我已经建立了一个谷歌商户支付账户(甚至在收到谷歌发送的小额款项后验证了我的账户)
我不知道出了什么问题……似乎这是支付流程中最后一个失败的部分,但无法获得更多关于发生了什么的信息

我甚至激活了Chrome调试日志,但数据不是很有用(至少对我来说…) 记录“购买按钮点击”、“购买”按钮点击、错误和关闭窗口的流程:

[6668:6168:0112/001148:VERBOSE1:cross_device_promo.cc(180)] CrossDevicePromo::MaybeBrowsingSessionStarted; Ineligible for promo.
[6668:6168:0112/001148:VERBOSE1:cross_device_promo.cc(180)] CrossDevicePromo::MaybeBrowsingSessionStarted; Ineligible for promo.
[6668:6168:0112/001150:VERBOSE1:mutable_profile_oauth2_token_service_delegate.cc(216)] MutablePO2TS::RefreshTokenIsAvailable
[6624:7432:0112/001150:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           nmmhkkegccagdldgiimedpiccmgmieda
  frame:                  5A2F7394
  URL:                    
  context_type:           BLESSED_EXTENSION
  effective extension id: nmmhkkegccagdldgiimedpiccmgmieda
  effective context type: BLESSED_EXTENSION
[6624:7432:0112/001150:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           (none)
  frame:                  00000000
  URL:                    
  context_type:           UNSPECIFIED
  effective extension id: (none)
  effective context type: UNSPECIFIED
[6624:7432:0112/001150:VERBOSE1:dispatcher.cc(395)] Num tracked contexts: 2
[2160:3460:0112/001150:VERBOSE1:gles2_cmd_decoder.cc(3205)] GL_OES_packed_depth_stencil supported.
[6624:7432:0112/001150:VERBOSE1:htmlpluginelement.cpp(514)] OBJECT id="browser-plugin-8" style="width: 100%; height: 100%;" Plugin URL: <null>
[6624:7432:0112/001150:VERBOSE1:htmlpluginelement.cpp(515)] Loaded URL: <null>
[2160:3460:0112/001150:VERBOSE1:gles2_cmd_decoder.cc(3205)] GL_OES_packed_depth_stencil supported.
[8032:536:0112/001150:INFO:systeminfo.cc(82)] Available number of cores: 4
[2160:3460:0112/001150:VERBOSE1:gles2_cmd_decoder.cc(3205)] GL_OES_packed_depth_stencil supported.
[2160:3460:0112/001150:VERBOSE1:gles2_cmd_decoder.cc(3205)] GL_OES_packed_depth_stencil supported.
[8032:536:0112/001150:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           nmmhkkegccagdldgiimedpiccmgmieda
  frame:                  2CE619DC
  URL:                    
  context_type:           CONTENT_SCRIPT
  effective extension id: nmmhkkegccagdldgiimedpiccmgmieda
  effective context type: CONTENT_SCRIPT
[8032:536:0112/001150:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           (none)
  frame:                  00000000
  URL:                    
  context_type:           UNSPECIFIED
  effective extension id: (none)
  effective context type: UNSPECIFIED
[8032:536:0112/001150:VERBOSE1:dispatcher.cc(395)] Num tracked contexts: 1
[8032:536:0112/001150:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           (none)
  frame:                  2CE619DC
  URL:                    
  context_type:           WEB_PAGE
  effective extension id: (none)
  effective context type: WEB_PAGE
[8032:536:0112/001150:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           (none)
  frame:                  00000000
  URL:                    
  context_type:           UNSPECIFIED
  effective extension id: (none)
  effective context type: UNSPECIFIED
[8032:536:0112/001150:VERBOSE1:dispatcher.cc(395)] Num tracked contexts: 2
[6668:6168:0112/001150:INFO:CONSOLE(325)] "did exec once", source: chrome-extension://nmmhkkegccagdldgiimedpiccmgmieda/craw_window.js (325)
[6668:6168:0112/001151:INFO:CONSOLE(176)] "[object XMLHttpRequest]", source: chrome-extension://nmmhkkegccagdldgiimedpiccmgmieda/craw_window.js (176)
[6668:6168:0112/001151:INFO:CONSOLE(1)] "registered payment listener: 1484140311054", source: https://www.google.com/intl/en-US/chrome/blank.html (1)
[6668:6168:0112/001151:INFO:CONSOLE(1)] "finished loading, start payment: 1484140311057", source: https://www.google.com/intl/en-US/chrome/blank.html (1)
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)] Blocked URL about:blank
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)] Blocked URL about:blank
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)] Blocked URL about:blank
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)] Blocked URL about:blank
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)] Blocked URL about:blank
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)] Blocked URL about:blank
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)] Blocked URL about:blank
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)] Blocked URL about:blank
[8032:536:0112/001151:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           (none)
  frame:                  2CE66704
  URL:                    
  context_type:           WEB_PAGE
  effective extension id: (none)
  effective context type: WEB_PAGE
[8032:536:0112/001151:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           (none)
  frame:                  00000000
  URL:                    
  context_type:           UNSPECIFIED
  effective extension id: (none)
  effective context type: UNSPECIFIED
[8032:536:0112/001151:VERBOSE1:dispatcher.cc(395)] Num tracked contexts: 3
[2160:3460:0112/001151:VERBOSE1:gles2_cmd_decoder.cc(3205)] GL_OES_packed_depth_stencil supported.
[6668:8968:0112/001151:VERBOSE1:mime_sniffing_resource_handler.cc(351)] To buffer: https://payments.google.com/payments/jslogs?message=1484140311084-hz693q2xx3xx-INFO-embedder%3Ano_id%3Aloading%20iframe%20with%20URL%20https%3A%2F%2Fpayments.google.com%2Fpayments%2Foauth%2Fembedded%2Fbuy_flow%3Fwst%3D1489999999999%26cst%3D1484140311072%26ipi%3Dhz693q2xx3xx%26hostOrigin%3DaHR0cHM6Ly93d3cuZ29vZ2xlLmNvbQ..%26mm%3De%26style%3Dpc%253D%2523FF0000%253Bac%253D%25230000FF%26ait%3DGAIA%26cn%3D%2524p_kpocjpn7rrfr0-%5Bhttps%3A%2F%2Fwww.google.com%2Fintl%2Fen-US%2Fchrome%2Fblank.html%5D&zx=nm2hae7wm29o
[8032:536:0112/001151:VERBOSE1:dispatcher.cc(534)] Num tracked contexts: 2
[8032:536:0112/001151:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           (none)
  frame:                  2CE66704
  URL:                    
  context_type:           WEB_PAGE
  effective extension id: (none)
  effective context type: WEB_PAGE
[8032:536:0112/001151:VERBOSE1:script_context.cc(111)] Created context:
  extension id:           (none)
  frame:                  00000000
  URL:                    
  context_type:           UNSPECIFIED
  effective extension id: (none)
  effective context type: UNSPECIFIED
[8032:536:0112/001151:VERBOSE1:dispatcher.cc(395)] Num tracked contexts: 3
[8032:536:0112/001151:VERBOSE1:script_context.cc(120)] Destroyed context for extension
  extension id: 
  effective extension id: 
[8032:536:0112/001151:VERBOSE1:script_context.cc(120)] Destroyed context for extension
  extension id: 
  effective extension id: 
[6668:6168:0112/001153:INFO:CONSOLE(326)] "[object MessageEvent]", source: chrome-extension://nmmhkkegccagdldgiimedpiccmgmieda/craw_window.js (326)
[6668:6168:0112/001153:INFO:CONSOLE(326)] "[object MessageEvent]", source: chrome-extension://nmmhkkegccagdldgiimedpiccmgmieda/craw_window.js (326)
[6668:8968:0112/001153:VERBOSE1:mime_sniffing_resource_handler.cc(351)] To buffer: https://payments.google.com/payments/jslogs?message=1484140313421-hz693q2xx3xx-INFO-embedded%3Ano_id%3Aiframe%20ready%20message%20sent-%5Bhttps%3A%2F%2Fpayments.google.com%2Fpayments%2Foauth%2Fembedded%2Fbuy_flow%3Fwst%3D1489999999999%26cst%3D1484140311072%26ipi%3Dhz693q2xx3xx%26hostOrigin%3DaHR0cHM6Ly93d3cuZ29vZ2xlLmNvbQ..%26mm%3De%26style%3Dpc%253D%2523FF0000%253Bac%253D%25230000FF%26ait%3DGAIA%26cn%3D%2524p_kpocjpn7rrfr0%5D&zx=3wrtmrrm4ztl
[6668:6168:0112/001153:INFO:CONSOLE(326)] "[object MessageEvent]", source: chrome-extension://nmmhkkegccagdldgiimedpiccmgmieda/craw_window.js (326)
[6668:8968:0112/001153:VERBOSE1:mime_sniffing_resource_handler.cc(351)] To buffer: https://payments.google.com/payments/jslogs?message=1484140313437-hz693q2xx3xx-INFO-embedder%3Ano_id%3Aiframe%20with%20URL%20https%3A%2F%2Fpayments.google.com%2Fpayments%2Foauth%2Fembedded%2Fbuy_flow%3Fwst%3D1489999999999%26cst%3D1484140311072%26ipi%3Dhz693q2xx3xx%26hostOrigin%3DaHR0cHM6Ly93d3cuZ29vZ2xlLmNvbQ..%26mm%3De%26style%3Dpc%253D%2523FF0000%253Bac%253D%25230000FF%26ait%3DGAIA%26cn%3D%2524p_kpocjpn7rrfr0%20is%20ready-%5Bhttps%3A%2F%2Fwww.google.com%2Fintl%2Fen-US%2Fchrome%2Fblank.html%5D&zx=r8gnj6edd97y
[8032:536:0112/001154:VERBOSE1:htmlpluginelement.cpp(514)] EMBED Plugin URL: "https://clients2.google.com/gr/GrDataFetcher.swf"
[8032:536:0112/001154:VERBOSE1:htmlpluginelement.cpp(515)] Loaded URL: "https://clients2.google.com/gr/GrDataFetcher.swf"
[6668:6168:0112/001156:INFO:CONSOLE(326)] "[object MessageEvent]", source: chrome-extension://nmmhkkegccagdldgiimedpiccmgmieda/craw_window.js (326)
[6668:6168:0112/001158:VERBOSE1:cross_device_promo.cc(180)] CrossDevicePromo::MaybeBrowsingSessionStarted; Ineligible for promo.
[6668:6168:0112/001158:VERBOSE1:cross_device_promo.cc(180)] CrossDevicePromo::MaybeBrowsingSessionStarted; Ineligible for promo.
[6668:6168:0112/001158:INFO:CONSOLE(52)] "onPurchaseFailed", source: chrome-extension://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/scripts/buy.js (52)
[6668:6168:0112/001158:INFO:CONSOLE(59)] "Purchase failed. PURCHASE_CANCELED", source: chrome-extension://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/scripts/buy.js (59)
[6624:7432:0112/001158:VERBOSE1:dispatcher.cc(534)] Num tracked contexts: 1
[6624:7432:0112/001158:VERBOSE1:script_context.cc(120)] Destroyed context for extension
  extension id: nmmhkkegccagdldgiimedpiccmgmieda
  effective extension id: nmmhkkegccagdldgiimedpiccmgmieda
[6624:7432:0112/001158:VERBOSE1:script_context.cc(120)] Destroyed context for extension
  extension id: 
  effective extension id: 
[6668:6168:0112/001148:VERBOSE1:cross_device_promo.cc(180)]cross devicepromo::可能已开始浏览会话;不符合推广资格。
[6668:6168:0112/001148:VERBOSE1:cross_device_promo.cc(180)]cross devicepromo::可能已开始浏览会话;不符合促销资格。
[6668:6168:0112/001150:VERBOSE1:mutable_profile_oauth2_token_service_delegate.cc(216)]MutablePO2TS::refreshttokenisavailable
[6624:7432:0112/001150:VERBOSE1:script_context.cc(111)]创建的上下文:
扩展id:NMMHKKEGCAGLDGIIMEDPICCMGMIEDA
帧:5A2F7394
网址:
上下文类型:扩展名
有效扩展id:NMMHKKEGCAGLDGIIMEDPICCMGMIEDA
有效上下文类型:扩展名
[6624:7432:0112/001150:VERBOSE1:script_context.cc(111)]创建的上下文:
扩展id:(无)
帧:00000000
网址:
上下文类型:未指定
有效扩展id:(无)
有效上下文类型:未指定
[6624:7432:0112/001150:VERBOSE1:dispatcher.cc(395)]跟踪的上下文数:2
[2160:3460:0112/001150:VERBOSE1:gles2_cmd_decoder.cc(3205)]支持GL_OES_packed_depth_模具。
[6624:7432:0112/001150:VERBOSE1:htmlpluginelement.cpp(514)]对象id=“browser-plugin-8”style=“宽度:100%;高度:100%;”插件URL:
[6624:7432:0112/001150:VERBOSE1:htmlpluginelement.cpp(515)]加载的URL:
[2160:3460:0112/001150:VERBOSE1:gles2_cmd_decoder.cc(3205)]支持GL_OES_packed_depth_模具。
[8032:536:0112/001150:INFO:systeminfo.cc(82)]可用芯数:4
[2160:3460:0112/001150:VERBOSE1:gles2_cmd_decoder.cc(3205)]支持GL_OES_packed_depth_模具。
[2160:3460:0112/001150:VERBOSE1:gles2_cmd_decoder.cc(3205)]支持GL_OES_packed_depth_模具。
[8032:536:0112/001150:VERBOSE1:script_context.cc(111)]创建的上下文:
扩展id:NMMHKKEGCAGLDGIIMEDPICCMGMIEDA
帧:2CE619DC
网址:
上下文类型:内容脚本
有效扩展id:NMMHKKEGCAGLDGIIMEDPICCMGMIEDA
有效上下文类型:内容\脚本
[8032:536:0112/001150:VERBOSE1:script_context.cc(111)]创建的上下文:
扩展id:(无)
帧:00000000
网址:
上下文类型:未指定
有效扩展id:(无)
有效上下文类型:未指定
[8032:536:0112/001150:VERBOSE1:dispatcher.cc(395)]跟踪的上下文数:1
[8032:536:0112/001150:VERBOSE1:script_context.cc(111)]创建的上下文:
扩展id:(无)
帧:2CE619DC
网址:
上下文类型:网页
有效扩展id:(无)
有效上下文类型:网页
[8032:536:0112/001150:VERBOSE1:script_context.cc(111)]创建的上下文:
扩展id:(无)
帧:00000000
网址:
上下文类型:未指定
有效扩展id:(无)
有效上下文类型:未指定
[8032:536:0112/001150:VERBOSE1:dispatcher.cc(395)]跟踪的上下文数:2
[6668:6168:0112/001150:INFO:CONSOLE(325)]“执行过一次”,来源:chrome-extension://nmmhkkegccagdldgiimedpiccmgmieda/craw_window.js (325)
[6668:6168:0112/001151:INFO:CONSOLE(176)]“[object-XMLHttpRequest]”,来源:chrome-extension://nmmhkkegccagdldgiimedpiccmgmieda/craw_window.js (176)
[6668:6168:0112/001151:INFO:CONSOLE(1)]“注册支付侦听器:1484140311054”,来源:https://www.google.com/intl/en-US/chrome/blank.html (1)
[6668:6168:0112/001151:信息:控制台(1)]“已完成加载,开始付款:1484140311057”,来源:https://www.google.com/intl/en-US/chrome/blank.html (1)
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)]阻止的URL关于:空白
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)]阻止的URL关于:空白
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)]阻止的URL关于:空白
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)]阻止的URL关于:空白
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)]阻止的URL关于:空白
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)]阻止的URL关于:空白
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)]阻止的URL关于:空白
[6668:6168:0112/001151:VERBOSE1:render_process_host_impl.cc(2402)]阻止的URL关于:空白
[8032:536:0112/001151:VERBOSE1:script_context.cc(111)]创建的上下文:
扩展id:(无)
帧:2CE66704
网址:
上下文类型:网页
有效扩展id:(无)
有效上下文类型:网页
[8032:536:0112/001151:VERBOSE1:script_context.cc(111)]创建的上下文:
扩展id:(无)
帧:00000000
网址:
上下文