Crypttp-ios
环境
iOS 10+
安装
1. 在项目的Podfile中添加以下行
pod ‘CrypttpFramework’
添加行后
pod install
2. 注册通用链接
在
可能的
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>crypttp</string>
</array>
<key>CFBundleURLName</key>
<string></string>
</dict>
</array>
使用
SDK方法通过Crypttp类调用。
guard let params = Crypttp.shared.parseCrypttpDeeplink(url: incomingURL) {
return false
}
重要
使用此方法将交易哈希发送到Crypttp。
如果Crypttp未从您那里接收到哈希,我们有权无需解释即从系统中断开您。
Crypttp.shared.sendTransactionHash(transactionId:"id", transactionHash:"hash", success: {
print("success")
}) { error in
print("Error: \(error.localizedDescription)")
}
提高您的钱包应用知名度
在仪表板上注册。
导航到设置/钱包应用
设置
-
名称
-
描述
-
图标
-
支持的货币
-
AppStore和Google Play的网址
此配置将帮助您推广您的钱包应用。
当用户在Crypttp商家处支付而没有安装钱包时,将重定向到特殊页面,用户可以在那里找到精选的钱包。