AtomeMerchantDemo-iOS
Atome 商户 iOS 示例
集成
CocoaPods (iOS 10+)
您可以使用 CocoaPods 通过将其添加到您的 Podfile
中来安装 AtomeSDK
platform :ios, '10.0'
use_frameworks!
target 'YourApp' do
pod 'AtomeSDK'
end
在您的 info.plist 中添加 Key:"Localization native development region",类型为 "Array",添加一个字符串值 "apaylater"
使用
AtomeManager.shared().handPaymentURL(url)
if AtomeManager.shared().isAtomeInstalled() {
debugPrint("Atome already installed")
} else {
debugPrint("Atome not installed, please go to download")
}
注意
如果您的项目是用 Objective-C 编写的,请创建 Bridging-Header.h