我们希望存储 Google Play 购买退款何时给用户以进行数据分析。
根据文档,用户可以通过 3 种方式申请 google play 订阅退款: https://support.google.com/googleplay/answer/2479637?hl= en
如果用户向开发者(我们)请求退款,我们可以在我们的服务器上跟踪并在我们这边进行管理,没有问题。不过,用户也可以直接向谷歌要求退款。问题是我们找不到此类退款的文件。
查看订阅的 API 文档,它没有提供购买是否已退款: https: //developers.google.com/android-publisher/api-ref/purchases/subscriptions
还尝试研究实时开发人员通知系统。好像没有退款活动。 https://developer.android.com/google/play/billing/realtime_developer_notifications#json_specation
你知道如果谷歌最终退款会发生什么吗?
android subscription android-billing google-play-developer-api
我正在尝试使用libgit2获取私有github存储库.repo属于一个组织,我有读/写权限.该程序是用Objective-C++编写的.我有这个:
- (int)fetchBranches
{
git_remote *remote = NULL;
int result = 0;
if (!(result = git_remote_load(&remote, repo, "origin"))) {
git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT;
callbacks.credentials = cred_acquire_cb;
git_remote_set_callbacks(remote, &callbacks);
result = git_remote_fetch(remote);
}
return result;
}
int cred_acquire_cb(git_cred **out,
const char * url,
const char * username_from_url,
unsigned int allowed_types,
void * payload)
{
return git_cred_ssh_key_new(out, "GITHUBUSERNAME", "/Users/admin/.ssh/id_rsa.pub", "/Users/admin/.ssh/id_rsa", "PASSPHRASE");
}
Run Code Online (Sandbox Code Playgroud)
这会创建凭据,但是当我执行提取时,尝试使用libssh2对会话进行身份验证时会失败.(libgit2/SRC /运输/ ssh.c:302):
rc = libssh2_userauth_publickey_fromfile(
session, c->username, c->publickey,
c->privatekey, c->passphrase);
Run Code Online (Sandbox Code Playgroud)
错误是-18,LIBSSH2_ERROR_AUTHENTICATION_FAILED.我已经确认公钥已添加到Github并尝试将其更改为新的公钥.密码也是正确的,用户名是我的github用户名.我也可以通过控制台进行提取.远程配置是:
[remote "origin"]
url = git@github.com:ORGNAME/REPONAME.git
fetch = +refs/heads/*:refs/remotes/origin/* …Run Code Online (Sandbox Code Playgroud)