Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more
LorenzoXavier
Joined
Activity
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
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()
?
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?
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)```