# Paypal

Add your PayPal account into your workspace. To find your PayPal integration go from your main dashboard and select Integrations from the left-hand menu. Then select PayPal from the listWe have **live mode** and **sandbox** available for you.

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FaJ73AdamX5E9bLbibOfM%2Ftempsnip.png?alt=media&#x26;token=d396e6cc-b382-46f7-88d9-9ded852b7411" alt=""><figcaption></figcaption></figure>

#### Login to your PayPal developer account <a href="#login-to-your-paypal-developer-account" id="login-to-your-paypal-developer-account"></a>

To fetch your credentials login to your PayPal account and then head to your [developer dashboard (opens new window)](https://developer.paypal.com/developer/applications)​You will get a similar overview like this;Be sure to select a mode first before creating an app to receive your credentials. Once pressed you will be taken to the page where you can create your app.After you created the app you will be taken to the page where you can fetch the client id, the client secret key and paste those into your workspace integration settings for PayPal.Optional could be to also add a redirection after payment. This allows you to point to a success flow inside your chatbot for example, or maybe a thank you page instead.

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FJkH47Ivwbx5tgl1U8Cep%2Fpaypal4.d8e276d5.png?alt=media&#x26;token=93c97fac-dcb9-43ac-a6f1-968a2f286f9c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FuwYLFnvxDt9JlGuyIZKy%2Fpaypal3.8a8aa6da.png?alt=media&#x26;token=8963a388-94e9-4f7b-bd99-3af93c29f70e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FJjAVfR24BzLdSQFamhBv%2Fpaypal2.7d7052d2.png?alt=media&#x26;token=4b51bf74-6dc2-44d9-8aa3-ba1b4b41133e" alt=""><figcaption></figcaption></figure>

#### Insert your PayPal details <a href="#insert-your-paypal-details" id="insert-your-paypal-details"></a>

Once you copied and pasted all the details in your workspace integration section press save and you should see a verified notification popping up in the top right corner.

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FbBpBYVOWu32IQZlJ5dpb%2Fpaypal5.318d0d5a.png?alt=media&#x26;token=d5ca073f-d62b-4b11-aac9-5a79f672ded7" alt=""><figcaption></figcaption></figure>

### How to use PayPal in your bot <a href="#how-to-use-paypal-in-your-bot" id="how-to-use-paypal-in-your-bot"></a>

Soon as your account has been connected you will have two ways of using this in your chatbots.First thing you need to make sure you have set PayPal as a payment method inside your e-commerce store settings.

#### Setting your payment method <a href="#setting-your-payment-method" id="setting-your-payment-method"></a>

From your main Dashboard go to [Ecommerce](https://help.flochat.ai/platform/introduction/ecommerce) on the left-hand menu.Scroll all the way down until you see the section called **Payment Method**. From here select PayPal as one of the methods for your ecommerce store. Don’t forget to press save to let the changes take effect.

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FtEsinVRnaMXgSVePIEzB%2Fpaypal7.226fd340.png?alt=media&#x26;token=bd5868f2-43a6-4b70-b024-71fe0587da22" alt=""><figcaption></figcaption></figure>

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FPqA39NsJngpUDmZUrEiD%2Fpaypal6.796b9f39.png?alt=media&#x26;token=503457ca-6510-4bcd-bb77-5eb2976bb69b" alt=""><figcaption></figcaption></figure>

#### Use checkout to let customers pay with PayPal <a href="#use-checkout-to-let-customers-pay-with-paypal" id="use-checkout-to-let-customers-pay-with-paypal"></a>

Using the built-in ecommerce store is a fantastic way of selling your products. Once the user presses the checkout button in the conversation they will be taken to the online checkout section where they now can select PayPal to pay with.

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FxK17KM5MnbH3pYv1OK5Z%2Fpaypal8.3d5910f6.png?alt=media&#x26;token=8e2464b9-cf0d-4eac-9d2d-29181e859d26" alt=""><figcaption></figcaption></figure>

#### Use the one-click PayPal buy button <a href="#use-the-one-click-paypal-buy-button" id="use-the-one-click-paypal-buy-button"></a>

Another way of using the PayPal integration is by using the direct button for this. Very useful if you just want to sell a single product or service.Add a button and from the option given choose the **PayPal Buy** button.Once selected you will be able to quickly fill in all the product details like soOnce everything is filled in, scroll down and press save. You will now be able to sell single products.

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FmUQKNHk93oIaMkfjzvMO%2Fpaypal10.d1929b10.png?alt=media&#x26;token=9308912e-18f3-4f19-9351-cc670b05905a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://289455019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRaLazqQDW4JMiGe2iyKg%2Fuploads%2FBCDbmkgYGNm6PE7YMnUM%2Fpaypal9.31e8da3f.png?alt=media&#x26;token=47036eaa-5fb3-4c89-8c70-81dcb16b80f9" alt=""><figcaption></figcaption></figure>
