Contents

jwsRepresentation

The transaction signed by the App Store, in JWS Compact Serialization format.

Declaration

var jwsRepresentation: String { get }

Mentioned in

Discussion

Use this JSON Web Signature (JWS) value to perform your own JWS verification on your server or on the device.

The jwsRepresentation is the same as the JWSTransaction that the App Store Server API returns and the JWSTransaction that you receive from App Store Server Notifications. The jwsRepresentation’s decoded payload contains two additional fields: deviceVerification and deviceVerificationNonce. Use these fields on the device to verify that the JWS information belongs to the device. For more information, see deviceVerificationID.

To verify the jwsRepresentation on your server, consider using the App Store Server Library function verifyAndDecodeTransaction, available in each language the library supports. For more information, see Simplifying your implementation by using the App Store Server Library.

See Also

Getting properties for transactions