plaid / react-native-plaid-link-sdk

Plaid Link for React Native
MIT License
170 stars 119 forks source link

Account ids are missing on the account objects after successfully linking on IOS #254

Closed MariaTolstov closed 3 years ago

MariaTolstov commented 3 years ago

The problem

After successfully linking a card, the data from onSuccess callback is missing the account ids. When getting the same accounts using the api, the ids are there.

Screen Shot 2020-11-11 at 18 01 28

Environment

Plaid Link React Native e.g. 6.0.0
ReactNative Version e.g. 0.60.5
Occurs on Android e.g. no
Occurs on iOS yes
iOS Version e.g. 12
iOS Devices/Emulators e.g. iPhone 8
cloudmanic commented 3 years ago

Totally having this issue too. Any help would be amazing!

amytang0 commented 3 years ago

Hi, can you update to 6.0.3 and see if this repros still? Thanks!

caiokf commented 3 years ago

We are having the same issue:

Using

xcode Version 11.7 (11E801a)
"react-native": "0.62.2",
"react-native-plaid-link-sdk": "^5.0.0",

We had our plaid integration working until a few days ago. Without any changes to our codebase or installed modules, Plaid integration stopped working. We traced the issue to the data from a onSuccess callback no longer returning account ids and other account metadata once an account has successfully being linked. This problem was happening on android and ios.

Example response:

{"account": {"id": null, "mask": null, "name": null, "subtype": null, "type": null}, "account_id": null, "accounts": [{"id": null, "mask": "0000", "name": "Plaid Checking", "subtype": "checking", "type": "depository"}], "institution": {"institution_id": "ins_3", "name": "Chase"}, "link_session_id": "XXXX", "public_token": "public-sandbox-XXXX", "request_id": null}

Attempting to update plaid and ios Pod to versions:

"react-native-plaid-link-sdk": "^6.0.3",
pod 'Plaid', '~>2.0.6' 

This fixes android, but does not build the ios app because:

cp: /Users/<PROJECT>/ios/Pods/Plaid/ios/LinkKit.framework/prepare_for_distribution.sh: No such file or directory
/Users/caiokf/Library/Developer/Xcode/DerivedData/<APP>-axxlilyvzisqirbxxsejdqduosmv/Build/Intermediates.noindex/<APP>.build/Debug-iphonesimulator/QA.build/Script-E6061D2D24ECBF7F001DB1CD.sh: line 6: /Users/user/Library/Developer/Xcode/DerivedData/genoa-axxlilyvzisqirbxxsejdqduosmv/Build/Products/Debug-iphonesimulator/Flex - QA.app/Frameworks/LinkKit.framework/prepare_for_distribution.sh: No such file or directory
petecroaker commented 3 years ago

We've got the same issue, but it has been fine up until recently. Android still works fine, but with iOS, the account objects are missing ids.

We're using v4.01 with Plaid pod v1.1.35

We're not keen to update to v6 as it seems that this requires updating the minimum iOS version from 10 to 11.

AnkurGahtori2012 commented 3 years ago

we are using react-native-plaid-link-sdk version 3.2.0 facing the same issue with ios. onSuccess callback has account_id null only for IOS, but android returning the correct account_id.

dwh2427 commented 3 years ago

I have informed Plaid. I believe it was their oversight that they fixed this in iOS link and updated status.plaid.com without fixing the same for react native. Suggest you contact your account manager if you are having this issue as they can push an immediate fix for your account

MariaTolstov commented 3 years ago

Updating to react-native-plaid-link-sdk 6.0.3 fixed the issue for us.

AnkurGahtori2012 commented 3 years ago

Updating to react-native-plaid-link-sdk 6.0.3 fixed the issue for us.

@MariaTolstov Thanks for the update, but I am using react-native 0.60, react-native-plaid-link-sdk 6.0.3 is compatible with react-native ^0.61.3 at this moment I can't update the react-native version.

jeremyricketts commented 3 years ago

We consider this an urgently needed fix as we have an iOS app with wide distribution that is currently broken because of this bug.

juddblair commented 3 years ago

Hi y'all, super sorry for the problems you're having here - the root cause here is related to a bug in the < 1.1.38 iOS SDK that surfaced when we rolled out our redesign of Link late last week. A couple things:

  1. Please shoot me an email at jblair@plaid.com and we can put you back on our old designs and mitigate the issue.
  2. Upgrading to 1.1.38 on the iOS side will fix the issue, at which point you can let us know and we can move you back to new Link. You shouldn't have to upgrade the RN SDK if you're on 5.x.x or above, although we do have a major RN version coming out soon if you're looking to upgrade both.

Again, super sorry y'all.

petecroaker commented 3 years ago

Thanks @juddblair...updating to v5.01 with Plaid pod v1.1.38 fixed the issue!

AnkurGahtori2012 commented 3 years ago

Thanks @juddblair it worked for me. IOS 1.1.38 RN SDK 5.0.1 But now in case of registering an account using microDeposit method, I am not getting field "verification_status". With old environment I was getting "verification_status" with account data on onSuccess callback.

cloudmanic commented 3 years ago

So how do you upgrade to Plaid pod v1.1.38 ?