# Paypal gateways

Configuring a PayPal payment gateway for a market lets you safely process payments through [PayPal](https://developer.paypal.com/home).

To create a PayPal gateway choose a meaningful name that helps you identify it within your organization and connect your PayPal account by adding your [client ID and secret](https://developer.paypal.com/api/rest/) (contact [PayPal's support](https://www.paypal.com/us/smarthelp/home) if you are not sure about the requested data).

<details>

<summary>How-to</summary>

Check the related [guide](https://docs.commercelayer.io/developers/v/how-tos/payments/paypal) to learn more on how Commerce Layer handles the server-side part of the integration process with PayPal.

</details>


---

# 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.commercelayer.io/core-api-reference/paypal_gateways.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.
