---
title: "paymentQueue(_:updatedTransactions:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skpaymenttransactionobserver/paymentqueue(_:updatedtransactions:)"
---

# paymentQueue(_:updatedTransactions:)

Tells an observer that one or more transactions have been updated.

## Declaration

```swift
func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction])
```

## Parameters

- `queue`: The payment queue that updated the transactions.
- `transactions`: An array of the transactions that were updated.

## Mentioned in

Testing In-App Purchases in Xcode Implementing offer codes in your app Processing a transaction Testing a payment request Testing a successful transaction Testing resubscribing from the subscriptions page

## Discussion

Discussion The application should process each transaction by examining the transaction’s transactionState property. If transactionState is SKPaymentTransactionState.purchased, payment was successfully received for the desired functionality. The application should make the functionality available to the user. If transactionState is SKPaymentTransactionState.failed, the application can read the transaction’s error property to return a meaningful error to the user. Once a transaction is processed, it should be removed from the payment queue by calling the payment queue’s finishTransaction(_:) method, passing the transaction as a parameter. important: Once the transaction is finished, StoreKit can’t tell you that this item is already purchased. It is important that applications process the transaction completely before calling finishTransaction(_:).

## See Also

### Related Documentation

- [In-App Purchase Programming Guide](apple-archive/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction.html.md)

### Handling transactions

- [paymentQueue(_:removedTransactions:)](storekit/skpaymenttransactionobserver/paymentqueue(_:removedtransactions:).md)
