payGoods method

  1. @override
Future<void> payGoods(
  1. String goodsId,
  2. int inputPrice,
  3. String orderId, {
  4. PayCallback? callback,
  5. String? goodsName,
  6. String? goodsDesc,
})
override

Implementation

@override
Future<void> payGoods(
  String goodsId,
  int inputPrice,
  String orderId, {
  PayCallback? callback,
  String? goodsName,
  String? goodsDesc,
}) async {
  _payCallback = callback;
  await methodChannel.invokeMethod<void>('payGoods', {
    'goodsId': goodsId,
    'inputPrice': inputPrice,
    'orderId': orderId,
    'goodsName': goodsName,
    'goodsDesc': goodsDesc,
  });
}