vinsol-spree-contrib / spree-account-recurring Goto Github PK
View Code? Open in Web Editor NEWSpree extension to manage recurring payments/subscriptions using Stripe Payment Gateway
License: BSD 3-Clause "New" or "Revised" License
Spree extension to manage recurring payments/subscriptions using Stripe Payment Gateway
License: BSD 3-Clause "New" or "Revised" License
Is it possible for a user to update their credit card information some time after starting the subscription? Having a page for this is also necessary in order to configure reminder emails coming from Stripe. Or is there a page at Stripe that can be used for this?
I got this error 'uninitialized constant Spree::User (NameError)'.
When I install the gem like this
$ bundle exec rails g spree_account_recurring:install
Result is like this.
1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
/Users/takamizawanoriaki/vegewel/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:60:in `block in load_missing_constant': uninitialized constant Spree::User (NameError)
I understand the reason because this gem use Spree::User but I use custom User.
So how to switch User model to mine?
Thanks in advance.
We would like to display the renewal date to the user for each recurring plan. Searching through the repo I'm having trouble finding the date field reference for the Plan. How would you recommend accessing the renewal date?
Thanks for this great gem!
I get the following error when trying to run the install generator:
https://gist.github.com/dpmccabe/c53aeecc2b4c7b23e6c8
I'm using the 2-3-stable branch of all the Spree gems on a Rails 4.1.4 app with MRI 2.1.2 on a newly-created app. Is this a versioning issue?
When trying to subscribe to a plan, I see the following error:
uninitialized constant User::Subscription
Here is the relevant part of my User class:
has_many :orders, foreign_key: :user_id, class_name: "Spree::Order"
has_many :subscriptions, foreign_key: :user_id, class_name: "Spree::Subscription"
Hello I am trying to add option to user upgrade or downgrade to another plan and skip months, but I don't know how . Could you help me? thanks!
ActionController::ParameterMissing at /recurring/plans/1/subscriptions
param is missing or the value is empty: subscription
Params:
{"utf8"=>"✓", "authenticity_token"=>"kudXQ+zRe+Qn96OnSRxBYzftzUrP7zat6ZXhJnRdUHs=", "card_number"=>"4444 3333 2222 1111", "card_expiry"=>"01 / 16", "card_code"=>"123", "commit"=>"Subscribe", "action"=>"create", "controller"=>"spree/recurring/subscriptions", "plan_id"=>"1"}
However, in spree_account_recurring-1.1.2/app/controllers/spree/subscriptions_controller.rb:
53 def subscription_params
54 params.require(:subscription).permit(:email, :card_token)
55 end
So, naturally it's requiring the subscription, but it's not present in the params above.
Am I misunderstanding something, or is this currently in a broken state?
I'd appreciate any help, this gem is exactly what I need. I just need it to work.
Thanks!
When user not paid or cancell directly in stripe, are there same way to cancel him or update in spree subscriptions?
When clicking on "unsubscribe"
NameError in Spree::Recurring::SubscriptionsController#destroy
undefined local variable or method `plans_path' for #<Spree::SubscriptionsController:0x007fccdb8ca280>
spree_account_recurring (1.0.0) app/controllers/spree/subscriptions_controller.rb:24:in `destroy'
Rails.root: /Users/myapp
Parameters:
{"utf8"=>"✓",
"_method"=>"delete",
"authenticity_token"=>"/sPCIXIGdo/YGRp+4H32CnGhlosBzCBXi7TKnVByNaA=",
"button"=>"",
"plan_id"=>"2",
"id"=>"2"}
This is a fantastic extension and a much needed addition to the Spree Community. Thank you!
I think a proper addition to this extension would be for the recurring plan to be added to regular products. This would enable recurring products to have the same attributes and functionality of regular products like image, stock, etc.
As an example, it would be nice to be able to sell a single magazine for one price and then a 6 month subscription to that magazine for a discounted monthly price.
Thank you for considering this enhancement!
Can you go into more detail on how to create the Payment Method and/or Provider? This is probably the most important extension made for spree. I do not know how this doesn't come straight out of the box!
In your docs
Creating a Recurring Provider:
Create a recurring using Spree::Recurring::StripeRecurring Provider and save
Add secret key and public key provided by stripe to this recurring
In Spree docs
Adding your custom gateway
In order to make your custom gateway show up on backend list of available payment methods you
need to add it to spree config list of payment methods first. That can be achieved by adding the
following code in your spree.rb for example:
Rails.application.config.spree.payment_methods << YourCustomGateway
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.