MissedResponseListener

Listener for missed responses. On Android, it is technically possible that the OS kills the app before the response is received. In that case, once the process gets recreated and you call TeyaAllInOneSDK, the missed responses will be delivered to this listener.

You should call TeyaAllInOneSDK soon after the process starts, like in the the Application's onCreate method.

Functions

Link copied to clipboard
abstract fun onMissedCustomReceiptResponse(customReceiptId: String, result: PrintStateDetails)

Called when the requesting app is killed before receiving the response, and the process gets recreated when the app resumes.

Link copied to clipboard
abstract fun onMissedPaymentResponse(eposTransactionId: String, finalState: PaymentStateDetails)

Called when the requesting app is killed before receiving the response, and the process gets recreated when the app resumes.

Link copied to clipboard
abstract fun onMissedReceiptResponse(gatewayTransactionId: GatewayTransactionId, result: PrintStateDetails)

Called when the requesting app is killed before receiving the response, and the process gets recreated when the app resumes.

Link copied to clipboard
abstract fun onMissedRefundResponse(gatewayPaymentId: GatewayPaymentId, result: RefundResultDetails)

Called when the requesting app is killed before receiving the response, and the process gets recreated when the app resumes.

Link copied to clipboard
abstract fun onMissedUnreferencedRefundResponse(eposTransactionId: String, finalState: PaymentStateDetails)

Called when the requesting app is killed before receiving the response, and the process gets recreated when the app resumes.