Class C2bRegisterUrlRequest

java.lang.Object
io.github.openpaydev.mpesa.core.models.C2bRegisterUrlRequest

public final class C2bRegisterUrlRequest extends Object
Represents the request payload for registering the C2B confirmation and validation URLs.
  • Method Details

    • builder

    • toBuilder

    • getShortCode

      public String getShortCode()
      The short code of the organization receiving the payment.
    • getResponseType

      public C2bResponseType getResponseType()
      The default action to be taken if the validation URL is unreachable. M-Pesa will either complete or cancel the transaction.
    • getConfirmationUrl

      public String getConfirmationUrl()
      The URL that receives the confirmation of a successful transaction. This URL is hit after the transaction is completed.
    • getValidationUrl

      public String getValidationUrl()
      The URL that M-Pesa hits to validate the transaction before processing it. Your system should respond to this callback to either accept or reject the payment.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object