2012-07-25 83 views
1

我们将两个Google Apps脚本网络服务成功放入Chrome网上应用店。一个是f.e. https://chrome.google.com/webstore/detail/aagmbfbgdjhkilafppdjihnafgcahpbcChrome网上应用店:如何使用Google应用脚本查看付款

现在我们要像
https://developers.google.com/chrome/web-store/docs/check_for_payment?hl=de

但 1描述了如何获取当前用户的用户ID(相当于谷歌帐户,一个OpenID URL) 2,检查付款。如何通过Google Apps脚本代码向许可API 发出请求?

回答

0

你只是使用验证付款方式:

{ 
    "response": { 
    "details": [ 
     { 
     "kind": "chromewebstore#payment", 
     "itemId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 
     "sku": "giant_tv", 
     "createdTime": "1387221267248", 
     "state": "ACTIVE" 
     } 
    ] 
    } 
} 

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

google.payments.inapp.getPurchases({ 
    'success': onLicenseUpdate, 
    'failure': onLicenseUpdateFail 
}); 

与响应

相关问题