Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pay-rails/pay
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Nov 19, 2024
2 parents a4d86fd + 3a5580c commit 145db5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/3_customers.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ Only one `Pay::Customer` can be the default which is used for `payment_processor

## Retrieving a Customer object from the Payment Processor

For Paddle Billing and Lemon Squeezy, using the `customer` method will create a new customer on the payment processor.
For Paddle Billing and Lemon Squeezy, using the `api_record` method will create a new customer on the payment processor.

If the `processor_id` is already set, it will retrieve the customer from the payment processor and return the object
directly from the API. Like so:

```ruby
@user.payment_processor.customer
@user.payment_processor.api_record
#=> #<Stripe::Customer>
#=> #<Paddle::Customer>
#=> #<LemonSqueezy::Customer>
Expand Down

0 comments on commit 145db5e

Please sign in to comment.