Skip to content

Commit

Permalink
Documents how to use default processor (pay-rails#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjavdev authored Jun 6, 2022
1 parent e462766 commit decd103
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/3_customers.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ This creates a `Pay::Customer` record in the database that keeps track of the pa

The `fake_processor` is restricted by default so users can't give themselves free access to your application.

Alternatively, you can set a default processor for all users.

```ruby
class User < ApplicationRecord
pay_customer default_payment_processor: :stripe
end
```

## Payment Processor Associations

After setting the payment processor, your model will have a `payment_processor` they can use to create charges, subscriptions, etc.
Expand Down

0 comments on commit decd103

Please sign in to comment.