Dwolla Actions

Server actions for Dwolla payment processing integration.

createFundingSource

Creates a Dwolla funding source using a Plaid processor token.

const fundingSourceUrl = await createFundingSource({
  customerId: "customer_123",
  fundingSourceName: "Checking Account",
  plaidToken: "processor_token"
})

createTransfer

Initiates a transfer between two funding sources.

const transferUrl = await createTransfer({
  sourceFundingSourceUrl: "source_url",
  destinationFundingSourceUrl: "dest_url",
  amount: "50.00"
})

Type Definitions

interface CreateFundingSourceOptions {
  customerId: string
  fundingSourceName: string
  plaidToken: string
  _links?: any
}

interface TransferParams {
  sourceFundingSourceUrl: string
  destinationFundingSourceUrl: string
  amount: string
}

interface AddFundingSourceParams {
  dwollaCustomerId: string
  processorToken: string
  bankName: string
}