Closed benwr closed 10 months ago
Yeah, thanks for catching that. Care to create a PR to update the readme?
heres a PR to explain the var better in the readme: https://github.com/libninjacom/plaid-rs/pull/14/files
I was just stuck on this same thing for a bit, happy to make docs better :)
Thanks. It'd be good to update the library to be more consistent, I just haven't had the time.
With the latest version of the library (8.x), this is fixed. PLAID_ENV takes one of sandbox
, development
, and production
.
Hi - it's possible that I've misunderstood something about this crate, but my current understanding is that
PLAID_ENV
needs to be a URL (or else you get an inscrutableunwrap
error from deep inside HttpClient). This is fine, but doesn't match the plaid quickstart (in which thePLAID_ENV
variable should be set to one ofsandbox
,development
, orproduction
).If I've understood this situation correctly, I think it would make sense to do one of the following:
PLAID_BASE_URI
)1 and 2 would be breaking changes; probably 3 is easiest. In some extremely strict sense, 4 is also a breaking change, but I think in practice it would only prevent runtime crashes (since
sandbox
,development
, andproduction
aren't valid base URIs)