summaryrefslogtreecommitdiff
path: root/wallee-c2ec/app/src/main/java/ch/bfh/habej2/wallee_c2ec/client/wallee/WalleeResponseHandler.kt
blob: 5419ce9f8c25e684c1fabd4fd92833bbcad993c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package ch.bfh.habej2.wallee_c2ec.client.wallee

import com.wallee.android.till.sdk.ResponseHandler
import com.wallee.android.till.sdk.data.TransactionResponse

class WalleeResponseHandler : ResponseHandler() {

    override fun authorizeTransactionReply(response: TransactionResponse?) {

        // TODO find out how to read the transaction id here....

        if (response == null) {
            // TODO
            return
        }

        response.transaction.metaData.get("id")
    }
}