If you're using Stripe in your Rails application to process payments or manage subscriptions, chances are you'll need to prepare your application to handle webhooks. Stripe uses webhooks (HTTP POST requests) to notify applications about events that happen in an account. In this post, I'll run through the process of preparing a Rails application to receive Stripe webhooks.
In a case where the structure of the CSV data requires some processing at the time of import you may want to consider processing it in the background. In this tutorial I will walk you through setting up an artisan command to process your import, and setting up a cron job to run the command in the background on your server.