README.md in moneytree-rails-0.1.0 vs README.md in moneytree-rails-0.1.1

- old
+ new

@@ -1,18 +1,25 @@ # 🚧 WORK IN PROGRESS 🚧 - [ ] OAuth -- [ ] Cards -- [ ] Customers -- [ ] Payments -- [ ] Refunds + - [ ] Controller actions + - [ ] Scopes + - [ ] Square + - [ ] Stripe + - [ ] Braintree +- [ ] Moneytree models + - [ ] Payment gateway, belongs to account + - [ ] Cards + - [ ] Customers + - [ ] Payments + - [ ] Refunds - [ ] Notifications # Moneytree 💵 🌴 [![Actions Status](https://github.com/kieranklaassen/moneytree/workflows/build/badge.svg)](https://github.com/kieranklaassen/moneytree/actions) -[![Gem Version](https://badge.fury.io/rb/moneytree.svg)](https://badge.fury.io/rb/moneytree) +[![Gem Version](https://badge.fury.io/rb/moneytree-rails.svg)](https://badge.fury.io/rb/moneytree-rails) 🔥 A powerful, simple, and extendable payment engine for rails, centered around transactional payments. 💵 🌴 Moneytree is a rails engine to add multi-PSP payments to your app by extending your own models. It brings the following functionality with almost no work on your end: @@ -46,11 +53,11 @@ ### Manual Installation Add the latest version of Moneytree to your gem Gemfile by running: ```bash -$ bundle add moneytree +$ bundle add moneytree-rails $ bundle install $ bundle exec moneytree init ``` Or your can use environment variables: @@ -109,5 +116,21 @@ ## Code of Conduct Everyone interacting in the Moneytree project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kieranklaassen/moneytree/blob/master/CODE_OF_CONDUCT.md). + +rails g model payment_gateway psp_credentials:text moneytree_psp:integer account:references{polymorphic} + +owner t.string :name t.text :psp_credentials t.integer :moneytree_psp + +rails g model orders t.string :description t.string :remote_identifier t.references :customer t.references :account + +rails g model transactions t.decimal :amount t.decimal :app_fee_amount t.integer :status t.integer :type t.string +:remote_identifier t.string :currency_code t.string :psp_error t.integer :moneytree_psp t.references :account +t.references :order t.references :card + +rails g model customers t.string :first_name t.string :last_name t.string :email t.string :remote_identifier t.integer +:moneytree_psp t.references :account + +rails g model cards t.string :card_brand t.string :last_4 t.integer :expiration_month t.integer :expiration_year +t.string :cardholder_name t.string :fingerprint t.integer :moneytree_psp t.references :customer t.references :account