# Payments \[Paddle]

Subscriptions Payments are supported out of the box in LaunchStack, all you need to do it's add your plans inside the file config/launchstack.php and set up your .env file.

.env

```
# Paddle
PADDLE_SANDBOX=true
PADDLE_VENDOR_ID=
PADDLE_VENDOR_AUTH_CODE=
PADDLE_PUBLIC_KEY=""

# Plans
PADDLE_PRICE_ID_TIER_01=8844
PADDLE_PRICE_ID_TIER_02=8855
PADDLE_PRICE_ID_TIER_03=8866
```

launchstack.app

```php
'billing' => [
    'plans' => [
        [
            'name' => 'Tier 1',
            'price' => 9,
            'paddleId' => env('PADDLE_PRICE_ID_TIER_01'),
            'trialDays' => 7,
            'description' => "Description of plan",
            'features' => [
                'Feature 1',
                'Feature 2',
                'Feature 3',
                'Feature 4'
            ]
        ],
        // your plans
    ]
]
```

Some valid credit cards for testing, more info at [Paddle Documentation](https://developer.paddle.com/getting-started/c052e9e8d265f-working-with-the-paddle-sandbox#test-cards).

**Valid card without 3DS**

```
Card: 4242 4242 4242 4242
Date: Any future date
CVV: Any 3 digits
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.launchstack.app/backend/payments-paddle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
