Aus öffentlichen Paketdaten erstellte Orientierung.
Tobias ist ein Flutter-Plugin, das eine nahtlose Authentifizierung und Zahlungsintegration mithilfe der nativen Android-, iOS- und OpenHarmony AliPay SDKs ermöglicht. Es ermöglicht Entwicklern, die sichere und weit verbreitete Zahlungsinfrastruktur von AliPay in ihren Flutter-Anwendungen zu nutzen. Das Plugin bietet eine Brücke zwischen Flutter und plattformspezifischen AliPay-Funktionen und sorgt für reibungslose Benutzererfahrungen auf unterstützten Geräten. Mit minimalem Setup unterstützt es sowohl In-App-Zahlungen als auch die Benutzerauthentifizierung über AliPay und ist daher ideal für E-Commerce- und Finanzanwendungen.
Anwendungsfälle
In-App-Käufe mit AliPay
Benutzerauthentifizierung über AliPay
Plattformübergreifende Zahlungslösungen
E-Commerce-Apps für chinesische Märkte
Mobile-Wallet-Integrationen
Hauptmerkmale
Native AliPay SDK-Integration
Unterstützung für Android, iOS und OpenHarmony
Sichere Zahlungs- und Authentifizierungsabläufe
Minimale Konfiguration erforderlich
plattformspezifische Optimierungen
Geeignet für
Flutter-Entwickler, die Zahlungs-fähige Apps erstellen
Apps, die sich an Nutzer in China oder Regionen mit AliPay richten
Entwickler, die native AliPay-Funktionen benötigen
Projekte, die eine plattformübergreifende Zahlungssupport erfordern
Startups, die AliPay schnell integrieren
Hinweise
Benötigt AliPay-Konto und Händler-Einrichtung
Beschränkt auf Regionen, die von AliPay unterstützt werden
For iOS, you have to configure your Xcode project manually. See iOS Configuration.
for OpenHarmony, you have to add scheme alipays to module.json5 in your project like this:
{"module":{"querySchemes":["alipays"],}}
iOS Configuration
Breaking change in 6.0.0: tobias no longer modifies your Xcode project during pod install.
The tobias: section in pubspec.yaml (url_scheme, no_utdid, ios.ignore_security,
ios.universal_link) is obsolete and is ignored. Configure the following by hand.
Swift Package Manager
tobias supports both Swift Package Manager and CocoaPods. To use SPM, enable it once:
flutter config --enable-swift-package-manager
Nothing else is required — Flutter picks up ios/tobias/Package.swift automatically. If SPM is
not enabled, the CocoaPods podspec is used as before.
1. Info.plist
Add your own url scheme (a unique string used to resume your app, _ is not allowed):
The result is map contains results from AliPay.The result also contains an external filed named platform which
means the result is from iOS or android.
Result sample:
Copyright 2018 OpenFlutter Project
Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for
additional information regarding copyright ownership. The ASF licenses this
file to you under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.