pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
64 stars 116 forks source link

How to get Device Data while tokenizeCreditCard? #81

Open Safyian opened 2 years ago

Safyian commented 2 years ago

I need Device Data for Fraud Detection while sending Credit Card payment method bounce to my server but I don't find any other way for getting Device Data. Im not using dropin for credit card payment method bounce, I'm using BraintreeCreditCardRequest and then tokenizeCreditCard.

final reqCard = BraintreeCreditCardRequest( cardNumber: cardNumber.value.text, expirationMonth: expMonth.value.text, expirationYear: expYear.value.text, cvv: cardCVV.value.text, );

  BraintreePaymentMethodNonce result = await Braintree.tokenizeCreditCard(
    Constant.sandBoxTokenizationKey,
    reqCard,
  );

The result not include device data.

Is there any way to collect Device data on Android side?