Mangopay / mangopay2-ruby-sdk

Ruby Gem for MANGOPAY
https://rubygems.org/gems/mangopay
MIT License
42 stars 38 forks source link

rails generator is not working #86

Closed GeoffTidey closed 7 years ago

GeoffTidey commented 7 years ago

running rails g mangopay:install CLIENT_ID CLIENT_NAME CLIENT_EMAIL (with correct parameters)

errors with: "undefined method `create' for MangoPay::Client:Class"

looks like it was removed in: https://github.com/Mangopay/mangopay2-ruby-sdk/commit/cb09f62179d199bcb988cd0e1f1f577233accac5#diff-3cc42c41d9e8a81e042a4695ea2ff3bc

I'll generate it manually for now.

BTW. there's also a small spelling mistake here https://github.com/Mangopay/mangopay2-ruby-sdk/blob/master/lib/generators/mangopay/install_generator.rb#L10 it should be your not you're

GeoffTidey commented 7 years ago

ha just seen https://github.com/Mangopay/mangopay2-ruby-sdk/issues/79 serves me right for looking at the code

hobailey commented 7 years ago

Thanks for the feedback - you can not infact create clients through the SDK any longer and this must be done via the site - we'll get this script updated to avoid confusion :-)