Testing Stripe transaction: NoMethodError (undefined method `address' for nil:NilClass)

Trying to get Stripe payments working I’m getting an error. Here’s an excerpt from the logs:

{
“method”:“POST”,
“path”:"/en/listings/637516/initiated",
“format”:"/",
“controller”:“PreauthorizeTransactionsController”,
“action”:“initiated”,
“status”:500,
“error”:“NoMethodError: undefined method `address’ for nil:NilClass”,
“duration”:2225.66,
“view”:0.0,
“db”:71.32,
“params”:{ …

I did run the “create” and “provision” commands in the Rails console when I set up the marketplace. But I’ll say this, initially I had a community with id=1 but then I imported a data dump from a hosted Sharetribe marketplace (changing the id to something else). I tried running those commands again with the new id. The first was successful, the second returned an error.

Any help is appreciated!

In case anyone else runs into this in the future…

I had manually marked my account “approved” in the community_members table (since I didn’t have email service up and running yet), but the checkout was checking to see if my email was confirmed in the emails table instead.

Once I added a confirmation date and set the confirmation_token value to NULL in that table, it started working.