Interface PaymentListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonPaymentCanceled(PaymentRequest paymentRequest)onPaymentCanceled(PaymentRequest paymentRequest)callback function will be called once the payment process has been canceled.voidonPaymentCompleted(Transaction transaction)onPaymentCompleted(Transaction transaction)callback function will be called once the payment process has been completed.voidonPaymentError(PaymentRequest paymentRequest, Error error, java.lang.String errorReason)onPaymentError(PaymentRequest paymentRequest, Error error, String errorReason)callback function will be called once the cancel payment processPaymentClient.cancelPayment(PaymentRequest, PaymentListener)come to an error or process paymentPaymentClient.processPayment(PaymentRequest, PaymentListener)come to an error.voidonPaymentFormCanceled(PaymentRequest paymentRequest)onPaymentFormCanceled(PaymentRequest paymentRequest)will be invoked if payment form submission is canceled.voidonPaymentFormError(PaymentRequest paymentRequest, Error error)onPaymentFormError(PaymentRequest paymentRequest, Error error)will be invoked when an error occurs on payment form submission.voidonPaymentFormSubmitted(PaymentRequest paymentRequest)onPaymentFormSubmitted(PaymentRequest paymentRequest)callback function will be called once the payment form submission is successfully completed.
-
-
-
Method Detail
-
onPaymentFormSubmitted
void onPaymentFormSubmitted(PaymentRequest paymentRequest)
onPaymentFormSubmitted(PaymentRequest paymentRequest)callback function will be called once the payment form submission is successfully completed.- Parameters:
paymentRequest- - ReturnsPaymentRequest
-
onPaymentFormCanceled
void onPaymentFormCanceled(PaymentRequest paymentRequest)
onPaymentFormCanceled(PaymentRequest paymentRequest)will be invoked if payment form submission is canceled.- Parameters:
paymentRequest- - ReturnsPaymentRequest
-
onPaymentFormError
void onPaymentFormError(PaymentRequest paymentRequest, Error error)
onPaymentFormError(PaymentRequest paymentRequest, Error error)will be invoked when an error occurs on payment form submission. AErrorwill be provided .- Parameters:
paymentRequest- - ReturnsPaymentRequesterror- - A Error object which indicated the specific error. You can pass it intoError.getErrorMessage(Error)to get a description of the error.
-
onPaymentCompleted
void onPaymentCompleted(Transaction transaction)
onPaymentCompleted(Transaction transaction)callback function will be called once the payment process has been completed. At this time, the payment amount is charged as per the chosen payment method entered viaPaymentRequest- Parameters:
transaction-
-
onPaymentCanceled
void onPaymentCanceled(PaymentRequest paymentRequest)
onPaymentCanceled(PaymentRequest paymentRequest)callback function will be called once the payment process has been canceled.
-
onPaymentError
void onPaymentError(PaymentRequest paymentRequest, Error error, java.lang.String errorReason)
onPaymentError(PaymentRequest paymentRequest, Error error, String errorReason)callback function will be called once the cancel payment processPaymentClient.cancelPayment(PaymentRequest, PaymentListener)come to an error or process paymentPaymentClient.processPayment(PaymentRequest, PaymentListener)come to an error.
-
-