finishPayment static method

Future<void> finishPayment(
  1. {@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');
  }
}