<!--
{
  "availability" : [

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

# ApplePayPayment

The result of authorizing a payment request that contains payment information.

```
dictionary ApplePayPayment {
	required ApplePayPaymentToken token;
	ApplePayPaymentContact billingContact;
	ApplePayPaymentContact shippingContact;
};
```

## Overview

Data in [`ApplePayPaymentToken`](/documentation/ApplePayontheWeb/ApplePayPaymentToken) is encrypted. Billing and shipping contact data are not encrypted.

## Topics

### Payment token

[`required ApplePayPaymentToken token;`](/documentation/ApplePayontheWeb/ApplePayPayment/token)

The encrypted information for an authorized payment.

[`dictionary ApplePayPaymentToken {
	required ApplePayPaymentMethod paymentMethod;
	DOMString transactionIdentifier;
	JSON paymentData;
};`](/documentation/ApplePayontheWeb/ApplePayPaymentToken)

An object that contains the user’s payment credentials.

[`dictionary ApplePayPaymentMethod {
	DOMString displayName;
	DOMString network;
	ApplePayPaymentMethodType type;
	ApplePayPaymentPass paymentPass;
	ApplePayPaymentContact billingContact;
};`](/documentation/ApplePayontheWeb/ApplePayPaymentMethod)

A dictionary that describes an Apple Pay payment method.

[`enum ApplePayPaymentMethodType`](/documentation/ApplePayontheWeb/ApplePayPaymentMethodType)

A string that represents the type of the payment method.

[`dictionary ApplePayPaymentPass {
	required DOMString primaryAccountIdentifier;
	required DOMString primaryAccountNumberSuffix;
	DOMString deviceAccountIdentifier;
	DOMString deviceAccountNumberSuffix;
	required ApplePayPaymentPassActivationState activationState;
};`](/documentation/ApplePayontheWeb/ApplePayPaymentPass)

A provisioned payment card for Apple Pay payments.

### Billing and shipping contacts

[`ApplePayPaymentContact shippingContact;`](/documentation/ApplePayontheWeb/ApplePayPayment/shippingContact)

The shipping contact selected by the user for this transaction.

[`ApplePayPaymentContact billingContact;`](/documentation/ApplePayontheWeb/ApplePayPayment/billingContact)

The billing contact selected by the user for this transaction.

[`dictionary ApplePayPaymentContact {
	DOMString phoneNumber;
	DOMString emailAddress;
	DOMString givenName;
	DOMString familyName;
	DOMString phoneticGivenName;
	DOMString phoneticFamilyName;
	sequence <DOMString> addressLines;
	DOMString subLocality;
	DOMString locality;
	DOMString postalCode;
	DOMString subAdministrativeArea;
	DOMString administrativeArea;
	DOMString country;
	DOMString countryCode;
};`](/documentation/ApplePayontheWeb/ApplePayPaymentContact)

Contact information fields to use for billing and shipping contact information.



---

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)