Class PaymentProcessorResponse

java.lang.Object
com.skava.apppaymentplugin.model.response.PaymentProcessorResponse
All Implemented Interfaces:
Serializable

public class PaymentProcessorResponse extends Object implements Serializable
This class represents a response from a third-party payment processor. It contains all the necessary information returned from the payment processor, such as error code, error message, confirmation code, confirmation time, properties, card details, and request id. Field explanations:
- errorcode (String): The error code. "NONE" indicates no error.
- errormessage (String): The error message. "NONE" indicates no error.
- confirmationcode (String): A unique identifier for the confirmation.
- confirmationtime (Long): The time of confirmation in milliseconds since the Unix Epoch.
- properties (String): Additional properties for the payment, represented as a JSON string.
  - property1 (String): The first property.
  - property2 (String): The second property.
- cardDetail (Object): Details of the card.
  - cardNumber (String): The card number, partially masked for security.
  - expiryMonth (String): The expiry month of the card.
  - expiryYear (String): The expiry year of the card.
  - cardType (String): The type of the card (e.g., VISA).
- requestId (String): A unique identifier for the request.

Example JSON response payload:

 {
   "errorcode": "NONE",
   "errormessage": "NONE",
   "confirmationcode": "CONF123",
   "confirmationtime": 1627545600000,
   "properties": "{\"property1\":\"value1\",\"property2\":\"value2\"}",
   "cardDetail": {
     "cardNumber": "411111******1111",
     "expiryMonth": "12",
     "expiryYear": "2025",
     "cardType": "VISA"
   },
   "requestId": "REQ123"
 }
 

Author:
Infosys Equinox
See Also:
  • Constructor Details

    • PaymentProcessorResponse

      public PaymentProcessorResponse(String errorcode, String errormessage, String confirmationcode, long confirmationtime, String properties)
      Constructor to initiate the members except card details. Card details is optional field.
      Parameters:
      errorcode - The errorcode that needs to be set in payment response
      errormessage - The errormessage that needs to be set in payment response
      confirmationcode - The confirmationcode that needs to be set in payment response
      confirmationtime - The confirmationtime that needs to be set in payment response
      properties - The properties that needs to be set in payment response