finishPayment static method
- {@required PaymentResult result}
Implementation
static Future<void> finishPayment({@required PaymentResult result}) async {
if (result == PaymentResult.success) {
await _channel.invokeMethod('closeWithSuccess');
} else {
await _channel.invokeMethod('closeWithError');
}
}