{"id":15038774,"url":"https://github.com/fox-one/foxone-pay-ios-sdk","last_synced_at":"2025-08-16T11:36:47.206Z","repository":{"id":56911635,"uuid":"159903169","full_name":"fox-one/foxone-pay-ios-sdk","owner":"fox-one","description":"Fox.ONE Pay iOS SDK","archived":false,"fork":false,"pushed_at":"2020-02-27T05:34:28.000Z","size":392,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T17:16:09.389Z","etag":null,"topics":["payment","swift4"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-01T02:58:45.000Z","updated_at":"2020-02-27T05:34:31.000Z","dependencies_parsed_at":"2022-08-21T03:20:18.712Z","dependency_job_id":null,"html_url":"https://github.com/fox-one/foxone-pay-ios-sdk","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-ios-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-ios-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-ios-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffoxone-pay-ios-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-ios-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428434,"owners_count":20289317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["payment","swift4"],"created_at":"2024-09-24T20:40:09.373Z","updated_at":"2025-03-13T15:16:45.250Z","avatar_url":"https://github.com/fox-one.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fox.ONE Pay SDK for iOS\n\nPay SDK 是加密货币支付解决方案的基础 SDK。基于Pay SDK 可以方便商户，开发者快速的集成数字化钱包。\n\n* 转入\n* 转出\n* 资产总览\n* 交易记录\n* 汇率\n* PIN码\n\n## 集成到你的应用  \n\n确保你安装了最新的 [CocoaPods](https://cocoapods.org) :\n\n在 Podfile 文件中添加:\n\n```ruby\npod 'FoxOnePaySDK'\n```\n\n在终端执行 `pod install` \n\n## 在 App 中使用 SDK\n\n1. 在[商户平台](https://admin.pay.fox.one/)中注册账户，通过验证之后，并且填写商户信息提交审核。\n\n2. 申请审核通过之后会发送 `AppSecret` 给您， `AppSecret` 是访问支付后台的令牌。\n    \n2. 在您的应用中注册 SDK\n     \n```swift\n    \nimport FoxOnePaySDK\n    \n//Register\nPaySDK.registerSDK(key: \"AppSerect\", delegate: self)\n```\n1. 实现 Pay SDK Delegate\n\n```swift\nextension AppDelegate: PaySDKProtcol {\n    //session token \n    func f1AccessToken() -\u003e String {\n        return \"\" // 通过支付后端申请的Token\n    }\n    \n    func f1PIN() -\u003e String {\n        return  \"\" // 用户的PIN码\n    }\n}\n```\n\n1. 调用钱包的服务\n  \n```swift  \n// 获取用户钱包\nPaySDKService.getAssets { completion in\n            switch completion {\n            case .success(let assets):\n                self.handle(assets: assets)\n            case .failure:\n                break\n            }\n        }\n```\n##  具体 API 参考 和错误码\n    \n- [API](https://github.com/fox-one/foxone-pay-ios-sdk/blob/master/API.md) - The PaySDKService API","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Ffoxone-pay-ios-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffox-one%2Ffoxone-pay-ios-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Ffoxone-pay-ios-sdk/lists"}