LorenzoXavier

Joined

540 Experience
5 Lessons Completed
0 Questions Solved

Activity

Posted in How to use Stripe Checkout in Rails Discussion

Hi again,

I'm not entirely sure what changed, but I managed to get the
checkout_success_url
checkout_cancel_url

working by using:

current_user.set_payment_processor :stripe
    current_user.id
      @checkout_session = current_user.payment_processor.checkout(
        mode: "subscription",
        line_items: "price_1KLwi9D3EGSDPVxu1I3KCLOp",
        success_url: checkout_success_url,
        cancel_url: checkout_cancel_url
      )

and creating the views files to go with these.

I'm in ore of your skills, and certainly appreciate your dedication to the community

Posted in How to use Stripe Checkout in Rails Discussion

Hi Chris,

Thank you for making this movie. It was great.

I've been trying to figure out a way of doing the following, but failing:

when using the current_user.payment_processor.checkout(), is there a way of using,
success_url: checkout_success_url,
cancel_url: checkout_cancel_url

as you would when using:
@session = Stripe::Checkout::Session.create() ?

Posted in Recurring events with the ice_cube gem Discussion

Hi Chris. This episode was exactly what I was looking for, thank you.
I've followed a few of your tutorials now and find them great.

I have been trying to figure out a way of marking individual instances of a recurring task as complete.
Has anyone tried/succeeded with this?

Posted in How to use Bootstrap with Webpack & Rails Discussion

Hi Chris,

This video is great, thank you very much.
I am having an issue, I wonder if you can help.
Sorry if it's an obvious thing, but I am relatively new and can't find the answer to fix it.

```Processing by PagesController#home as HTML
Rendering pages/home.html.erb within layouts/application
Rendered pages/home.html.erb within layouts/application (Duration: 0.0ms | Allocations: 5)
[Webpacker] Compiling...
[Webpacker] Compilation failed:
[webpack-cli] Failed to load '/Users/Lorenzo/code/LorenzoXavier/planned_maintenance/config/webpack/development.js'
[webpack-cli] TypeError: Cannot read property 'plugins' of undefined
at Object. (/Users/Lorenzo/code/LorenzoXavier/planned_maintenance/config/webpack/environment.js:3:13)
at Module._compile (/Users/Lorenzo/code/LorenzoXavier/planned_maintenance/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (/Users/Lorenzo/code/LorenzoXavier/planned_maintenance/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object. (/Users/Lorenzo/code/LorenzoXavier/planned_maintenance/config/webpack/development.js:3:21)
at Module._compile (/Users/Lorenzo/code/LorenzoXavier/planned_maintenance/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)

Completed 500 Internal Server Error in 2130ms (ActiveRecord: 0.0ms | Allocations: 5754)```

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.