Coder Social home page Coder Social logo

vinsol-spree-contrib / spree-account-recurring Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 66.0 152 KB

Spree extension to manage recurring payments/subscriptions using Stripe Payment Gateway

License: BSD 3-Clause "New" or "Revised" License

Ruby 71.66% JavaScript 2.40% CSS 0.08% HTML 25.86%

spree-account-recurring's People

Contributors

adhirajgautam avatar nishant-cyro avatar praveendhawan avatar priyank-gupta avatar satish avatar shivamvinsol avatar tanmay3011 avatar uditmittal90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spree-account-recurring's Issues

Update credit card information

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?

How to eliminate uninitialized constant Spree::User (NameError)

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.

Renewal date

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!

uninitialized constant User::Subscription

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"

Param is missing or the value is empty: subscription

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!

back from stripe

When user not paid or cancell directly in stripe, are there same way to cancel him or update in spree subscriptions?

Unsubscribe error

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"}

Recurring plans should be an option for regular Spree products

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!

Setting Up Provider

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.