首页 > 解决方案 > 如何使用flutter adyen支付网关?

问题描述

  try {
  dropInResponse = await FlutterAdyen.choosePaymentMethod(
      paymentMethodsPayload: _paymentMethod.toString(),
      merchantAccount: merchantAccount,
      publicKey: pubKey,
      amount: 12.0,
      currency: 'EUR',
      iosReturnUrl: scheme,
      reference: ref,
      shopperReference: userID,
      allow3DS2: true,
      testEnvironment: true,
      storePaymentMethod: true,
      shopperInteraction: ShopperInteraction.ContAuth,
      recurringProcessingModel: RecurringProcessingModels.CardOnFile);
} on PlatformException catch (e) {
  dropInResponse = 'PlatformException. ${e.message}';
} on Exception {
  dropInResponse = 'Exception.';
}

我成功地得到了 dropIn 响应,但是任何人都可以帮助我。

标签: flutter

解决方案


推荐阅读