# Setup Payment Gateway

#### To set up the payment gateway with GoAffPro, follow the steps given below:

To set up the payment gateway, go to the **Extras** section in the **Settings** tab of the GoAffPro admin panel.

<figure><img src="/files/SbOqWj7hF2CzmfGZ4K7G" alt=""><figcaption><p>Settings > Extras</p></figcaption></figure>

Here, go to the Membership fees option

![Membership fees](/files/-MeP6swibz3RtgBUJER1)

Now, click on **Setup**.

![Click on Setup](/files/-MeP8isrDTBMLgCVM02z)

This will open up the Choose a payment gateway in window.

![Choose a payment gateway](/files/-MeP9ChADWrYD8qqq6RA)

Here, select PayPal.

![Select PayPal](/files/-MeP9fNwgryQCQnb1dkT)

This will open up the Setup PayPal Payment Gateway section.

![Setup PayPal Payment Gateway](/files/-MHptCjuXivzrKfElmbq)

Here, click on the PayPal My Apps link.

![PayPal My Apps](/files/-MHptgFpMPEHkVg2pW5L)

This will open up the PayPal developer dashboard.

![PayPal developer dashboard](/files/-MHpuXihGP_-QWLLGNN3)

Now, click on **Live**.&#x20;

![Click on Live](/files/-MHpv3HvwYy6rdvaI2Wu)

Now, click on **Create app**.

![Click on Create app](/files/-MHpvcHTGcvoZLGxEJPx)

After this, enter the name of the app.

![Enter the name of the app](/files/-MYlmeL6K72pMDuyKPk7)

Select "Merchant" in the App Type option.

![Select "Merchant" option ](/files/-MYlnRO2pNp7YDhvlKq-)

Now, click on **Create App**.

![Click on Create App](/files/-MYlnslh0yVS6mwmwIBo)

This will open up Live API credentials.

![Live API credentials](/files/-MHpxS3RexPe7Rfapke7)

Now, uncheck the "Payouts" option in the Live App Settings section.

![Uncheck the "Payouts" option](/files/-MHpxy7cPFj9GVPVQMGM)

After this, click on **Save**.

![Click on Save](/files/-MHpyQVO9-FFiXtVtRFb)

Click on **Continue**.

![Click on Continue](/files/-MHpz_6TbuI6AVGYQaUy)

Now, copy the Client ID.

![Copy the Client ID](/files/-MHq-2fRcZa6o6oUI0s0)

Paste the Client ID in the Setup PayPal Payment Gateway section.

![Paste the Client ID](/files/-MHqGzsUdpSVO3D7VdgH)

After this, click on **Show** for the secret.

![Click on Show](/files/-MHq-XDjTVOFF_RKFltE)

Now, copy the secret.

![Copy the secret](/files/-MHqkZEucb7nu6FXtk4u)

After this, paste the secret in the Setup PayPal Payment Gateway section.

![Paste the secret](/files/-MHqHbPGrTB8uthgbhHQ)

Finally, click on **Save**.

![Click on Save](/files/-MHqLbJkM_d4m8X66djO)

PayPal payment gateway will now be connected.&#x20;

![](/files/-MePAzm7uXe5rWQGrD81)

{% embed url="<https://www.youtube.com/watch?v=wqGAF03m2qA>" %}
Setup Payment Gateway
{% endembed %}


---

# 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.goaffpro.com/program-settings/extra-settings/setup-membership-plans/setup-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.
