checkout static method
Handle the checkout code data.
payload
is supposed to be the JSON object content that you created by invoking elepay's
creating code API.
An instance of ElepayResult will be returned to indicate the processing result.
Refere to ElepayResult for more details.
Implementation
static Future<ElepayResult> checkout(String payload) async {
var params = {"payload": payload};
var sdkResult = await _channel.invokeMethod("checkout", params);
sdkResult = Map<String, dynamic>.from(sdkResult);
return _processSdkResult(sdkResult);
}