interceptBeforeOnline

open suspend fun interceptBeforeOnline(originalRequest: PoiRequest.ActionNew, cardReadExtract: CardReadExtract): PoiRequest.ActionNew?

After the card reading, intercept before online processing. Caller can provide a new (with some limitation) PoiRequest Limitation:

  • new request amount value and currency must be same as the original request

Behavior:

  • return null: no effect, use the original request

  • return PoiRequest.ActionNew: will process online with the new request (might have different profile/ acceptance tags, or extra fields)

  • throws: abort transaction flow, SDK will return as HeadlessError.AbortedManually(42_002)