Chrome Webstore扩展应用内购买INTERNAL_SERVER_ERROR [英] Chrome Webstore Extension In App Purchase INTERNAL_SERVER_ERROR

本文介绍了Chrome Webstore扩展应用内购买INTERNAL_SERVER_ERROR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome扩展程序中的Chrome InApp购买流程取得了部分成功。我已经包含了buy.js文件,并实现了Chrome演练中列出的流程:

https://developer.chrome.com/webstore/payments-iap



使用我的实时扩展,我已经完成了流程,它工作得很好。我的信用卡已收费,回拨成功,我交付物品。当我检查google.payments.inapp.getPurchases调用时,我可以看到列为ACTIVE的项目。



然而,当我在任何其他测试中安装生产/活动扩展电脑(朋友的),并尝试启动google.payments.inapp.buy流程,我得到以下两个结果之一:



1)灰色的图形文本应用内付款目前无法使用,交易无法完成,请稍后再试

2)打开一个空白窗口,然后立即关闭。 p>

失败回调会返回错误INTERNAL_SERVER_ERROR。

同样,采购流程在我自己的Google帐户上正常工作,但无法在任何其他帐户上成功完成。我自己的内部追踪显示,0%的用户正在成功完成购买,这让我相信这个错误非常普遍。我知道用户正在尝试通过我设置的内部跟踪进行购买,但我的Chrome仪表板中的唯一收入来自我自己的测试购买。有些东西很有趣。



任何Chrome Webstore Devs都可以在实时扩展中成功进行应用内付款购买吗?帮助!

解决方案

我从其他随机计算机获得了成功的付款。您可能需要检查是否存在潜在问题:


  1. 确保为所有人启用应用内商品,而不仅限于自己或
    测试用户


  2. 确保使用'参数':{env:prod},无论您身在何处
    在制作 google.payments.inapp。*call


  3. 确保用户已在其浏览器中签名以获得物品,
    许可证并制作最终版购买成功


  4. 确保在buy.js中调用chrome.runtime.connect()时使用originalId(nmmhkkegccagdldgiimedpiccmgmieda),如果不是,那么它就是这个地方它触发INTERNAL_SERVER_ERROR。


希望它有帮助。


Partial success with the Chrome InApp purchase flow within a Chrome extension. I have included the buy.js file and implemented the flow as listed on the Chrome walkthrough here:

https://developer.chrome.com/webstore/payments-iap

Using my live extension, I have run through the flow and it works just fine. My credit card is charged and the callback returns successful, I deliver the item. When I check the google.payments.inapp.getPurchases call I can see the item listed as ACTIVE.

However, when I install the production/live extension on any other test computer (a friend's), and try to launch the google.payments.inapp.buy flow, I get one of two results:

1) A grayed out graphic with the text "In-App Payments is currently unavailable. The transaction could not be completed. Please try again later"

2) A blank window opens, then closes immediately.

The "failure" callback comes back with the error "INTERNAL_SERVER_ERROR."

Again, the purchase flow works fine on my own Google account, but cannot be completed successfully on any other account. My own internal tracking is showing that 0% of users are completing purchases successfully and this leads me to believe the error is widespread. I know users are trying to make purchases due to internal tracking I have set up, but the only revenue in my Chrome dashboard is from my own test purchases. Something smells funny.

Do any Chrome Webstore Devs have experience with successful in-app payments purchases on live extensions? Help!

解决方案

I have had successful payments even from other random computers. You may have to check follow for the potential fix:

  1. Make sure In-app Items are enabled for all, not just yourself or test users

  2. Make sure to use 'parameters': {env: "prod"}, wherever you are making "google.payments.inapp.*" calls

  3. Make sure users are Signed-in their browsers in order to get items, licenses and make final purchases successfully

  4. Make sure to use the originalId(nmmhkkegccagdldgiimedpiccmgmieda) while calling chrome.runtime.connect() in buy.js, if not then it is the place where it triggers INTERNAL_SERVER_ERROR.

Hope it helps.

这篇关于Chrome Webstore扩展应用内购买INTERNAL_SERVER_ERROR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆