Git Product home page Git Product logo

recharge-api's People

Contributors

onerinas avatar sshaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

recharge-api's Issues

Unable to update charge_interval_frequency

Am getting the following error when trying to update the charge interval frequency on a subscription:

>> subscription.charge_interval_frequency = 1
=> 1
>> s.save
Recharge::RequestError: 400 - BAD REQUEST
	from /Users/me/.rvm/gems/ruby-2.2.3/gems/recharge-api-0.0.1/lib/recharge/http_request.rb:75:in `block in request'
	from /Users/me/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/net/http.rb:853:in `start'
	from /Users/me/.rvm/gems/ruby-2.2.3/gems/recharge-api-0.0.1/lib/recharge/http_request.rb:67:in `request'
	from /Users/me/.rvm/gems/ruby-2.2.3/gems/recharge-api-0.0.1/lib/recharge/http_request.rb:28:in `PUT'
	from /Users/me/.rvm/gems/ruby-2.2.3/gems/recharge-api-0.0.1/lib/recharge/http_request.rb:219:in `update'
	from /Users/me/.rvm/gems/ruby-2.2.3/gems/recharge-api-0.0.1/lib/recharge/classes.rb:216:in `save'
	from (irb):101
	from /Users/me/.rvm/rubies/ruby-2.2.3/bin/irb:15:in `<main>'

how to use rake tasks for webhook

i am confused about using your rake tasks for creating hooks.

-how can i call your tasks ?

  • where should i use these calls ? i cannot call them rake yourtask
    -how to pass the parameters, address and topic of hook ?

Security issue: no authentication for ReCharge customer portal

I've mentioned this previously in the Slack channel, but I'd like to flag this more publicly too. There doesn't appear to be any authentication happening for the ReCharge customer portal. So given someone's customer ID and nothing else (0-factor) I can gain full access to another customer's portal, allowing me to view personal information and even incur costs such as adding products to their subscription. This portal should be hooked in with Shopify's user authentication.

To reproduce, log in as a user to a Shopify store using ReCharge and access the customer portal. Copy the URL for this page, open a new incognito browser window and paste the URL. We can now access that user's account without ever having logged in. The customer ID is random and difficult to guess but could be easily leaked, so this is really not acceptable.

I would like to know when ReCharge intends on fixing this, as both my client and I consider this to be a serious concern.

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.