<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INPaymentStatusResolutionResult/success(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INPaymentStatusResolutionResult(cm)successWithResolvedPaymentStatus:"
  },
  "title" : "success(with:)"
}
-->

# success(with:)

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

```
class func success(with resolvedPaymentStatus: INPaymentStatus) -> Self
```

## Parameters

`resolvedPaymentStatus`

The value that resolves the requested value of the intent. You may specify a different payment status if your app treats that value as equivalent to the status requested by the user.

## Return Value

A new [`INPaymentStatusResolutionResult`](/documentation/Intents/INPaymentStatusResolutionResult) object.

## Discussion

Use this method to create a result object when you are able to perform a search based on the requested payment status.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)