shouldContinueTransaction method

bool shouldContinueTransaction(
  1. SKPaymentTransactionWrapper transaction,
  2. 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

bool shouldContinueTransaction(
  SKPaymentTransactionWrapper transaction,
  SKStorefrontWrapper storefront,
) =>
    true;