Skip to content

Commit

Permalink
Documented return false
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Sep 19, 2022
1 parent afa91a7 commit 2a014af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Purchasing/Purchases/PurchasesOrchestrator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ extension PurchasesOrchestrator: StoreKit1WrapperDelegate {
self.purchaseCompleteCallbacksByProductID.modify { $0[productIdentifier] = completion }
storeKit1Wrapper.add(payment)
}

// See `SKPaymentTransactionObserver.paymentQueue(_:shouldAddStorePayment:for:)`
// Returns `false` to indicate that the app will defer the purchase and be handled
// when the user calls the purchase callback.
return false
}

Expand Down Expand Up @@ -649,6 +653,9 @@ extension PurchasesOrchestrator: PaymentQueueWrapperDelegate {
delegate.readyForPromotedProduct(product, purchase: startPurchase)
}

// See `SKPaymentTransactionObserver.paymentQueue(_:shouldAddStorePayment:for:)`
// Returns `false` to indicate that the app will defer the purchase and be handled
// when the user calls the purchase callback.
return false
}

Expand Down

0 comments on commit 2a014af

Please sign in to comment.