Use Dwolla’s SDK for Kotlin to build applications that interact with the Dwolla API to perform account-to-account payment functions.
dwolla-v2-kotlin
is an actively maintained client library for Java/Kotlin applications and is used to facilitate interactions with the Dwolla API. The source code is available on our GitHub page.
Dwolla
with key
and secret
replaced with the application key and secret that you fetched from one of the aforementioned links, respectively.
The best SDKs are not just simple; they’re intuitive. Developers would rather stay in the flow of their code than troubleshoot back-and-forth trying to figure out someone else’s code. Luckily, statically typed languages let us include information typically found in docs within type signatures. — Taking Our SDKs HigherWhile the low-level methods are all you need, high-level methods exist to make things easier. They embed information you would typically refer to the docs for in the SDK itself such as endpoints, request parameters, and response parameters. As of now, a subset of the Dwolla API has high-level methods available:
dwolla.accounts.*
dwolla.beneficialOwners.*
dwolla.businessClassifications.*
dwolla.customers.*
dwolla.documents.*
dwolla.fundingSources.*
dwolla.fundingSourcesTokens.*
dwolla.root.*
dwolla.events.*
dwolla.labels.*
dwolla.massPayments.*
dwolla.transfers.*
dwolla.webhooks.*
dwolla.webhookSubscriptions.*
get()
, post()
, and delete()
methods.
dwolla.get
dwolla.post
dwolla.delete
DwollaApiException
: Thrown when the Dwolla API returns an error response. This could occur
for a variety of reasons such as invalid request parameters.DwollaAuthException
: Thrown when an error occurs obtaining authenticating with the API. You should not encounter
this exception unless your Dwolla
key/secret are incorrect.DwollaException
: The base class other exceptions inherit from.app_key
and app_secret
build arguments in Dockerfile. Finally, you will need to build and run the Docker image. More information on this topic can be found on Docker’s website, or you can find some example commands below.