<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKTestTransaction/pendingAskToBuyConfirmation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "c:objc(cs)SKTestTransaction(py)pendingAskToBuyConfirmation"
  },
  "title" : "pendingAskToBuyConfirmation"
}
-->

# pendingAskToBuyConfirmation

A Boolean value that indicates whether the transaction is awaiting an Ask to Buy confirmation.

```
var pendingAskToBuyConfirmation: Bool { get }
```

## Discussion

To test an Ask to Buy scenario, first set [`askToBuyEnabled`](/documentation/StoreKitTest/SKTestSession/askToBuyEnabled) to `true` before making a purchase. If [`pendingAskToBuyConfirmation`](/documentation/StoreKitTest/SKTestTransaction/pendingAskToBuyConfirmation) is `true`, approve the transaction by calling [`approveAskToBuyTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/approveAskToBuyTransaction(identifier:)) , or decline it by calling [`declineAskToBuyTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/declineAskToBuyTransaction(identifier:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)