Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Plaid Funding Source for a Customer - High Level Request - Does not work #69

Closed
andrewlaunchsite opened this issue Jun 3, 2023 · 0 comments · Fixed by #71
Closed
Assignees
Labels
bug Something isn't working

Comments

@andrewlaunchsite
Copy link

andrewlaunchsite commented Jun 3, 2023

Hello @jcoon97

I'm trying to create a Plaid Funding Source for a Customer using a 'high level request'. It does not work, since routingNumber, accountNumber, and other unrelated and unnecessary fields, are not nullable. Therefore, when passing in only the customerId, plaidToken, and name (as in the documentation), your code throws IllegalArgumentException. It's expecting routingNumber, accountNumber, etc. to be non-null.

The signature for the FundingSourcesApi createForCustomer is:

fun createForCustomer( customerId: String, routingNumber: String, accountNumber: String, bankAccountType: BankAccountType, name: String, plaidToken: String? = null, channels: List<FundingSourceChannel>? = null, onDemandAuthorizationId: String? = null, verified: Boolean? = null, idempotencyKey: String? = null ): FundingSource

Yet, in the documentation,

dwolla.fundingSources.createForCustomer( customerId = "707177c3-bf15-4e7e-b37c-55c3898d9bf4", plaidToken = "processor-sandbox-161c86dd-d470-47e9-a741-d381c2b2cb6f", name = "Jane Doe's Checking" )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants