Class CreateApplePaySessionRequest


  • public class CreateApplePaySessionRequest
    extends Object
    CreateApplePaySessionRequest
    • Constructor Detail

      • CreateApplePaySessionRequest

        public CreateApplePaySessionRequest()
    • 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)
      • 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)
      • 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)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to CreateApplePaySessionRequest
      • fromJson

        public static CreateApplePaySessionRequest fromJson​(String jsonString)
                                                     throws IOException
        Create an instance of CreateApplePaySessionRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreateApplePaySessionRequest
        Throws:
        IOException - if the JSON string is invalid with respect to CreateApplePaySessionRequest
      • toJson

        public String toJson()
        Convert an instance of CreateApplePaySessionRequest to an JSON string
        Returns:
        JSON string