Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

Mobile Payments SDK for React Native supports the following SDK versions:

* [iOS](https://developer.squareup.com/docs/mobile-payments-sdk/ios#1-install-the-sdk-and-dependencies): 2.0.2 and above
* [Android](https://developer.squareup.com/docs/mobile-payments-sdk/android#1-install-the-sdk-and-dependencies): 2.0.2 and above
* [iOS](https://developer.squareup.com/docs/mobile-payments-sdk/ios#1-install-the-sdk-and-dependencies): 2.2.3 and above
* [Android](https://developer.squareup.com/docs/mobile-payments-sdk/android#1-install-the-sdk-and-dependencies): 2.3.0 and above

## Review requirements
Before getting started, please review the Requirements and Limitations and Device Compatibility sections to ensure that the SDK can be used in your project:
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require Pod::Executable.execute_command('node', ['-p',
{paths: [process.argv[1]]},
)', __dir__]).strip

platform :ios, 15.1
platform :ios, 16
Copy link
Member

@Armaxis Armaxis Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone from iOS team should confirm this

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we bumped the version to 16.0

prepare_react_native_project!

linkage = ENV['USE_FRAMEWORKS']
Expand Down
18 changes: 9 additions & 9 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ PODS:
- hermes-engine (0.75.3):
- hermes-engine/Pre-built (= 0.75.3)
- hermes-engine/Pre-built (0.75.3)
- mobile-payments-sdk-react-native (2025.2.2):
- mobile-payments-sdk-react-native (2025.6.1):
- DoubleConversion
- glog
- hermes-engine
- MockReaderUI (~> 2.1.0)
- MockReaderUI (~> 2.2.3)
- RCT-Folly (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
Expand All @@ -28,9 +28,9 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- SquareMobilePaymentsSDK (~> 2.1.0)
- SquareMobilePaymentsSDK (~> 2.2.3)
- Yoga
- MockReaderUI (2.1.0)
- MockReaderUI (2.2.3)
- Permission-BluetoothPeripheral (3.10.1):
- RNPermissions
- Permission-LocationAccuracy (3.10.1):
Expand Down Expand Up @@ -1581,7 +1581,7 @@ PODS:
- ReactCommon/turbomodule/core
- Yoga
- SocketRocket (0.7.0)
- SquareMobilePaymentsSDK (2.1.0)
- SquareMobilePaymentsSDK (2.2.3)
- Yoga (0.0.0)

DEPENDENCIES:
Expand Down Expand Up @@ -1823,8 +1823,8 @@ SPEC CHECKSUMS:
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
hermes-engine: 8d2103d6c0176779aea4e25df6bb1410f9946680
mobile-payments-sdk-react-native: 700d715727920468e9cb1af577b94d6b678f14e5
MockReaderUI: 141fe6bb56f63d22e375800ee6a5c5da69ffb55a
mobile-payments-sdk-react-native: 5b23ebe5ea5fe3e91f64a7fcd596e002db06fdef
MockReaderUI: d88d35cb4926b38425c2ba9fa3ef11a4aaf39f21
Permission-BluetoothPeripheral: 34ab829f159c6cf400c57bac05f5ba1b0af7a86e
Permission-LocationAccuracy: 30c5421911024b28d8916db5cbd728097da54434
Permission-LocationAlways: af165dee8a5a5888df6764f9f6ba98b112893709
Expand Down Expand Up @@ -1891,9 +1891,9 @@ SPEC CHECKSUMS:
RNScreens: 35bb8e81aeccf111baa0ea01a54231390dbbcfd9
RNVectorIcons: 182892e7d1a2f27b52d3c627eca5d2665a22ee28
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
SquareMobilePaymentsSDK: b437afc89530142af80ed818f4db02e07c47457c
SquareMobilePaymentsSDK: 698333088d7200bba3e7991121ba245112390651
Yoga: 4ef80d96a5534f0e01b3055f17d1e19a9fc61b63

PODFILE CHECKSUM: 439764333dadb7461aea4b653e55d92f832f43a0
PODFILE CHECKSUM: 81d2f9e3393262e2bc7a99478a8e3a6741f0482e

COCOAPODS: 1.16.2
10 changes: 9 additions & 1 deletion ios/Mappers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ class Mappers {
let amountMoney = Money(moneyParam) else {
return .failure(.missingAmount)
}

guard let processingModeInt = paymentParameters["processingMode"] as? Int,
let processingMode = ProcessingMode(rawValue: processingModeInt) else {
return .failure(.missingProcessingMode)
}

guard let idempotencyKey = paymentParameters["idempotencyKey"] as? String else {
return .failure(.missingIdempotencyKey)
}
let paymentParams = PaymentParameters(idempotencyKey: idempotencyKey, amountMoney: amountMoney)

let paymentParams = PaymentParameters(idempotencyKey: idempotencyKey, amountMoney: amountMoney, processingMode: processingMode)

// Optional parameters
if let partialAuth = paymentParameters["acceptPartialAuthorization"] as? Bool {
Expand Down Expand Up @@ -176,6 +183,7 @@ extension SquareMobilePaymentsSDK.SourceType {
enum PaymentParametersError: Error {
case missingAmount
case missingIdempotencyKey
case missingProcessingMode
}

enum PaymentPromptError: Error {
Expand Down
3 changes: 2 additions & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

platform :ios, 16
target 'RNMobilePaymentSDK' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for RNMobilePaymentSDK
pod "SquareMobilePaymentsSDK", "~> 2.2.2"
pod "SquareMobilePaymentsSDK", "~> 2.2.3"
target 'RNMobilePaymentSDKTests' do
inherit! :search_paths
# Pods for testing
Expand Down
8 changes: 4 additions & 4 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
PODS:
- SquareMobilePaymentsSDK (2.1.0)
- SquareMobilePaymentsSDK (2.2.3)

DEPENDENCIES:
- SquareMobilePaymentsSDK (~> 2.1.0)
- SquareMobilePaymentsSDK (~> 2.2.3)

SPEC REPOS:
trunk:
- SquareMobilePaymentsSDK

SPEC CHECKSUMS:
SquareMobilePaymentsSDK: b437afc89530142af80ed818f4db02e07c47457c
SquareMobilePaymentsSDK: 698333088d7200bba3e7991121ba245112390651

PODFILE CHECKSUM: 36ec71d8ea5709b9c8c2277616eae29f2769b341
PODFILE CHECKSUM: 1d34f9a9e2d1b600f03743f8a2b0d0666a02192d

COCOAPODS: 1.16.2
6 changes: 3 additions & 3 deletions mobile-payments-sdk-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Pod::Spec.new do |s|
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => "15.0" }
s.platforms = { :ios => "16" }
s.source = { :git => "https://github.com/square//mobile-payments-sdk-react-native.git", :tag => "#{s.version}" }

s.dependency "SquareMobilePaymentsSDK", "~> #{package["mobilePaymentsSdkVersion"]}"
s.dependency "MockReaderUI", "~> #{package["mobilePaymentsSdkVersion"]}"
s.dependency "MockReaderUI", "~> 2.2.3"
s.dependency "SquareMobilePaymentsSDK", "~> 2.2.3"

s.source_files = "ios/**/*.{h,m,mm,swift}"

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "mobile-payments-sdk-react-native",
"version": "2025.2.2",
"version": "2025.6.1",
"description": "Mobile Payments SDK plug-in for React Native. Enables developers to build secure in-person payment solutions.",
"mobilePaymentsSdkVersion": "2.1.0",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
"module": "./lib/module/index.js",
Expand Down
Loading