Class PaymentResponse

java.lang.Object
com.clover.remote.client.messages.BaseResponse
com.clover.remote.client.messages.PaymentResponse
Direct Known Subclasses:
AuthResponse, IncrementPreauthResponse, PreAuthResponse, SaleResponse, VoidPaymentResponse

public class PaymentResponse extends BaseResponse
Base reponse use for callbacks that contain payments. Sale, Auth & PreAuth
  • Constructor Details

    • PaymentResponse

      public PaymentResponse(boolean success, ResultCode result)
      Constructor
      Parameters:
      success - If true then the requested operation succeeded
      result - The result of the requested operation
  • Method Details

    • setPayment

      public void setPayment(com.clover.sdk.v3.payments.Payment payment)
      Set the field value
      Parameters:
      payment - The payment from the sale
    • getPayment

      public com.clover.sdk.v3.payments.Payment getPayment()
      Get the field value
      Returns:
      The payment from the sale
    • isSale

      public boolean isSale()
      Check to see if the payment was processed as a sale
      Returns:
      true if processed as a sale
    • isAuth

      public boolean isAuth()
      Check to see if the payment was processed as an auth
      Returns:
      true if processed as an auth
    • isPreAuth

      public boolean isPreAuth()
      Check to see if the payment was processed as a pre-auth
      Returns:
      true if processed as a pre-auth
    • setSignature

      public void setSignature(com.clover.common2.Signature2 signature)
      Set the field value
      Parameters:
      signature - signature collected for the payment
    • getSignature

      public com.clover.common2.Signature2 getSignature()
      Get the field value
      Returns:
      signature collected for the payment