搜尋套件、儲存庫與 APP 分類

套件詳情v4.0.1

square_reader_sdk

一個開源的 Flutter 插件,用於呼叫 Square 的原生 Reader SDK 實作,在 iOS 與 Android 上進行面對面付款。

AndroidiOS
近 30 天下載
86
喜歡數
7
Pub 分數
120

安裝套件

flutter pub add square_reader_sdk

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

square_reader_sdk 是一個 Flutter 插件,讓開發者能夠將其 Android 和 iOS 應用程式與 Square 的原生 Reader SDK 集成,透過相容的硬體讀卡機實現面對面付款。該插件在 Flutter 應用與 Square 安全支付處理基礎設施之間提供橋樑,支援刷卡、輕觸或插入卡片。該插件為開源專案,由 Square 維護,確保對新功能和安全標準的持續支援。它簡化了行動應用程式中收銀點功能的實作。

適用情境

  • 實體零售交易
  • 移動POS系統
  • 隨時隨地的服務付款
  • 事件票務與支付收款
  • 小型企業支付應用

主要特色

  • 與 Square Reader 裝置的原生整合
  • 安全支付處理
  • 支援 Android 與 iOS
  • 開源並積極維護
  • 用於卡片讀取作業的簡單 API

適合對象

  • 使用 Square 讀卡器的零售商
  • 開發移動POS應用的開發者
  • 需要快速支付整合的初創企業
  • 需要安全面對面支付的企業

使用建議

  • 需要實體 Square Reader 硬體
  • 需要正確的 Square 帳戶和 API 憑證
  • 僅限 Square 支援的付款方式
  • 需要平台特定的設定
  • 符合PCI-DSS標準

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

⚠️ RETIRED — Reader SDK is no longer supported

[!CAUTION] Reader SDK has been retired and can no longer be used to accept payments. Reader SDK was deprecated in January 2025 and retired on December 31, 2025. This plugin no longer functions, and this repository is no longer maintained.

Migrate to the Mobile Payments SDK, Square's supported solution for in-person payments, which has an official Flutter plugin. See the migration guide to get started.

Flutter plugin for Reader SDK

build Pub

Square Reader SDK lets developers embed the Square checkout flow and accept in-person payments in custom apps using Square Readers. The SDK supports authorization, transaction processing, and Reader management.

Use Square's official Flutter plugin for Reader SDK to build in-person payment solutions on Android and iOS.

Migration from 3.x to 4.x

Remove initialize method from onCreate method in your application class in Android portion

package <YOUR_PACKAGE_NAME>;

- import com.squareup.sdk.reader.ReaderSdk;   
import io.flutter.app.FlutterApplication;

public class MainApplication extends FlutterApplication {

 @Override
 public void onCreate() {
   super.onCreate();
-   ReaderSdk.initialize(this);
 }   
}
If you targeting SDK 31 and above

Go to your app and add code to request BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions before you invoke any of Reader plugin method.

How to use

The Flutter plugin for Reader SDK acts as a wrapper on the native SDKs and is currently compatible with the following native Reader SDK versions:

  • iOS: 1.6.0 and above
  • Android: 1.7.5 and above

Try the sample app to see the plugin in action or follow the instructions in the getting started guide to build a custom solution from scratch.

Additional documentation

In addition to this README, the following is available in the flutter plugin GitHub repo:

Build requirements

Flutter
  • Flutter version 2.0 or higher
  • Dart version 2.12 or higher
Android
  • minSdkVersion is API 24 or higher.
  • Android SDK platform: API 31.
  • Android SDK build tools: 28.0.2
  • Android Gradle Plugin: 3.0.0 or greater.
  • Support library: 26.0.2
  • Google Play Services: 16.0.1
  • Google APIs Intel x86 Atom_64 System Image
iOS
  • Xcode version: 10.2 or greater.
  • iOS Base SDK: 11.1 or greater.
  • Deployment target: iOS 11.0 or greater.

Reader SDK requirements and limitations

  • Reader SDK is only available for accounts based in the United States. Authorization requests for accounts based outside the United States return an error.
  • Reader SDK may not be used for unattended terminals. Using Reader SDK to implement payment solutions in unattended terminals or kiosks (for example, vending machines) is strictly prohibited.
  • Reader SDK requires an authorization token from the Mobile Authorization API to connect Square Readers and accept payments.
  • Reader SDK only supports on-screen tipping. Digital receipts and tips can be configured in Reader SDK. Tipping on printed receipts is not supported at this time.
  • Reader SDK cannot issue refunds. Refunds can be issued programmatically using the Refunds API or manually in the Square Dashboard.
  • Reader SDK is not supported in the Square sandbox. See Testing Mobile Apps for testing recommendations.
  • Your version of Reader SDK must adhere to the Square SDK update policy. To limit risk to developers and their users, Square enforces an update policy for Reader SDK that requires developers to keep their version of Reader SDK current.

License

Copyright 2022 Square Inc.

Licensed 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.

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。