Giter VIP home page Giter VIP logo

itenfay / dyfstorekit Goto Github PK

View Code? Open in Web Editor NEW
82.0 2.0 9.0 544 KB

一个轻量级且易用的iOS应用内购库(A lightweight and easy-to-use iOS library for In-App Purchases.)。

Home Page: https://www.jianshu.com/p/de030cd6e4a3

License: Other

Objective-C 98.62% Ruby 1.38%
objective-c oc storekit in-app-purchases in-app-purchase receipt receipt-url receipt-data receipt-verification receipt-verifier

dyfstorekit's Introduction

👋 Hi, I'm Tenfay!

Welcome to my GitHub profile! I'm a program developer who always enjoys learning new things. I am passionate about creating open source tools for developers.

More About Me

  • 🌍   I live in Changsha, China.
  • 🎓   An engineer who likes to develop the mobile apps.
  • 🖥️   See my blog at itenfay.github.io.
  • 🤝   I'm open to collaborating on any open source projects.
  • 💬   Ask me anything here! I am happy to help.
  • 📫   How to reach me: [email protected].
  • 🐧   QQ Group: 614799921(Full), 259458876, 155353383.

Languages and Tools


Github Stats

dyfstorekit's People

Contributors

itenfay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dyfstorekit's Issues

自己服务器二次验证问题

我们需要自己服务器二次验证,点击购买之前会调用服务器接口返回充值编号交易记录和充值交易编号这两个参数。调用二次验证的时候需要把这两个参数和 receiptData 一起传给服务器,请问这个应该怎么处理。我看源码感觉可以在DYFStoreNotificationInfo里面绑定这两个参数,能否提供一下私聊,不胜感激

Error 100

Hello,
I'm about to connect the UI of my application to your pod, and at first I retrieve the available products:

'[DYFStore.defaultStore requestProductWithIdentifiers:productIds
success:^(NSArray *products, NSArray *invalidIdentifiers) {'

and this is the log:

`2020-04-29 10:54:52.058563+0700 [DYFStore] -[DYFStore requestProductWithIdentifiers:success:failure:] [Line: 182] requestProductWithIdentifiers: (
noads
)
2020-04-29 10:54:52.089919+0700[DYFStore] -[DYFStore productsRequest:didReceiveResponse:] [Line: 251] products request received response
2020-04-29 10:54:52.090148+0700 [DYFStore] -[DYFStore productsRequest:didReceiveResponse:] [Line: 259] received product with id: noads

2020-04-29 10:54:52.090645+0700 [DYFStore] -[DYFStore requestDidFinish:] [Line: 289] products request finished`

but I get this error when I want to buy a product:

An error occured, 100

and I can see that self.availableProducts in the defaultStore is empty, and tracing this array in the pod code I can see that self.availableProducts gets filled with products, but is like they are removed after that.

Thanks!

EDIT: I have replaced the bundle id in your test/demo project with my application bundle, and I get the same error when I want to purchase from the list of products.

回调异常

AppDelegate添加下面两行的时候 DYFStoreManager没有初始化, 导致如果DYFStore里有恢复的单子发出的通知DYFStoreManager收不到, 然后就没后续了

 [DYFStore.defaultStore addPaymentTransactionObserver];
   
   // Sets the delegate processes the purchase which was initiated by user from the App Store.
   DYFStore.defaultStore.delegate = self;

Crash when storing large receipt data to keychain

Your DYFStoreManager.m storeReceipt method saves receipt data to the keychain. If the receipt is too large, then iOS crashes the app. For apps like ours with auto-renewable subscriptions, the receipt data can be huge because Apple stores each and every past transaction in the receipt. My app's code is modeled after your DYFStoreManager.

Here is what we're seeing in the console log:

securityd SecDbKeychainItemV7: item's secret data exceeds reasonable size (5004203 bytes)
keychain item data exceeds reasonable size (5049072 bytes)
osanalyticshelper Process MyAppNameHere [742] killed by jetsam reason per-process-limit

Do you have a workaround for this issue?

自动订购

请问此封装适用自动订购吗,需要注意哪些地方或者修改哪些地方,求解答

在测试Demo的过程中出现Crash

我使用我自己APP的信息和沙盒账号测试,在调用'''[[DYFStoreManager shared]restorePurchases]'''后,'''- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray<SKPaymentTransaction *> *)transactions'''收到了900多个transaction,之后Demo就出现了Crash。

因为这个沙盒账号用了很长一段时间,所以产生的transaction比较多,这种的要怎么处理?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.