File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,23 @@ Lemon Squeezy works differently than most of the other payment processors so it
7
7
8
8
## Creating Customers
9
9
10
- You can create a customer, which subscriptions belong to.
10
+ First, you tell Pay which payment processor to use:
11
11
12
12
``` ruby
13
13
# Set the payment processor
14
14
@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.
15
18
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
18
27
```
19
28
20
29
## Subscriptions
You can’t perform that action at this time.
0 commit comments