Jokul iOS SDK
Jokul API 的官方 iOS SDK。有关产品的更多信息,请访问 https://jokul.doku.com,有关技术文档,请访问 https://jokul.doku.com/docs。
目录
要求
安装
使用终端向项目中添加 pod 仓库
$ pod init
将这些添加到您的 Podfile 中
target 'MyApp' do
pod 'JokulIosSdk', '~> 1.0.0'
end
运行这些来安装
$ pod install
使用
实现包
将SDK添加到您的项目中
- 选择目标
- 选择通用标签页
- 选择下拉菜单框架、库和嵌入式内容
- 添加libJokulIosSdk.a
设置配置
从Jokul后台办公室获取您的客户端ID和共享密钥。
虚拟账户
为了接受虚拟账户,只需导入 <JokulSdk.h>
JokulSdk *jokulSdk = [JokulSdk sharedInstance];
[jokulSdk connectVa: self
paymentChannel: (int) self.channelCode
clientId: getClientId
merchantName: getMerchantName
customerEmail: email
customerName: name
dataAmount: self.amount
expiredTime: expiredTime
invoiceNumber: self.invoiceNumber
isProduction: getValueEnvironmentServer
reusableStatus: reusableStatus
usePageResult: getValueActivePageResult
sharedKey: getSharedKey];
万得利VA
为了使用万得利VA,只需将 paymentChannel: (int) self.channelCodeDemo
更改为
paymentChannel: (int) self.mandiriVa
万得利伊斯兰VA
为了使用万得利VA,只需将 paymentChannel: (int) self.channelCodeDemo
更改为
paymentChannel: (int) self.mandiriSyariahVa
示例
请参阅此存储库中的示例项目: Jokul iOS示例。
帮助与支持
您有问题吗?发现了bug?有任何功能需求吗?您可以新建问题。
获取更多信息,您可以联系[email protected]。