オンライン決済サービス「PAY.JP」のiOSアプリ組込み用のSDKです。
最新バージョンでは以下を実現するための機能が提供されています。 詳細はドキュメントを参照してください。
- Apple Payアプリ内決済
- クレジットカードによる決済
.tableStyled |
.labelStyled |
.displayStyled |
|---|---|---|
![]() |
![]() |
![]() |
- Apple Pay: https://github.com/payjp/apple-pay-example
- CreditCard (Swift, SPM): https://github.com/payjp/payjp-ios/tree/master/example-swift
- CreditCard (Swift, Carthage): https://github.com/payjp/payjp-ios/tree/master/example-swift (example-swift-carthageターゲット)
- CreditCard (Objective-C, CocoaPods): https://github.com/payjp/payjp-ios/tree/master/example-objc
- Swift または Objective-C で開発された iOS アプリケーション
- iOS 12.0以上
- 最新安定版のXcode
Carthage でインストールする場合、以下のように記述してください
github "payjp/payjp-ios"
Carthageサンプルアプリのビルド
example-swift-carthageターゲットをローカルでビルドする場合は、fastlaneを使用してください:
bundle exec fastlane ios build_carthage_swift_exampleこのlaneは以下を自動的に実行します:
- PAYJP.xcframeworkの作成(iOSデバイス+シミュレーター用)
- 依存ライブラリ(PhoneNumberKit等)のCarthageビルド
- example-swift-carthageアプリのビルド
注: Package.swiftとの競合により、carthage bootstrapだけではビルドできません。fastlaneを使用してください。
CocoaPods でもインストールすることができます。
pod 'PAYJP'Xcode 12以上の場合、Swift Package Managerにも対応しています。
- Swift 5
PAY.JP iOS SDK is available under the MIT license. See the LICENSE file for more info.


