Skip to content
pubscout

tobias

6.0.0, released 3 weeks ago by openflutter.dev

Flutter plugin for native Android, iOS, and OpenHarmony AliPay SDKs.

WASM-readyRock solid
$ flutter pub add tobias
Source repository

What it does

Tobias lets users authenticate or make payments using the native AliPay SDKs on Android, iOS, and OpenHarmony. It provides straightforward methods to invoke payments with order information, perform authentication, and check if AliPay is installed.

AI-written summary of version 6.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to integrate AliPay payments in a Flutter application targeting Android, iOS, or OpenHarmony.
  • You need to support AliPay user authentication.

Skip it when

  • You are using iOS version older than 13.0.
  • You rely on the removed `no_utdid` variant of the iOS SDK (stay on 5.x if needed).

Strengths

  • Supports multiple platforms including iOS, Android, and OpenHarmony.
  • Provides simple Dart APIs for payment and authentication.
  • Supports Swift Package Manager as well as CocoaPods on iOS.

Weaknesses

  • Requires manual configuration on iOS (Info.plist, URL schemes, and universal links since breaking changes in 6.0.0).
  • Platform-specific setup is mandatory.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires manual configuration of URL schemes and universal links in iOS Info.plist and Runner.entitlements. OpenHarmony requires updating module.json5 with querySchemes.

import 'package:tobias/tobias.dart';

Tobias tobias = Tobias();
tobias.pay(yourOrder);

Alternatives

Packages that do the same job and could replace tobias.

  • moyasar

    Accept payments via Apple Pay, Samsung Pay, STC Pay, and Credit Card using Moyasar.

  • razorpay_web

    Flutter plugin for integrating the Razorpay payment gateway across multiple platforms.

  • phonepe_payment_sdk

    A Flutter plugin for PhonePe Payment SDK to integrate payments.

  • flutter_braintree

    Flutter plugin wrapping native Braintree SDKs for payments with cards, PayPal, and Google Pay.

Works with

Packages commonly used together with tobias: ones it builds on, ones built on it, and its own family.