bizz84 / bizz84/SwiftyStoreKit

Cancel transaction if custom server fail non atomically

Open
#459 1 comment 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.