Class MobilePaymentMethodSpecificInput

java.lang.Object
com.onlinepayments.domain.MobilePaymentMethodSpecificInput

public class MobilePaymentMethodSpecificInput extends Object
  • Constructor Details

    • MobilePaymentMethodSpecificInput

      public MobilePaymentMethodSpecificInput()
  • Method Details

    • getAuthorizationMode

      public String getAuthorizationMode()
      Determines the type of the authorization that will be used. Allowed values:
      • FINAL_AUTHORIZATION - The payment creation results in an authorization that is ready for capture. Final authorizations can't be reversed and need to be captured for the full amount within 7 days.
      • PRE_AUTHORIZATION - The payment creation results in a pre-authorization that is ready for capture. Pre-authortizations can be reversed and can be captured within 30 days. The capture amount can be lower than the authorized amount.
      • SALE - The payment creation results in an authorization that is already captured at the moment of approval.

      Only used with some acquirers, ignored for acquirers that do not support this. In case the acquirer does not allow this to be specified the authorizationMode is 'unspecified', which behaves similar to a final authorization.

    • setAuthorizationMode

      public void setAuthorizationMode(String value)
      Determines the type of the authorization that will be used. Allowed values:
      • FINAL_AUTHORIZATION - The payment creation results in an authorization that is ready for capture. Final authorizations can't be reversed and need to be captured for the full amount within 7 days.
      • PRE_AUTHORIZATION - The payment creation results in a pre-authorization that is ready for capture. Pre-authortizations can be reversed and can be captured within 30 days. The capture amount can be lower than the authorized amount.
      • SALE - The payment creation results in an authorization that is already captured at the moment of approval.

      Only used with some acquirers, ignored for acquirers that do not support this. In case the acquirer does not allow this to be specified the authorizationMode is 'unspecified', which behaves similar to a final authorization.

    • withAuthorizationMode

      public MobilePaymentMethodSpecificInput withAuthorizationMode(String value)
      Determines the type of the authorization that will be used. Allowed values:
      • FINAL_AUTHORIZATION - The payment creation results in an authorization that is ready for capture. Final authorizations can't be reversed and need to be captured for the full amount within 7 days.
      • PRE_AUTHORIZATION - The payment creation results in a pre-authorization that is ready for capture. Pre-authortizations can be reversed and can be captured within 30 days. The capture amount can be lower than the authorized amount.
      • SALE - The payment creation results in an authorization that is already captured at the moment of approval.

      Only used with some acquirers, ignored for acquirers that do not support this. In case the acquirer does not allow this to be specified the authorizationMode is 'unspecified', which behaves similar to a final authorization.

    • getDecryptedPaymentData

      public DecryptedPaymentData getDecryptedPaymentData()
      The payment data if you do the decryption of the encrypted payment data yourself.
    • setDecryptedPaymentData

      public void setDecryptedPaymentData(DecryptedPaymentData value)
      The payment data if you do the decryption of the encrypted payment data yourself.
    • withDecryptedPaymentData

      public MobilePaymentMethodSpecificInput withDecryptedPaymentData(DecryptedPaymentData value)
      The payment data if you do the decryption of the encrypted payment data yourself.
    • getEncryptedPaymentData

      public String getEncryptedPaymentData()
      The payment data if we will do the decryption of the encrypted payment data. Typically you'd use encryptedCustomerInput in the root of the create payment request to provide the encrypted payment data instead.
      • For Apple Pay, the encrypted payment data can be found in property data of the PKPayment.token.paymentData property.
    • setEncryptedPaymentData

      public void setEncryptedPaymentData(String value)
      The payment data if we will do the decryption of the encrypted payment data. Typically you'd use encryptedCustomerInput in the root of the create payment request to provide the encrypted payment data instead.
      • For Apple Pay, the encrypted payment data can be found in property data of the PKPayment.token.paymentData property.
    • withEncryptedPaymentData

      public MobilePaymentMethodSpecificInput withEncryptedPaymentData(String value)
      The payment data if we will do the decryption of the encrypted payment data. Typically you'd use encryptedCustomerInput in the root of the create payment request to provide the encrypted payment data instead.
      • For Apple Pay, the encrypted payment data can be found in property data of the PKPayment.token.paymentData property.
    • getEphemeralKey

      public String getEphemeralKey()
      Ephemeral Key A unique generated key used by Apple to encrypt data.
    • setEphemeralKey

      public void setEphemeralKey(String value)
      Ephemeral Key A unique generated key used by Apple to encrypt data.
    • withEphemeralKey

      public MobilePaymentMethodSpecificInput withEphemeralKey(String value)
      Ephemeral Key A unique generated key used by Apple to encrypt data.
    • getPaymentProduct320SpecificInput

      public MobilePaymentProduct320SpecificInput getPaymentProduct320SpecificInput()
      Object containing information specific to Google Pay. Required for payments with product 320.
    • setPaymentProduct320SpecificInput

      public void setPaymentProduct320SpecificInput(MobilePaymentProduct320SpecificInput value)
      Object containing information specific to Google Pay. Required for payments with product 320.
    • withPaymentProduct320SpecificInput

      public MobilePaymentMethodSpecificInput withPaymentProduct320SpecificInput(MobilePaymentProduct320SpecificInput value)
      Object containing information specific to Google Pay. Required for payments with product 320.
    • getPaymentProductId

      public Integer getPaymentProductId()
      Payment product identifier - Please see Products documentation for a full overview of possible values.
    • setPaymentProductId

      public void setPaymentProductId(Integer value)
      Payment product identifier - Please see Products documentation for a full overview of possible values.
    • withPaymentProductId

      public MobilePaymentMethodSpecificInput withPaymentProductId(Integer value)
      Payment product identifier - Please see Products documentation for a full overview of possible values.
    • getPublicKeyHash

      public String getPublicKeyHash()
      Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information.
    • setPublicKeyHash

      public void setPublicKeyHash(String value)
      Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information.
    • withPublicKeyHash

      public MobilePaymentMethodSpecificInput withPublicKeyHash(String value)
      Public Key Hash A unique identifier to retrieve key used by Apple to encrypt information.
    • getRequiresApproval

      public Boolean getRequiresApproval()
      • true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API
      • false = the payment does not require approval, and the funds will be captured automatically
    • setRequiresApproval

      public void setRequiresApproval(Boolean value)
      • true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API
      • false = the payment does not require approval, and the funds will be captured automatically
    • withRequiresApproval

      public MobilePaymentMethodSpecificInput withRequiresApproval(Boolean value)
      • true = the payment requires approval before the funds will be captured using the Approve payment or Capture payment API
      • false = the payment does not require approval, and the funds will be captured automatically