Class ApplePaySessionRequest


  • public class ApplePaySessionRequest
    extends Object
    ApplePaySessionRequest
    • Constructor Detail

      • ApplePaySessionRequest

        public ApplePaySessionRequest()
    • Method Detail

      • getDisplayName

        public String getDisplayName()
        This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response.
        Returns:
        displayName
      • setDisplayName

        public void setDisplayName​(String displayName)
        This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response.
        Parameters:
        displayName -
      • getDomainName

        public String getDomainName()
        The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop.
        Returns:
        domainName
      • setDomainName

        public void setDomainName​(String domainName)
        The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop.
        Parameters:
        domainName -
      • getMerchantIdentifier

        public String getMerchantIdentifier()
        Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response.
        Returns:
        merchantIdentifier
      • setMerchantIdentifier

        public void setMerchantIdentifier​(String merchantIdentifier)
        Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response.
        Parameters:
        merchantIdentifier -
      • equals

        public boolean equals​(Object o)
        Return true if this ApplePaySessionRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static ApplePaySessionRequest fromJson​(String jsonString)
                                               throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of ApplePaySessionRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ApplePaySessionRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to ApplePaySessionRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of ApplePaySessionRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException