{"id":28614295,"url":"https://github.com/openflutter/tobias","last_synced_at":"2026-01-28T10:11:20.371Z","repository":{"id":32951630,"uuid":"146764737","full_name":"OpenFlutter/tobias","owner":"OpenFlutter","description":"AliPay For Flutter.支付宝Flutter插件","archived":false,"fork":false,"pushed_at":"2025-03-07T14:53:54.000Z","size":31253,"stargazers_count":702,"open_issues_count":12,"forks_count":117,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-03-07T15:37:12.780Z","etag":null,"topics":["alipay","alipysdk","flutter","flutteralipay"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/OpenFlutter.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-08-30T14:48:43.000Z","updated_at":"2025-03-07T14:53:57.000Z","dependencies_parsed_at":"2022-07-13T10:20:26.040Z","dependency_job_id":"485c2e7e-8cb3-411e-9a11-908611e01646","html_url":"https://github.com/OpenFlutter/tobias","commit_stats":{"total_commits":304,"total_committers":11,"mean_commits":"27.636363636363637","dds":"0.049342105263157854","last_synced_commit":"54f1b82659f44e09367492eef42bc0e7e8558112"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/OpenFlutter/tobias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Ftobias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Ftobias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Ftobias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Ftobias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenFlutter","download_url":"https://codeload.github.com/OpenFlutter/tobias/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Ftobias/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259374992,"owners_count":22847878,"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":["alipay","alipysdk","flutter","flutteralipay"],"created_at":"2025-06-12T01:13:40.611Z","updated_at":"2026-01-28T10:11:20.340Z","avatar_url":"https://github.com/OpenFlutter.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](./arts/tobias_logo.png)\n\n[![pub package](https://img.shields.io/pub/v/tobias.svg)](https://pub.dartlang.org/packages/tobias)\n![Build status](https://github.com/OpenFlutter/tobias/actions/workflows/build_test.yml/badge.svg)\n[![GitHub stars](https://img.shields.io/github/stars/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/network)\n[![GitHub license](https://img.shields.io/github/license/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/blob/master/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/OpenFlutter/tobias)](https://github.com/OpenFlutter/tobias/issues)\n\u003ca target=\"_blank\" href=\"https://qm.qq.com/q/TJ29rkzywM\"\u003e\u003cimg border=\"0\" src=\"https://pub.idqqimg.com/wpa/images/group.png\" alt=\"OpenFlutter\" title=\"OpenFlutter\"\u003e\u003c/a\u003e\n\n[中文移步这里](./README_CN.md)\n\n\u003e Join QQ Group now: 1003811176\n\n![QQGroup](https://gitee.com/OpenFlutter/resoures-repository/raw/master/common/flutter.png)\n\n## What's Tobias\n\nTobias is a  flutter plugin for AliPaySDK, works on iOS, Android and OpenHarmony\n\n## Getting Started\n\nI highly recommend that you read  [the official documents](https://docs.open.alipay.com/204/105051/) before using tobias.\n\n1. You have to config `url_scheme` in [pubspec.yaml](./example/pubspec.yaml). Url scheme is a unique string to\nresume you app on iOS but please note that `_` is invalid.\n\n2. for OpenHarmony, you have to add scheme `alipays` to module.json5 in your project like this:\n\n```json5\n{\n  \"module\": {\n    \"querySchemes\": [\n      \"alipays\"\n    ],\n  }\n}\n```\n\n## Payment\n\nIt's simple,pass Tobias your order info from server :\n\n```dart\nimport 'package:tobias/tobias.dart' ;\nTobias tobias = Tobias();\ntobias.pay(yourOrder);\n```\n\nIf you're working with iOS, please add and pass universal link. See [how to configure universal link](https://opendocs.alipay.com/open/0b9qzi).\n\nThe result is map contains results from AliPay.The result also contains an external filed named `platform` which\nmeans the result is from `iOS` or `android`.\nResult sample:\n\n```dart\n{\nresult: partner=\"2088411752388544\"\u0026seller_id=\"etongka123@163.com\"\u0026out_trade_no=\"180926084213001\"\u0026subject=\"test pay\"\u0026total_fee=\"0.01\"\u0026notify_url=\"http://127.0.0.1/alipay001\"\u0026service=\"mobile.securitypay.pay\"\u0026payment_type=\"1\"\u0026_input_charset=\"utf-8\"\u0026it_b_pay=\"30m\"\u0026return_url=\"m.alipay.com\"\u0026success=\"true\"\u0026sign_type=\"RSA\"\u0026sign=\"nCZ8MDhsNvYNAbrLZJZ2VUy6vydgAp+JCq1aQo6ORDYtI9zwtnja3qNGQNiDJCuktoIj7fSTM487XhjPDqnOreZjIA1GJpxu9D1I3nMXIn1M7DfZ0noDwXcYZ438/jbYac7g8mhpwdKGweLCAni9mO3Y6q3iBFkox8i9PcsGxJY=\",\nresultStatus: 9000,\n memo: ,\n platform:iOS\n}\n\n```\n\n \u003e NOTE:Tobias use pay_V2.\n\n\u003e If you're facing conflicts with `utdid` on iOS, you can set `no_utdid: true` in [pubspec.yaml](./example/pubspec.yaml)\n  \n## Auth\n\n```\nimport 'package:tobias/tobias.dart' ;\nTobias tobias = Tobias();\ntobias.auth(\"your auth str);\n```\n\n## Check AliPay Installation\n\n```\nTobias tobias = Tobias();\nvar result = await tobias.isAliPayInstalled;\n```\n\nYou can also call `tobias.version` which returns a map contains `version` and `platform`.\n\n## Upgrade to 1.0.0\n\nThere's no need to override `AppDelegate` since `tobais 1.0.0`. If you have done that before, please remove\nthe following code in your `AppDelegate`:\n\n```objective-c\n\n- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {\n  return [TobiasPlugin handleOpenURL:url];\n}\n- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary\u003cNSString*, id\u003e *)options\n{\n  return [TobiasPlugin handleOpenURL:url];\n}\n```\n\nIf you have to override these two functions, make sure you have called the `super`:\n\n```objective-c\n\n- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {\n    \n  return [super application:application openURL:url sourceApplication:sourceApplication annotation:annotation];\n}\n- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary\u003cNSString*, id\u003e *)options\n{\n    \n  return [super application:application openURL:url options:options];\n}\n```\n\n### Donate\n\nBuy me a cup of coffee。\n\n\u003cimg src=\"./arts/wx.jpeg\" height=\"300\"\u003e  \u003cimg src=\"./arts/ali.jpeg\" height=\"300\"\u003e\n\n### Subscribe Us On WeChat\n\n![subscribe](./arts/wx_subscription.png)\n\n## LICENSE\n\n    Copyright 2018 OpenFlutter Project\n\n    Licensed to the Apache Software Foundation (ASF) under one or more contributor\n    license agreements.  See the NOTICE file distributed with this work for\n    additional information regarding copyright ownership.  The ASF licenses this\n    file to you under the Apache License, Version 2.0 (the \"License\"); you may not\n    use this file except in compliance with the License.  You may obtain a copy of\n    the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\n    License for the specific language governing permissions and limitations under\n    the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenflutter%2Ftobias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenflutter%2Ftobias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenflutter%2Ftobias/lists"}