LitleXML <applepay> structure

Document created by gjsissons on Jul 25, 2016Last modified by gjsissons on Jul 26, 2016
Version 4Show Document
  • View in full screen mode

This section provides information about the changes to the LitleXML schema to allow you to submit the PKPaymentToken information (without decryption) in an Authorization/Sale transaction.

 

<xs:choice>
  <xs:element name="mpos" type="xp:mposType" />
  <xs:element name="card" type="xp:cardType" />
  <xs:element name="paypal" type="xp:payPal" />
  <xs:element name="token" type="xp:cardTokenType" />
  <xs:element name="paypage" type="xp:cardPaypageType" />
  <xs:element name="applepay" type="xp:applepayType" />
</xs:choice>


<xs:complexType name="applepayType">
  <xs:sequence>
  <xs:annotation><xs:documentation>
  payment data dictionary, Base64 encoded as a string
  Encrypted payment data.
  </xs:documentation></xs:annotation>
  <xs:element name="data" type="xs:string" />
  <xs:annotation><xs:documentation>
  header dictionary
  Additional version-dependent information used to decrypt and verify the payment.
  </xs:documentation></xs:annotation>
  <xs:element name="header" type="xp:applepayHeaderType" />
  <xs:annotation><xs:documentation>
  detached PKCS #7 signature, Base64 encoded as string
  Signature of the payment and header data.
  </xs:documentation></xs:annotation>
  <xs:element name="signature" type="xs:string" />
  <xs:annotation><xs:documentation>
  Version information about the payment token.
  </xs:documentation></xs:annotation>
  <xs:element name="version" type="xs:string" />
  </xs:sequence>
</xs:complexType>


<xs:complexType name="applepayHeaderType">
  <xs:annotation><xs:documentation>
  SHA-256 hash, hex encoded as a string
  Hash of the applicationData property of the original PKPaymentRequest.
  </xs:documentation></xs:annotation>
  <xs:element name="applicationData" type="xs:string" />
  <xs:annotation><xs:documentation>
  X.509 encoded key bytes, Base64 encoded as a string
  Ephemeral public key bytes.
  </xs:documentation></xs:annotation>
  <xs:element name="ephemeralPublicKey" type="xs:string" />
  <xs:annotation><xs:documentation>
  SHA-256 hash, Base64 encoded as a string
  Hash of the X.509 encoded public key bytes of the merchant's certificate.
  </xs:documentation></xs:annotation>
  <xs:element name="publicKeyHash" type="xs:string" />
  <xs:annotation><xs:documentation>
  hexadecimal identifier, as a string
  Transaction identifier, generated on the device.
  </xs:documentation></xs:annotation>
  <xs:element name="transactionId" type="xs:string" />
</xs:complexType>

 


Previous: Merchant Decryption of Apple Pay PKPayment Token

Next: Vantiv Mobile API for Apple Pay HTTPS POST Components

 

Return to: In-App for eCommerce

Attachments

    Outcomes