Class PaymentProcessorResponse
java.lang.Object
com.skava.apppaymentplugin.model.response.PaymentProcessorResponse
- All Implemented Interfaces:
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.
- 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 Summary
ConstructorsConstructorDescriptionPaymentProcessorResponse
(String errorcode, String errormessage, String confirmationcode, long confirmationtime, String properties) Constructor to initiate the members except card details. -
Method Summary
-
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 responseerrormessage
- The errormessage that needs to be set in payment responseconfirmationcode
- The confirmationcode that needs to be set in payment responseconfirmationtime
- The confirmationtime that needs to be set in payment responseproperties
- The properties that needs to be set in payment response
-