bizz84 / SwiftyStoreKit

Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ ⛺
MIT License
6.57k stars 796 forks source link

How do I call this completeTransactions manually #704

Open William-Friday opened 10 months ago

William-Friday commented 10 months ago

There is a business scenario: Apple returned the payment success, I saved the order number, but the server exception did not close the transaction, at this time the server order is not paid, if the user clicks the order to continue to pay, I compare the server and the local order number if the same then the user has paid, I am manually calling completeTransactions to complete the transaction

William-Friday commented 10 months ago

If the user is asked to quit the app and reopen, it calling completeTransactions I think it is not appropriate