# PayPal

You can easily integrate PayPal on your Softr app to start receiving payments. You can either add a single button or, if you're importing a list of products from Airtable, you can add a PayPal link for each product in Airtable so that customers can visit your store and make purchases. Let's discuss each case separately.

## Adding a Single Button

Your starting point is <https://www.paypal.com/buttons/>, where you can choose the type of button you want to have on your site. After generating the button, the code can be added inside a [Custom Code](https://softr.gitbook.io/softr-documentation/building-blocks/custom-code) block in your Softr app. The animation below shows how to add **Smart Buttons**.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPZv5lAQGBnbTKeRXe3%2F-MPZw7ZcW9B3-DlpttWo%2F1.gif?alt=media\&token=677ed3db-7222-475f-a948-70303eec09a8)

## Adding Links in Airtable

Let's assume you've created your app based on our e-commerce template (see how to create an app with template Airtable base [here](https://softr.gitbook.io/softr-documentation/integrations/payment-integrations/broken-reference)). Thus, you have your product listing, and each product has a **View Details** button, which should be linked to the item details page (check how to link item details [here](https://softr.gitbook.io/softr-documentation/building-blocks/listing-details#linking-the-details-page-to-the-list)). On the details page, there's in turn a **Buy Now** button. So, let's customize the **Buy Now** to link it to item's PayPal **Buy Now** button, which we are going to create now.&#x20;

### Creating the Button

On <https://www.paypal.com/buttons/>, choose the **Buy Now** button.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MPZzPWZsVvsYjnFZkwi%2F-MPZz_4wVy9Ul6-piN8w%2F3_b.png?alt=media\&token=ef73b20e-1944-4174-ac0a-8dc4e98eaf68)

Next, add item **Name** and **Price** and make other customizations based on your needs.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MP_0JY1hUOqoPVFCcO8%2F-MP_DxwsXKh_5IWS82zE%2F4_b.png?alt=media\&token=afefab63-9bcd-4122-bbfe-7a571cbce8c6)

You can also **Track inventory, profit and loss** and **Customize advanced features**, which are optional.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MP_FbGBDYC18-T0iH55%2F-MP_GITplMBlC1hIDODl%2F5_b.png?alt=media\&token=20f7b77c-d3cf-4a4f-b30a-915e3d510736)

Hit **Create button** when you're done with the configurations.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MP_FbGBDYC18-T0iH55%2F-MP_Gu0LXTiYcHZC-klg%2F6_b.png?alt=media\&token=6808466c-f256-4ef4-bc04-3a4e7b8f0988)

### Getting the Button Link

In the following page, scroll down, switch to the **Email** tab, and copy the code.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MP_FbGBDYC18-T0iH55%2F-MP_H2Z7HHnZsXurHYl8%2F7_b.png?alt=media\&token=181b3ba9-bcdc-406a-8866-cefd89db5471)

### Adding the Button Link to the Product

Now, you have the button link and need to add it on Airtable to the corresponding product. For that purpose, we are going to create a new **PayPal Link** field on Airtable and add the link there.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MP_FbGBDYC18-T0iH55%2F-MP_HlTBeWcmCAzfs01q%2F8_b.png?alt=media\&token=a5f481e6-9726-4f70-bd39-5e91362f6670)

On your Product Details page, change the **Buy Now** button action to **External url** and set it to the **PayPal Link** field.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MP_IsV_AZX3U9pwYEID%2F-MP_Ititfr4J-QP7rA4a%2F9_b.png?alt=media\&token=0759c3aa-2232-4da5-ab51-27163d8717b8)

So, that's the process for one particular product, and you need to repeat it for all the products, creating a unique PayPal button for each one. When you're done, the Buy Now button on the product page will redirect to the PayPal payment page, as shown below.

![](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0NiyhsmXAcV5u1c6XK%2F-MP_IsV_AZX3U9pwYEID%2F-MP_KUlZjp2D-0SdyN5l%2F10.gif?alt=media\&token=edc14aaa-6c85-4163-83fb-091c6d70d4c3)
