startBuyerVerificationFlow static method
Future
startBuyerVerificationFlow({
- required BuyerVerificationSuccessCallback onBuyerVerificationSuccess,
- required BuyerVerificationErrorCallback onBuyerVerificationFailure,
- required String buyerAction,
- required Money money,
- required String squareLocationId,
- required Contact contact,
- required String paymentSourceId,
Implementation
static Future startBuyerVerificationFlow(
{required BuyerVerificationSuccessCallback onBuyerVerificationSuccess,
required BuyerVerificationErrorCallback onBuyerVerificationFailure,
required String buyerAction,
required Money money,
required String squareLocationId,
required Contact contact,
required String paymentSourceId}) async {
_buyerVerificationSuccessCallback = onBuyerVerificationSuccess;
_buyerVerificationErrorCallback = onBuyerVerificationFailure;
var params = <String, dynamic>{
'buyerAction': buyerAction,
'money': _standardSerializers.serializeWith(Money.serializer, money),
'contact':
_standardSerializers.serializeWith(Contact.serializer, contact),
'squareLocationId': squareLocationId,
'paymentSourceId': paymentSourceId,
};
await _channel.invokeMethod('startBuyerVerificationFlow', params);
}