Skip to content

square/in-app-payments-react-native-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

311 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native plugin for In-App Payments SDK

in-app-payment-react-native-plugin npm version

The In-App Payments plugin for Square In-App Payments SDK is a wrapper for the native Android and iOS SDKs and supports the following native In-App Payments SDK versions:

  • iOS: 1.6.7
  • Android: 1.6.9

Android: Kotlin 2.2.x compatibility

In-App Payments Android SDK 1.6.9 is built with Kotlin 2.3.0 and requires Kotlin 2.2.21+ to compile, which React Native does not ship yet (it pins Kotlin 2.1.x as of RN 0.86). The Expo config plugin handles this automatically; bare React Native apps must pin the Kotlin Gradle plugin in their root android/build.gradle — see the getting started guide.

Additional documentation

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

Build requirements

Android

  • Android minSdkVersion is API 24 (Nougat, 7.0) or higher.
  • Android Target SDK version: API 33 (Android 13).
  • Android Gradle Plugin: 4.0.0 or greater.

iOS

  • Xcode version: 15.0 or greater.
  • iOS Base SDK: 13.0 or greater.
  • Deployment target: iOS 13.0 or greater.

In-App Payments SDK requirements and limitations

  • In-App Payments SDK cannot issue refunds. Refunds can be issued programmatically using the Refunds API or manually in the Square Dashboard.

Sample applications

Steps

  1. Run yarn
  2. Run yarn prepare
  3. cd example-expo
  4. Run yarn
  5. Run npx expo prebuild
  6. Run yarn ios

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.

Releases

Packages

Used by

Contributors

Languages