Dwolla_V2: implementation questions

(Luis Mojica) #1


Based on the discussion from my previous thread

The following code is the prototype I’m trying to implement:

I have the following questions:

  1. (Line 32) Are there any risks to create a client for every request? Should I use a singleton?
  2. (Line 33) Is this a correct way to create a token?
  3. (Line 34) How to tell if “$refreshToken” was successfully exchanged against the API?
  4. (Line 39) How to get the token values from $refreshToken?
  5. (Line 40) How to get the funding sources from $refreshToken?

Thanks in advance for any help you can provide, I will appreciate any suggestions.

Dwolla_V2: how to configure the gem?