# PayPal

{% hint style="info" %}
To setup paypal payment gateway you must have valid developer or live account in this guide we will setup paypal developer account
{% endhint %}

Visit the link [https://developer.paypal.com/](https://developer.paypal.com/home)\
and click on the login to dashboard from top right blue button&#x20;

<div align="left"><figure><img src="/files/hHcd2VOYgi2yT7Nh87Gq" alt="" width="563"><figcaption></figcaption></figure></div>

On login page add your login details and if you don't have one please create new account.&#x20;

<div align="left"><figure><img src="/files/hWT8sG1Az2k9LmJUZnCM" alt="" width="563"><figcaption><p> </p></figcaption></figure></div>

Click on the **Apps & Credentials** from your dashboard

<div align="left"><figure><img src="/files/Zj693stUvAA6EyomYwdk" alt="" width="563"><figcaption></figcaption></figure></div>

Click on the button **Create App** if you not have created any app before&#x20;

<div align="left"><figure><img src="/files/hjRkjN0BWWVOXXeYQFlu" alt="" width="563"><figcaption></figcaption></figure></div>

Name your new app and make sure to select as a **Merchant** from the selection option&#x20;

<div align="left"><figure><img src="/files/phDsluOLRYkKWqcKScyG" alt="" width="563"><figcaption></figcaption></figure></div>

Copy your Client ID then login to your website as admin and navigate to paypal settings&#x20;

<div align="left"><figure><img src="/files/djVvCSa1XXVorputRSAl" alt="" width="563"><figcaption></figcaption></figure></div>

Add your **Client ID** into the **Credential 1** input and make sure the status of gateway is active and also change the Dev Mode to **Development** instead **Production**&#x20;

<div align="left"><figure><img src="/files/cs5CQftVN63FmXrck4rj" alt="" width="563"><figcaption></figcaption></figure></div>

Now go back to your paypal account and scroll down on the **Apps and Credentials** page to get email account for payment and testing.&#x20;

<div align="left"><figure><img src="/files/lvKAs4yNWwSIpXw5bNM4" alt="" width="563"><figcaption></figcaption></figure></div>

Use this email and your password while you make the payment after bookings on your website. to double check and test the integration is working fine. \
\
Once the test has been passed please turn your developer account to live and also under the admin paypal settings change the dev move to production. and that's it

If you feel or found any issues please feel free to contact our support and we will be happy to assist you further.&#x20;


---

# 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.phptravels.com/payments/paypal.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.
