salkuadrat / fxendit

Using Xendit in Flutter
https://pub.dev/packages/fxendit
MIT License
7 stars 14 forks source link

MissingPluginException(No implementation found for method createSingleToken on channel fxendit #5

Open yogithesymbian opened 3 years ago

yogithesymbian commented 3 years ago
  void createSingleUseToken() async {
    XCard card = XCard(
      creditCardNumber: '4111111111111111',
      creditCardCVN: '123',
      expirationMonth: '09',
      expirationYear: '2021',
    );

    TokenResult result = await xendit.createSingleUseToken(
      card,
      amount: 75000,
      shouldAuthenticate: true,
      onBehalfOf: '',
    );

    if (result.isSuccess) {
      tokenId = result.token?.id;
      print('Token ID: ${result.token?.id}');
    } else {
      print(
          'SingleUseToken Error: ${result.errorCode} - ${result.errorMessage}');
    }
  }
salkuadrat commented 2 years ago

Hi @yogithesymbian

iOS version is not supported yet. Feel free to contribute.