beiliao-mobile / bliap Goto Github PK
View Code? Open in Web Editor NEW处理了 IAP 九大坑, 并且封装了收据验证队列, 最大限度保证移动端 IAP 安全的示例代码.
Home Page: https://juejin.im/user/5941fa488d6d810058c0d4df
License: MIT License
处理了 IAP 九大坑, 并且封装了收据验证队列, 最大限度保证移动端 IAP 安全的示例代码.
Home Page: https://juejin.im/user/5941fa488d6d810058c0d4df
License: MIT License
写了一堆东西! IAP 有这么复杂了?
Hello, is there no package available for WeChat Pay and Alipay?
sendCreateOrderRequestWithProductIdentifier 方法中,请求服务器获取订单号之后,如何储存起来,进行关联呢.?
每次启动应用为什么会出现一直进入这个地方无法跳出验证:
if (self.taskState == BLPaymentVerifyTaskStateCancel) {
NSLog(@"尝试调起一个被取消的 task 😢");
return;
}
好像是因为从 appStoreReceiptURL 取出来后放进队列验证时,收到 IAP 的回调
这个怎么解决啊
2018-05-22 12:26:00.125 Voice[8367:1811366] 交易成功...:<SKPaymentTransaction: 0x1299f8630>
2018-05-22 12:26:00.210 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.211 Voice[8367:1811366] transationModels:(null),self.userid:30000107,Error Domain=com.wallet.error Code=0 "Data of keychain is empty" UserInfo={NSLocalizedDescription=Data of keychain is empty}
2018-05-22 12:26:00.215 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.216 Voice[8367:1811366] pushPaymentTransactionIntoOperationTaskQueueIfNeed:<SKPaymentTransaction: 0x1299f8630>,order_id:f7280b85-9575-422e-a702-9acf70b4663e
2018-05-22 12:26:00.221 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.221 Voice[8367:1811366] self.verifyManager:<IAPVerifyManager: 0x1292d0160>
2018-05-22 12:26:00.226 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.229 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.233 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.238 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.241 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.250 Voice[8367:1811366] cancelAllTaskAndResetAllModelsThenStartFirstTaskIfNeed
2018-05-22 12:26:00.256 Voice[8367:1811366] OSStatus error: [-34018] Security error has occurred.
2018-05-22 12:26:00.256 Voice[8367:1811366] transationModels:(null),self.userid:30000107,Error Domain=com.wallet.error Code=0 "Data of keychain is empty" UserInfo={NSLocalizedDescription=Data of keychain is empty}
2018-05-22 12:26:00.256 Voice[8367:1811366] self.operationTaskQueue:(null)
BLPaymentVerifyTaskStateCancel = 3 // 取消. 一旦取消, 这个 task 就不能再次调用 -start 方法重新执行了.
一旦把订单设置成这个状态,会怎么样,这个订单还能恢复吗?
你好, 我们的后台工程师说, 想简化一下流程, 我这边支付成功拿到收据后, 上传给公司服务器, 然后他到苹果服务器验证收据, 验证成功后再创建订单, 但是只返回是否验证成功的消息给app, 不返回订单号了. 请问如果按这个流程的话, 走得通吗?
bl_fetchAllPaymentTransactionModelsForUser中调用[UICKeyChainStore dataForKey:error:],内部实现libxpc会 调用一个同步等待函数xpc_connection_send_message_with_reply_sync,导致主线程阻塞,所以想问[UICKeyChainStore dataForKey:error:]有必要一定要放主线程吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.