shouldContinueTransaction method
bool
shouldContinueTransaction(
- SKPaymentTransactionWrapper transaction,
- SKStorefrontWrapper storefront
Called by the system to check whether the transaction should continue if the device's App Store storefront has changed during a transaction.
- Return
true
if the transaction should continue within the updated storefront (default behaviour). - Return
false
if the transaction should be cancelled. In this case the transaction will fail with the error SKErrorStoreProductNotAvailable.
See the documentation in StoreKit's [-SKPaymentQueueDelegate shouldContinueTransaction]
.
Implementation
@override
bool shouldContinueTransaction(
SKPaymentTransactionWrapper transaction, SKStorefrontWrapper storefront) {
return true;
}