Overview
Dwolla partners with Plaid to provide customers with bank account verification through Secure Exchange solution. Bank accounts are verified and linked with purpose-built exchanges between the Dwolla and Plaid platforms. While bank account verification is required before initiating an ACH transaction from a funding source, Dwolla clients are able to choose between Dwolla’s micro-deposit solution, Open Banking solution, other third-party data aggregators via Secure Exchange, such as Mastercard, MX, or, as we will discuss in further detail in this guide, Plaid.Prerequisites
Let’s first go over a few items you need to check off before you begin your integration.- Set up a Dwolla Production account, or a Dwolla Sandbox account if you’re still developing or testing your application.
- Set up a Plaid Production account, or a Plaid Sandbox account if you’re still developing or testing your application.
- Enable Dwolla’s Plaid integration in your Plaid account settings. If you need assistance with this step, reach out to your Account Manager with Plaid.
- Customize Plaid Link’s account selection to only be “enabled for one account.”
Integrate with Plaid
Once you have your Dwolla and Plaid accounts set up, you can begin the integration process. For the following steps, we will make use of two Plaid libraries: Plaid Link (more specifically, react-plaid-link), Plaid Link’s React bindings, and plaid-node, Plaid’s server-side Node SDK.Create a Link Token
In order to instantiate a Plaid Link instance — in our case, by usingusePlaidLink
— you first need to have your server generate a Link token. To learn more about what properties are available, check out Plaid’s Create Link Token documentation.
Though you are welcome to use additional Plaid products and customize the LinkTokenCreateRequest
object to your liking, a couple properties are required in order to be compatible with Dwolla:
country_codes
must include “US” (or an enumerative equivalent), as Dwolla is currently only able to transact with U.S.-based bank accounts.products
must include “auth” (or an enumerative equivalent), as Dwolla will fetch the associated account and routing number using Plaid Auth.
Instantiate Plaid Link
Once your client environment has made the necessary requests to your server to fetch the Link token, you can now give that token tousePlaidLink
with an additional onSuccess
handler.
The onSuccess
handler will be responsible for proxying client requests to your server to, at a minimum,
- Exchange the public token for an access token.
- Exchange the access token and account ID for a processor token.
- Create a funding source using the processor token.
Exchange Public Token for Access Token
Now that you have your public token, you will need to exchange it for an access token back in your server environment. An access token is an intermediate step between a public token and a processor token, and can be generated in a one-line JavaScript function using Plaid’s Node SDK.Exchange Access Token and Account ID for Processor Token
Continuing in your server environment, once you have an access token and an account ID (account ID is returned by Plaid Link in your client environment), you can now create a processor token! Similar to how you created a Link token, when creating a processor token, you must specify Dwolla (“dwolla”) as the processor. If you are using Plaid’s SDK, you can use an enumerative equivalent, such asProcessorTokenCreateRequestProcessorEnum.Dwolla
.
Integrate with Dwolla
Before creating a funding source, your application will need to create a Customer. If you have not created a customer yet, check out our Create a Customer API reference, or our Create a Business Verified Customer or Create a Personal Verified Customer guides. Once you have a customer set up, we will use Dwolla’s server-side Node SDK to create the exchange.Create an Exchange
The creation of an exchange serves as a “hand-shake” between Dwolla and Plaid. To create the exchange for a customer, you will supply two required properties:_link
and token
. In the API request, _link
defines a JSON object containing an exchange partner link relation, and token
defines the Plaid processor token that was generated in the previous step.
In the following function, once a response is received, it will extract the location
header value, which is the fully-qualified URL specifying the resource location of your exchange resource.
Create a Funding Source
To create a verified funding source for a customer, you will supply three required properties:_link
, bankAccountType
, and name
. In the API request, _link
defines a JSON object containing an exchange link relation, bankAccountType
defines the type of the bank account: checking or savings, and name
defines an arbitrary name that you or your user will assign to the funding source.
In the following function, once a response is received, it will extract the location
header value, which is the fully-qualified URL specifying the resource location of your funding source.
Frequently Asked Questions
Q: How does Dwolla integrate with Plaid when a processor_token is received?
Q: How does Dwolla integrate with Plaid when a processor_token is received?
processor_token
value is passed in via an exchange resource. With this information, Dwolla executes a call to Plaid’s API to securely retrieve the account and routing number and creates a funding source on your behalf. Upon success, Dwolla returns a URL that represents the new funding source via the location
response header.Q: Does Plaid work if the user has two-factor authentication (2FA) enabled on their bank account?
Q: Does Plaid work if the user has two-factor authentication (2FA) enabled on their bank account?
Q: If Plaid's access_token and processor_token changes or expires, what happens to the Dwolla funding source?
Q: If Plaid's access_token and processor_token changes or expires, what happens to the Dwolla funding source?
processor_token
has already been used to create a funding source, then the token changing or expiring will not affect it; Dwolla only uses the processor_token
to fetch the account and routing number from Plaid and then immediately discards it.However, if you have not yet used the
processor_token
to create a funding source, then you will need to follow Plaid’s process for creating a new token before sending it over to Dwolla.Q: Can I use Plaid's micro-deposit solution instead of Dwolla's?
Q: Can I use Plaid's micro-deposit solution instead of Dwolla's?
Q: Will Dwolla's funding source status change if Plaid's account status changes (e.g., micro-deposit verification)?
Q: Will Dwolla's funding source status change if Plaid's account status changes (e.g., micro-deposit verification)?
Q: Why did a transfer fail with an ACH return (e.g. R04 - Invalid Account Number) if the associated bank was successfully added and verified through Plaid?
Q: Why did a transfer fail with an ACH return (e.g. R04 - Invalid Account Number) if the associated bank was successfully added and verified through Plaid?
To resolve this issue, please advise the user to contact their bank or visit their bank’s website and enable TANs for future transfers. In some cases, it might be necessary to re-add the Plaid verified bank using a new processor token.