Class LinkApplePaymentData


  • public class LinkApplePaymentData
    extends java.lang.Object
    LinkApplePaymentData

    Contains the encrypted payment data.

    Refer to [Apple's documentation](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymenttoken/1916115-paymentdata) for more information.

    • Constructor Detail

      • LinkApplePaymentData

        public LinkApplePaymentData​(java.lang.String version,
                                    java.lang.String data,
                                    java.lang.String signature,
                                    ApplePayHeader header)
    • Method Detail

      • version

        public java.lang.String version()
        Specifies the encryption used for the payment token ("EC_v1" or "RSA_v1").
      • data

        public java.lang.String data()
        The encrypted, base64-encoded payment data.
      • signature

        public java.lang.String signature()
        A base64 encoded signature of the payment and header data.
      • header

        public ApplePayHeader header()
        Information needed to decrypt Apple Pay payment data.

        Refer to [Apple's documentation](https://developer.apple.com/documentation/passkit/payment-token-format-reference#Header-keys-and-values) for more information.

      • withVersion

        public LinkApplePaymentData withVersion​(java.lang.String version)
        Specifies the encryption used for the payment token ("EC_v1" or "RSA_v1").
      • withData

        public LinkApplePaymentData withData​(java.lang.String data)
        The encrypted, base64-encoded payment data.
      • withSignature

        public LinkApplePaymentData withSignature​(java.lang.String signature)
        A base64 encoded signature of the payment and header data.
      • withHeader

        public LinkApplePaymentData withHeader​(ApplePayHeader header)
        Information needed to decrypt Apple Pay payment data.

        Refer to [Apple's documentation](https://developer.apple.com/documentation/passkit/payment-token-format-reference#Header-keys-and-values) for more information.

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object