stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Support Dashlane Payment method autofill

Open pablogdcr opened this issue 3 years ago • 0 comments

Describe the bug I'm using the CardField component to let the users enter their credit card information. With a payment manager installed on Android, like Dashlane for example, you can autofill the credit card information.

All the fields seem well filled. But in fact, in the object, the last4 and the brand attributes are missing, and the completed attribute is false. If I try to do a setup intent, I'm getting the error "Card details not complete".

To Reproduce Steps to reproduce the behavior:

  1. Install a payment method manager (ex: Dashlane) on an Android phone and configure a payment method.
  2. Set Dashlane as the autofill service you want to use on your phone
  3. Open your app with a CardField component, and autofill your payment information thanks to Dashlane
  4. All the fields are fulfilled, but if you try to do a setup intent then you will get the error "Card details not complete"

Expected behavior When auto-filling the credit card method, all the information should be saved and the onCardChange function should return an object with all the attributes fulfilled.

Screenshots Screenshot_20211103-145026 Screenshot_20211103-145040 Screenshot_20211103-145044

 LOG  {"brand": null, "complete": false, "expiryMonth": 11, "expiryYear": 34, "last4": null}

Desktop (please complete the following information):

  • OS: macOS Big Sur v11.5.2

Smartphone (please complete the following information):

  • Device: OnePlus 6T
  • OS: Android 10 - OxygenOS 10.3.9

Additional context @stripe/stripe-react-native: v0.2.3

pablogdcr avatar Nov 03 '21 14:11 pablogdcr