Worklog: the ‘Pay’ Gem and Stripe Integration Rails 6

Photo by rupixen.com on Unsplash

Error: Stripe Needs API key

Solution:

EDITOR=”code — wait” rails credentials:edit --environment=development

Error: Configuring Custom Line Items

Solution:

  • The product_data is a property of the price_data.
  • Configuring what property goes where is something you can find on the API docs. They have the docs nested in the manner you are to nest them.
  • Not a Valid URL — I thought it was because of the session success or cancel urls, but it was actually because the images in the images array need to be valid URLs.

--

--

--

Seattle Software Engineer. A collector of new skills, with a fondness for all things sushi.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Spiral Matrix IV

How should I start my Engineering journey as a CS student?

Getting Started with Collisions in Unity

SEARCH ALGORITHMS IN ARTIFICIAL INTELLIGENCE

Binary search in java programming

Binary-search-in-java-programming

How to Build a Multi-tenant application with Django Rest Framework! — Part II

Dr. Capybara, or How I Learned to Stop Worrying and Love the TDD

READ/DOWNLOAD@?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Roman Turner

Roman Turner

Seattle Software Engineer. A collector of new skills, with a fondness for all things sushi.

More from Medium

Upgrade Ruby on Rails Project 101 — Phase 2 (Webpack)

RabbitMQ with Ruby

Live Chat Implemented with Action Cable in a React/Rails Application

Rails Today