---
title: "success(with:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/inpaymentamountresolutionresult/success(with:)"
---

# success(with:)

Creates an object whose resolution involves the successful matching of the specified value.

## Declaration

```swift
class func success(with resolvedPaymentAmount: INPaymentAmount) -> Self
```

## Parameters

- `resolvedPaymentAmount`: The value that resolves the requested value of the intent. This value may be different than the one specified in the intent object.

## Return Value

Return Value A new INPaymentAmountResolutionResult object.

## Discussion

Discussion Use this method to create a result object when you are able to resolve the payment amount for a bill. For payment amounts representing the account’s current balance, amount due, or minimum amount due, a successful resolution signifies that you know the amount of money to transfer from the user’s account to the bill payee.

## See Also

### Creating a Resolution Result Object

- [confirmationRequired(with:)](intents/inpaymentamountresolutionresult/confirmationrequired(with:).md)
- [disambiguation(with:)](intents/inpaymentamountresolutionresult/disambiguation(with:).md)
