<!--
{
  "availability" : [
    "iOS: 8.3.0 - 18.0.0",
    "iPadOS: 8.3.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.14.0 - 15.0.0",
    "tvOS: -",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 6.2.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKMutablePayment/simulatesAskToBuyInSandbox",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKMutablePayment(py)simulatesAskToBuyInSandbox"
  },
  "title" : "simulatesAskToBuyInSandbox"
}
-->

# simulatesAskToBuyInSandbox

A Boolean value that produces an “ask to buy” flow for this payment in the sandbox.

```
var simulatesAskToBuyInSandbox: Bool { get set }
```

---

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)