Skip to content

Commit

Permalink
Update 3_customers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 authored Nov 16, 2024
1 parent e5fbeba commit 3a5580c
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 3a5580c

Please sign in to comment.