# PayPal Payment Gateway

## Guideline for Adding PayPal as a Payment Gateway in Artha Job Board

To set up PayPal as a payment gateway in your Artha Job Board, you need three critical pieces of information:

1. PayPal Client ID
2. PayPal Client Secret
3. PayPal Webhook Secret

Follow the steps below to complete the integration:

**Step 1: Create a PayPal Developer Account**

1. ​[Go to PayPal Developer.](https://developer.paypal.com/dashboard/)​
2. Log in using your PayPal account or create a new account if you don’t have one.

**Step 2: Create a PayPal App**

1. Navigate to Dashboard > My Apps & Credentials.
2. Under REST API Apps, click Create App.
3. Enter a name for your app (e.g., "Artha Job Board Integration") and click Create App.
4. Once the app is created, you will see:

* Client ID: Copy this for later use.
* Client Secret: Click "Show" and copy it for later use.

**Step 3: Configure the PayPal App**

1. Under the app settings, configure the Return URL or Redirect URL (if required by your Artha Job Board).

Example: <https://yourdomain.com/payment/return>.

2. Enable Webhook Events:
   1. Scroll down to Webhook Events.
   2. Add a webhook URL that your Artha Job Board will use to listen for payment events. Example: <https://yourdomain.com/webhook/paypal>.

**Step 4: Obtain Webhook Secret**

1. After adding the webhook URL, PayPal will generate a Webhook ID.
2. Save this Webhook ID in your system to receive event notifications.
3. Generate and copy the Webhook Secret from your PayPal settings. This will be used to verify incoming webhook requests.

**Step 5: Submit the Details to Artha Support**\
1\. Once you have gathered the following information:

* PayPal Client ID
* PayPal Client Secret
* PayPal Webhook Secret

\
2\. Follow the following steps

{% content-ref url="/pages/CRgCQpVpNXSy5FVXaYpA" %}
[Payment Integration](/admin/manage-portal/app-center/payment-integration.md)
{% endcontent-ref %}

**Step 6: Test the Integration**

1. After receiving confirmation from the Artha support team, test the PayPal integration.
2. Perform a test transaction to verify:

* Payment is processed successfully.
* Notifications (via webhooks) are handled correctly by the system.

**Step 7: Go Live**

1. Once testing is complete, confirm the integration with Artha Support.
2. Begin accepting live transactions via PayPal on your Job Board Software.

Important Notes

* Ensure secure storage of the Client Secret and Webhook Secret to prevent unauthorized access.
* Use HTTPS for webhook URLs to enhance security.
* For any issues or questions during the integration process, contact <support@arthajobboard.com>.

By following these steps, you can successfully integrate PayPal as a payment gateway into your Artha Job Board.


---

# 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.arthajobboard.com/admin/manage-portal/app-center/payment-integration/paypal-payment-gateway.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.
