Skip to content

Commit 2a88175

Browse files
committed
Update Lemon Squeezy docs. Closes #1103
1 parent fb468cc commit 2a88175

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/lemon_squeezy/1_overview.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@ Lemon Squeezy works differently than most of the other payment processors so it
77

88
## Creating Customers
99

10-
You can create a customer, which subscriptions belong to.
10+
First, you tell Pay which payment processor to use:
1111

1212
```ruby
1313
# Set the payment processor
1414
@user.set_payment_processor :lemon_squeezy
15+
```
16+
17+
Then you can create a [Checkout](https://docs.lemonsqueezy.com/api/checkouts/create-checkout) to let the user purchase a product.
1518

16-
# Create the customer on Lemon Squeezy
17-
@user.payment_processor.customer
19+
```ruby
20+
@user.payment_processor.checkout(variant_id: "xyz")
21+
```
22+
23+
Customers are lazy created, so they won't be created until you create a Checkout or ask for the Lemon Squeezy customer object through Pay.
24+
25+
```ruby
26+
@user.payment_processor.api_record
1827
```
1928

2029
## Subscriptions

0 commit comments

Comments
 (0)