Class RegisterPaymentResponse

java.lang.Object
com.skava.core.validation.OutputModel
com.skava.paymentapp.model.response.RegisterPaymentResponse
All Implemented Interfaces:
Serializable

public class RegisterPaymentResponse extends com.skava.core.validation.OutputModel
This class represents a response to register a payment in the application. It contains all the necessary information required to register a payment, such as response code, error message, session URL, request id, success URL, cancel URL, fail URL, pending URL, error URL, and custom properties. Field explanations:
- code (ResponseCode): The response code to be returned. Example: "PAYMENT_REGISTERED"
- errormessage (String): The error message to be returned in case of an error. Example: "BAD_REQUEST"
- sessionUrl (String): The session URL provided by the payment provider.
- requestId (String): The unique identifier of the request.
- successUrl (String): The URL to be redirected to upon successful payment.
- cancelUrl (String): The URL to be redirected to upon cancellation of payment.
- failUrl (String): The URL to be redirected to upon failure of payment.
- pendingUrl (String): The URL to be redirected to upon pending payment.
- errorUrl (String): The URL to be redirected to upon error in payment process.
- customProperties (Map<String, Object>): Custom properties associated with the item.

Example JSON response payload:

 {
   "code": "PAYMENT_REGISTERED",
   "errormessage": null,
   "sessionUrl": "85ff4cd1-740a-4289-9afa-e5d0ab09d787",
   "requestId": "fca8cec4-7535-41e8-9f69-057b30858595",
   "successUrl": "<DOMAIN + VALID_PATH>/fca8cec4-7535-41e8-9f69-057b30858595/success/transaction",
   "cancelUrl": "<DOMAIN + VALID_PATH>/fca8cec4-7535-41e8-9f69-057b30858595/cancel/transaction",
   "failUrl": "<DOMAIN + VALID_PATH>/fca8cec4-7535-41e8-9f69-057b30858595/fail/transaction",
   "pendingUrl": "<DOMAIN + VALID_PATH>/fca8cec4-7535-41e8-9f69-057b30858595/pending/transaction",
   "errorUrl": "<DOMAIN + VALID_PATH>/fca8cec4-7535-41e8-9f69-057b30858595/error/transaction",
   "customProperties": {}
 }
 

Author:
Infosys Equinox
See Also:
  • Constructor Details

    • RegisterPaymentResponse

      public RegisterPaymentResponse()