-
- All Implemented Interfaces:
public interface ITransactionListener
Callback interface that propagates back status changes during a transaction execution. Important: The callback occurs in a different thread.
-
-
Method Summary
Modifier and Type Method Description abstract void
transactionCompleted(@NonNull() Transaction transaction)
Indicates that a transaction has been completed. abstract void
transactionFailed(@NonNull() Transaction transaction, @NonNull() PaymentError error)
Indicates that a transaction has not been executed successfully. void
brandsValidationRequestSucceeded(@NonNull() BrandsValidation brandsValidation)
Indicates that the brands validation request has been completed. void
brandsValidationRequestFailed(@NonNull() PaymentError error)
Indicates that the brands validation request has not been completed successfully. void
paymentConfigRequestSucceeded(@NonNull() CheckoutInfo checkoutInfo)
Indicates that a checkout configuration request has been completed. void
paymentConfigRequestFailed(@NonNull() PaymentError error)
Indicates that a checkout configuration request has not been executed successfully. void
imagesRequestSucceeded(@NonNull() ImagesRequest imagesRequest)
Indicates that request for the images has been completed. void
imagesRequestFailed()
Indicates that request for the images has not been executed successfully. void
binRequestSucceeded(@NonNull() Array<String> brands)
Indicates that request for bin service to get payment brands for provided card bin has been completed. void
binRequestFailed()
Indicates that request for bin service to get payment brands for provided card bin has not been executed successfully. -
-
Method Detail
-
transactionCompleted
abstract void transactionCompleted(@NonNull() Transaction transaction)
Indicates that a transaction has been completed.
- Parameters:
transaction
- The executed transaction
-
transactionFailed
abstract void transactionFailed(@NonNull() Transaction transaction, @NonNull() PaymentError error)
Indicates that a transaction has not been executed successfully. The error contains more info about what went wrong.
- Parameters:
transaction
- The executed transactionerror
- The error that occurred PaymentError
-
brandsValidationRequestSucceeded
void brandsValidationRequestSucceeded(@NonNull() BrandsValidation brandsValidation)
Indicates that the brands validation request has been completed. This callback is optional.
- Parameters:
brandsValidation
- The brands validation request instance BrandsValidation
-
brandsValidationRequestFailed
void brandsValidationRequestFailed(@NonNull() PaymentError error)
Indicates that the brands validation request has not been completed successfully. This callback is optional.
- Parameters:
error
- The error that occurred PaymentError
-
paymentConfigRequestSucceeded
void paymentConfigRequestSucceeded(@NonNull() CheckoutInfo checkoutInfo)
Indicates that a checkout configuration request has been completed. This callback is optional.
- Parameters:
checkoutInfo
- The checkout info instance CheckoutInfo
-
paymentConfigRequestFailed
void paymentConfigRequestFailed(@NonNull() PaymentError error)
Indicates that a checkout configuration request has not been executed successfully. The error contains more info about what went wrong. This callback is optional.
- Parameters:
error
- The error that occurred PaymentError
-
imagesRequestSucceeded
void imagesRequestSucceeded(@NonNull() ImagesRequest imagesRequest)
Indicates that request for the images has been completed. This callback is optional.
- Parameters:
imagesRequest
- The images request instance ImagesRequest
-
imagesRequestFailed
void imagesRequestFailed()
Indicates that request for the images has not been executed successfully. This callback is optional.
-
binRequestSucceeded
void binRequestSucceeded(@NonNull() Array<String> brands)
Indicates that request for bin service to get payment brands for provided card bin has been completed. This callback is optional.
- Parameters:
brands
- The array of payment brands
-
binRequestFailed
void binRequestFailed()
Indicates that request for bin service to get payment brands for provided card bin has not been executed successfully. This callback is optional
-
-
-
-