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