---
title: "resolveTransactionAmount(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/inpaybillintenthandling/resolvetransactionamount(for:with:)"
---

# resolveTransactionAmount(for:with:)

Resolves the amount to pay toward the bill.

## Declaration

```swift
optional func resolveTransactionAmount(for intent: INPayBillIntent, with completion: @escaping @Sendable (INPaymentAmountResolutionResult) -> Void)
```

```swift
optional func resolveTransactionAmount(for intent: INPayBillIntent) async -> INPaymentAmountResolutionResult
```

## Parameters

- `intent`: The intent object containing details of the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve the precise amount of the bill. The transactionAmount property of the intent contains information about how much the user wants to pay, which might be a precise amount or might be a relative amount such as the minimum due or the current balance. If a precise amount wasn’t specified, use the details provided by the payee to fill in the precise amount in the INPaymentAmount object you create. For example, if the user asks to pay the minimum due and the payee indicates that the minimum due is $25, include both values in the resulting INPaymentAmount object. Return a successful resolution if you’re able to identify the payment amount. Use other resolutions to prompt the user for more information if you’re unable to determine the precise amount to apply to the bill.

## See Also

### Resolving the Intent Parameters

- [resolveBillPayee(for:with:)](intents/inpaybillintenthandling/resolvebillpayee(for:with:).md)
- [resolveBillType(for:with:)](intents/inpaybillintenthandling/resolvebilltype(for:with:).md)
- [resolveFromAccount(for:with:)](intents/inpaybillintenthandling/resolvefromaccount(for:with:).md)
- [resolveDueDate(for:with:)](intents/inpaybillintenthandling/resolveduedate(for:with:).md)
- [resolveTransactionScheduledDate(for:with:)](intents/inpaybillintenthandling/resolvetransactionscheduleddate(for:with:).md)
- [resolveTransactionNote(for:with:)](intents/inpaybillintenthandling/resolvetransactionnote(for:with:).md)
