Class C2bRegisterUrlRequest.C2bRegisterUrlRequestBuilder
java.lang.Object
io.github.openpaydev.mpesa.core.models.C2bRegisterUrlRequest.C2bRegisterUrlRequestBuilder
- Enclosing class:
- C2bRegisterUrlRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()confirmationUrl(String confirmationUrl) The URL that receives the confirmation of a successful transaction.responseType(C2bResponseType responseType) The default action to be taken if the validation URL is unreachable.The short code of the organization receiving the payment.toString()validationUrl(String validationUrl) The URL that M-Pesa hits to validate the transaction before processing it.
-
Method Details
-
shortCode
The short code of the organization receiving the payment.- Returns:
this.
-
responseType
public C2bRegisterUrlRequest.C2bRegisterUrlRequestBuilder responseType(C2bResponseType responseType) The default action to be taken if the validation URL is unreachable. M-Pesa will either complete or cancel the transaction.- Returns:
this.
-
confirmationUrl
The URL that receives the confirmation of a successful transaction. This URL is hit after the transaction is completed.- Returns:
this.
-
validationUrl
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.- Returns:
this.
-
build
-
toString
-