setupWithManualExecute abstract method

Future<String> setupWithManualExecute(
  1. String sessionId,
  2. MFGooglePayRequest googlePayRequest, {
  3. dynamic onSessionUpdated(
    1. String sessionId
    )?,
  4. dynamic onError(
    1. MFError
    )?,
})

Setup Google Pay with Manual execution mode using MFGooglePayLauncher

This mode gets the Google Pay token first, then you manually execute the payment. Use this when you need full control over the payment flow.

Callbacks:

  • onSessionUpdated: Called when session is updated with the Google Pay token
  • onError: Called if an error occurs during token generation

Returns the updated session ID after setup completes

Implementation

Future<String> setupWithManualExecute(
    String sessionId, MFGooglePayRequest googlePayRequest,
    {Function(String sessionId)? onSessionUpdated,
    Function(MFError)? onError});