#juneid_90104

1 messages · Page 1 of 1 (latest)

sacred cragBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

tame current
#

Hey there

#

Can you clarify what you mean by that?

supple fern
#

Let me explain

#

So in my app, I have implemented a pay-via-bank accounts option.

#

When the customer is about to pay I also show them already attached bank accounts to their stripe account.

tame current
#

This is for ACH Debit?

supple fern
#

But if the customer does not select from them and still add the same bank account asa new account stripe through exception that this bank account is already attached.

#

Let me share you the logs

supple fern
tame current
#

So you want to prevent them from adding the same bank account again?

supple fern
#

using plaid

supple fern
#

let me share the logs id

tame current
#

Then you can detach one of the duplicates if that is the case.

supple fern
#

req_EqabbejMU2TbkD

#

The issue is

#

i have the fingerprint for already attached accounts but how can i get the fingerprint of the account that i am going to validate

tame current
#

You can see the fingerprint right there in response to that request

supple fern
#

which request

tame current
#

Ah you are using Plaid you said

#

So yeah after they create their bank account via Plaid and before you actually charge it you can check

#

That is the point in your flow

supple fern
#

"btok_1Ocrh5CEgXQRZLhk0MeTEfYZ"

in my app i am only reciving this

#

how can i integrate to recive the whole response

#

var bankAccount = PlaidHelper.CreateStripeBankAccount(plaidToken.AccessToken,
bankAccountPurchaseObject.PlaidAccountId, msgs);

the last request was sent using this method

tame current
#

Yeah one sec. I'm refreshing myself with the Plaid flow since it is legacy now

supple fern
#

public class BankAccount : PlaidObject
{
public string StripeBankAccountToken { get; set; }

        internal static BankAccount FromDynamicObject(dynamic result)
        {
            return new BankAccount()
            {
                StripeBankAccountToken = (string)result["stripe_bank_account_token"],
                RequestId = (string)result["request_id"]
            };
        }
    }
tame current
#

Okay so you actually want to check after you attach to the Customer

supple fern
#

no

tame current
#

So the next step in your flow is to attach that Bank Token to a Customer right?

supple fern
#

before attaching

#

yes

#

next up is attachment

tame current
#

Right

#

So after you attach then you can inspect the bank account object

#

And see the fingerprint

supple fern
#

but the exception is thrown while attaching

tame current
#

What exception?

#

Ah wait a second

#

You should also be able to retrieve the Token

#

That is likely the best route actually

#

So before you attach to the Customer, retrieve the Token and you should see the full Bank Account object

supple fern
#

"btok_1Ocrh5CEgXQRZLhk0MeTEfYZ"

#

lets say i have this right now

#

as you can see it is in the log i shared with you

tame current
#

Yep

supple fern
#

how can i get th efull reponseusing this

tame current
supple fern
#

becaus eth eapi you shared is ecpecting id tok type

#

not b_tok

tame current
#

It works with both. The tok_xxxx is for a Card Token

supple fern
#

So upon using this i will be able to get fingerprint and match them with list that I already have and i can avoid re attaching

tame current
#

Yep

#

Recommend testing it out

supple fern
#

Thank you very much sir i will test it out

tame current
#

Sounds good