Configuration
First, you will need to create a Lemon Squeezy. account. Once you have created your account, you will need to get your credentials from Lemon Squeezy. In the Admin Panel and under “Settings” click on “Payment Providers”. You will be redirected to the payment providers settings page. Click on “Lemon Squeezy” and using the toggle “is active” you can enable/disable the payment provider. (Don’t forget to click “Save” after you make any changes). Once you enable Lemon Squeezy, you will need to configure the credentials for it. To do that, click on the payment provider you want to configure, then click on “Edit credentials”. You will be redirected to the payment provider credentials page. You will need to copy some values from your Lemon Squeezy account to your application to be able to connect it. To do that please follow the following steps: To integrate Lemon Squeezy with your application, you need to do the following steps:- Login to Lemon Squeezy Dashboard.
- On the left menu, click on “Settings” > “API”. Click on the ”+” sign on the right to create a new API key. Give the API key a name and click “Create API Key”. Copy the generated key into the form in the field called “API key”.
- On the same page, on the left menu, click on “Settings” > “Stores”. Copy the store id (“#xxxxx”) without the # into the “Store ID” field.
-
On the same page, on the left menu, click on “Settings” > “Webhooks”. Click on ”+” to create a new webhook and enter the URL below.
- Generate a new webhook signing secret and copy it into the form in the field called “Signing Secret” and also into the “Signing secret” field in the Lemon Squeezy Webhook creation form.
-
You can use LastPass to generate a secure webhook signing secret.
order_createdorder_refundedsubscription_createdsubscription_updatedsubscription_cancelledsubscription_resumedsubscription_expiredsubscription_pausedsubscription_unpausedsubscription_payment_failedsubscription_payment_successsubscription_payment_recoveredsubscription_payment_refundedsubscription_plan_changed
TIP: All the above steps are also available to you inside your admin panel on the right hand side of the credentials page as shown in the image above.