# Implement a payment form in Podio using Workflow Automation and JotForm

Although Podio's native webforms are great, they have limitations. You can only have one per app, and you cannot do any payment processing, etc. There are other services like JotForm, which let you build more sophisticated forms with logic and payment processing. You can hook up such other forms using Workflow Automation's Webhook feature which allows you to capture external webhook events and perform actions in Podio.

## The Form

For this example, we're going to set up a simple payment form using [JotForm](https://www.jotform.com/). The **Purchase** block in our example here uses a **PayPal** block in *JotForm*.

![Form](https://www.progress.com/podio/documentation/assets/5d7613ed3434ad0bde438ba92a223a94/paypal-frm1.png)

## The Podio App

In Podio we will need an app to capture these form submissions. This app can be quite simple and needs the fields we want to store from each purchase.

![Podio App](https://www.progress.com/podio/documentation/assets/f76b2ee98d775290d249db6bbddde3cc/paypal-podio-app1.png)

## The Webhook Flow

1. Create a new **Flow in Workflow Automation** in the **Webhooks** area:

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/bc98478a70f8e35c20282b0b6ab49c32/webhook-flow1.png)

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/20116adbf65e8b8024d7acdee49bed8e/webhook-flow1a.png)

2. In the new **WebHook Flow**, you will see the unique catch **URL** for the hook.

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/0dd1808fbfd440856fd6161d61e560e3/webhook-flow1b.png)

3. Since there have been no **Posts** from this form yet, there is no data. We first need to hook up the **WebHook in JotForm** (under the **Integrations** toolbar button).

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/da38e6eb7b9d6901361f02de332f4090/webhook-flow1c.png)

4. Next, we'll need to push through a sample purchase so that our **WebHook in Workflow Automation** can collect data and determine which fields we have to work with.

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/48add0d4ad036c5c3aca57344c0b0bbc/webhook-flow1d.png)

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/5a9bded9685f92907ba2315f98c32438/webhook-flow1e.png)

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/d828dcbe6114ff91190eb54d7e7e1322/webhook-flow1f.png)

5. Now that we've made a purchase, **JotForm** would have sent the form to our **WebHook** endpoint. In **Workflow Automation**, click on the **Refresh** link by the **WebHook URL**, and you'll now see the data that came through from our test purchase.

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/93d65ef1fa9a880b1dfbe6e8c0d2f61f/webhook-flow1g.png)

6. These variables are now available as tokens, so we can build our flow to create a new purchase item.

   ![Webhook Flow](https://www.progress.com/podio/documentation/assets/e52fc7f27cbb37d28103042f89abc204/webhook-flow1h.png)

That's it. Now every time someone makes a purchase from your **JotForm** payment form, it will create a new item in your **Podio Purchases App**.
