bizz84 / bizz84/SwiftyStoreKit
Cancel transaction if custom server fail non atomically
Open
- Dominant language
- Swift
- Stars
- 6.7k
- Forks
- 801
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I'm making an in-app subscription. Is there any way to cancel the transaction if my server fails?
Example:
I call `SwiftyStoreKit.purchaseProduct(productID, quantity: 1, atomically: false)` and before calling `SwiftyStoreKit.finishTransaction(product.transaction)` I need to tell my server that the purchase has been happened and send the receipt. However if the server fails, I should cancel the transaction. Is there anyway possible to do that?
Contributor guide
Assessment
This issue has not been assessed yet.