<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ApplePayontheWeb",
  "identifier" : "/documentation/ApplePayontheWeb/ApplePayPaymentAuthorizationResult",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple Pay on the Web"
    ],
    "preciseIdentifier" : "struct/ApplePayPaymentAuthorizationResult"
  },
  "title" : "ApplePayPaymentAuthorizationResult"
}
-->

# ApplePayPaymentAuthorizationResult

The result of payment authorization, including status and errors.

```
dictionary ApplePayPaymentAuthorizationResult {
	required short status;
	sequence <ApplePayError> errors;
	ApplePayPaymentOrderDetails orderDetails;
};
```

## Overview

Use the <doc://com.apple.documentation/documentation/ApplePayontheWeb/apple-pay-status-codes> values of [`STATUS_SUCCESS`](/documentation/ApplePayontheWeb/ApplePaySession/STATUS_SUCCESS) to indicate when the payment authorization succeeds, or [`STATUS_FAILURE`](/documentation/ApplePayontheWeb/ApplePaySession/STATUS_FAILURE), along with the errors, when it fails.

## Topics

### Providing authorization results

[`required short status;`](/documentation/ApplePayontheWeb/ApplePayPaymentAuthorizationResult/status)

The status code for the authorization result.

[`sequence <ApplePayError> errors;`](/documentation/ApplePayontheWeb/ApplePayPaymentAuthorizationResult/errors)

A list of custom errors to display on the payment sheet.

### Providing order details

[`ApplePayPaymentOrderDetails orderDetails;`](/documentation/ApplePayontheWeb/ApplePayPaymentAuthorizationResult/orderDetails)

Optional metadata for an order that the customer placed using this payment method.

[`dictionary ApplePayPaymentOrderDetails {
	required DOMString orderTypeIdentifier;
	required DOMString orderIdentifier;
	required DOMString webServiceURL;
	required DOMString authenticationToken;
};`](/documentation/ApplePayontheWeb/ApplePayPaymentOrderDetails)

A dictionary that contains metadata related to an order.



---

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)