simulatesAskToBuyInSandbox property

bool simulatesAskToBuyInSandbox
final

Produces an "ask to buy" flow in the sandbox.

Setting it to true will cause a transaction to be in the state SKPaymentTransactionStateWrapper.deferred, which produce an "ask to buy" prompt that interrupts the the payment flow.

Default is false.

See https://developer.apple.com/in-app-purchase/ for a guide on Sandbox testing.

Implementation

final bool simulatesAskToBuyInSandbox;