---
title: "Product.PurchaseResult.success(_:)"
framework: storekit
role: symbol
role_heading: Case
path: "storekit/product/purchaseresult/success(_:)"
---

# Product.PurchaseResult.success(_:)

The purchase succeeded and results in a transaction.

## Declaration

```swift
case success(VerificationResult<Transaction>)
```

## Mentioned in

Testing Ask to Buy in Xcode

## See Also

### Getting the Purchase Results

- [Product.PurchaseResult.userCancelled](storekit/product/purchaseresult/usercancelled.md)
- [Product.PurchaseResult.pending](storekit/product/purchaseresult/pending.md)
