square_reader_sdk
一个开源的 Flutter 插件,用于调用 Square 的原生 Reader SDK 实现,在 iOS 和 Android 上进行面对面支付。
Square Reader SDK 的 Flutter 插件
{"sdk":"flutter"}^8.0.6^5.0.0^2.0.1^2.0.3^1.0.0^8.0.6以下为英文项目原文快照,最新内容请访问 GitHub。
[!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.
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.
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);
}
}
Go to your app and add code to request BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions before
you invoke any of Reader plugin method.
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:
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.
In addition to this README, the following is available in the flutter plugin GitHub repo:
doc - Root directory for all documentationexample - Root directory of the Flutter sample app (with walkthrough).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.