alphabetworkers / alphabetworkersunion.org

Apache License 2.0
11 stars 21 forks source link

Reported issue with Plaid in production #157

Closed jonahbron closed 7 months ago

jonahbron commented 2 years ago

Per @realjenny , someone reported that they were unable to signup with Plaid. I ran a test myself, and it is replicatable. It seems we're configured incorrectly. Here's the log output:

{
  "outcome": "ok",
  "scriptName": "signup-worker",
  "exceptions": [],
  "logs": [
    {
      "message": [
        {
          "display_message": null,
          "documentation_url": "https://plaid.com/docs/?ref=error#invalid-input-errors",
          "error_code": "INVALID_PUBLIC_TOKEN",
          "error_message": "provided public token is for the wrong Plaid environment. expected \"sandbox\", got \"production\"",
          "error_type": "INVALID_INPUT",
          "request_id": "OH4CIiGhrxMEb6v",
          "suggested_action": null
        }
      ],
    },
 /* ............... */
  },
  "id": 0
}

Upon inspection of the ENV vars, we were configured to point to the sandbox API. However, changing that to production did not fix the issue. I think we don't have all production keys in place across front-end and back-end.

jonahbron commented 2 years ago

Ashok gave me access to the prod Plaid account and I re-set all of the keys. Unfortunately it seems that the Plaid account isn't connected to the Stripe account, because Stripe says that the payment token created by Plaid does not exist.

undefinedseance commented 2 years ago

this got fixed