{"id":20669678,"url":"https://github.com/fox-one/foxone-pay-android-sdk","last_synced_at":"2026-04-17T21:33:25.866Z","repository":{"id":97516692,"uuid":"159903109","full_name":"fox-one/foxone-pay-android-sdk","owner":"fox-one","description":"Fox.ONE Pay Android SDK","archived":false,"fork":false,"pushed_at":"2018-12-12T08:52:35.000Z","size":142,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T16:42:44.299Z","etag":null,"topics":["android","kotlin"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fox-one.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-01T02:57:56.000Z","updated_at":"2018-12-12T08:09:43.000Z","dependencies_parsed_at":"2023-04-20T15:31:41.169Z","dependency_job_id":null,"html_url":"https://github.com/fox-one/foxone-pay-android-sdk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fox-one/foxone-pay-android-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-android-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-android-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-android-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-android-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fox-one","download_url":"https://codeload.github.com/fox-one/foxone-pay-android-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-android-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31947681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","kotlin"],"created_at":"2024-11-16T20:15:33.248Z","updated_at":"2026-04-17T21:33:25.850Z","avatar_url":"https://github.com/fox-one.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fox.ONE Pay SDK for Android\n\nPay SDK 是加密货币支付解决方案的基础 SDK。基于Pay SDK 可以方便商户，开发者快速的集成数字化钱包。\n\n* 转入\n* 转出\n* 资产总览\n* 交易记录\n* 汇率\n* PIN码\n\n## 快速集成\n\n\u003e也可以直接查看 [接入文档](API.md) 进行接入\n\n1. 在 [商户平台](https://admin.pay.fox.one/) 中注册账户，通过验证之后，并且填写商户信息提交审核。\n\n2. 申请审核通过之后会发送 `AppSecret` 给您， `AppSecret` 是访问支付后台的令牌。\n\n3. 在您的应用中集成 SDK 并使用:\n\n* 添加 Gradle 依赖\n\n```groovy\nimplementation 'com.fox.one:opensdk:0.2.2'\n```\n\n* 初始化\n\n\u003e 在`Application#onCreate()`中初始化`FoxOneOpenSDK`\n \n```kotlin\n//AppSecret为接入方申请的AppSecret\nFoxOneOpenSDK.init(this, \"YourAppSecret\", FoxOneOpenSDK.Option(debugEnable = true, workInTestEnv = true))\n```\n\n* 设置 Token\n\n```kotlin\n//在用户登录状态下设置token, token用于API接口请求使用，无token或者token失效时，API接口会返回ResponseCode 401错误码（身份验证失败）\nFoxOneOpenSDK.token = '34tsr45trert4645643t'\n```\n\n* API接口使用\n\n\u003e openSDK初始化后就可以调用业务API接口了，详细参考 [接入文档](API.md) ，例如：\n\n```kotlin\n//获取资产信息\nAPILoader.load(WalletAPI::class.java).getWalletAssetInfo(assetId)\n                .enqueue(object : Callback\u003cWalletAssetResponse\u003e {\n                    override fun onFailure(call: Call\u003cWalletAssetResponse\u003e, t: Throwable) {\n                        //process failure event\n                        HttpErrorHandler.handle(t)\n                    }\n\n                    override fun onResponse(call: Call\u003cWalletAssetResponse\u003e, response: Response\u003cWalletAssetResponse\u003e) {\n                    \t//process suceed event\n                        DataCenter.get(WalletDataSource::class.java).postAssetValue(assetId, FoxWalletAssetBean(response.body()?.data?.asset))\n                    }\n                })\n```\n\n##  参考文档\n- [接入文档](API.md)\n- [错误码](errors.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Ffoxone-pay-android-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffox-one%2Ffoxone-pay-android-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Ffoxone-pay-android-sdk/lists"}