Class PayPalInfo


  • public class PayPalInfo
    extends Object
    PayPalInfo
    • Constructor Detail

      • PayPalInfo

        public PayPalInfo()
    • Method Detail

      • directCapture

        public PayPalInfo directCapture​(Boolean directCapture)
        Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
        Parameters:
        directCapture -
        Returns:
        the current PayPalInfo instance, allowing for method chaining
      • getDirectCapture

        public Boolean getDirectCapture()
        Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
        Returns:
        directCapture
      • setDirectCapture

        public void setDirectCapture​(Boolean directCapture)
        Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.
        Parameters:
        directCapture -
      • payerId

        public PayPalInfo payerId​(String payerId)
        PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
        Parameters:
        payerId -
        Returns:
        the current PayPalInfo instance, allowing for method chaining
      • getPayerId

        public String getPayerId()
        PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
        Returns:
        payerId
      • setPayerId

        public void setPayerId​(String payerId)
        PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
        Parameters:
        payerId -
      • subject

        public PayPalInfo subject​(String subject)
        Your business email address.
        Parameters:
        subject -
        Returns:
        the current PayPalInfo instance, allowing for method chaining
      • getSubject

        public String getSubject()
        Your business email address.
        Returns:
        subject
      • setSubject

        public void setSubject​(String subject)
        Your business email address.
        Parameters:
        subject -
      • equals

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

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

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

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