Initiate a flow as VAA - AEVI-AppFlow/pos-android-sdk GitHub Wiki
In general, POS applications are responsible for initiating flows and requests. There are however certain scenarios where a value added service may be required to do this in order to meet certain requirements. The most common example is where a loyalty app might be the first point of interaction with a customer where they identify themselves. In order to pass this information onto a payment flow (without using bespoke integrations), the loyalty app can initiate a zero based amounts payment with associated customer data. The POS application will then be called in the PRE_FLOW
stage where it can perform its normal function and update the Payment
model with relevant data before the flow continues.
Ensure that you have communicated with AEVI before attempting to support this use case, as it requires specific flows and a POS app that supports this scenario.
The advice and rules outlined in Implementing POS Apps generally apply here as well, with a few limitations;
- Only the following fields may be set:
Customer
,cardToken
,additionalData
and the mandatoryflowType
/flowName
- The
Amounts
must be set to 0 (new Amounts(0, "XXX")
)
Contact AEVI for more details for this use case.