Open yogithesymbian opened 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}'); } }
Hi @yogithesymbian
iOS version is not supported yet. Feel free to contribute.