# HTTP Requests

{% hint style="danger" %}
Ensure Webhooks are configured correctly in order for HTTP Requests to process properly.
{% endhint %}

Send your payment confirmation details to any external URL as an HTTP Request upon payment confirmation. This is perfect for SaaS platforms or mobile apps that want to utilize an external payment platform while retaining all the relevant details of their customer and the payment.&#x20;

### Testing HTTP Requests via RequestBin

Go to [requestbin.com](https://requestbin.com) and create a Bin by registering for a free account or creating a public bin.&#x20;

Copy your RequestBin endpoint URL into the Payment Page HTTP Request Settings:

![RequestBin Endpoint URL](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2F8w2grTS6p7ba24h5Z4Gy%2Frequest-bin-endpoint-url.png?alt=media\&token=5db8d301-91b5-47f9-bfce-0efb33b94c43)

![HTTP Request Settings in Payment Page with RequestBin URL](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2Frwn8eV6tFYFVberbse1l%2Fhttp-request-settings-requestbin-url.png?alt=media\&token=42e0137b-3a10-4785-9dcc-5b617c3fc359)

Create a TEST or LIVE payment, then check your RequestBin data. It should look something like this:&#x20;

![HTTP Request Data in RequestBin](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FZ55QaFVBeJhxooSMf0ug%2Frequest-bin-data.png?alt=media\&token=d7b50158-2fa9-4b87-bd2e-7ba7fb6f94ac)

### Testing HTTP Requests via Zapier

The HTTP Request can be tested with the Zapier Webhooks mechanism for free by following the steps below.&#x20;

Create a new Zap in your [Zapier Dashboard](https://zapier.com/app/zaps).&#x20;

For your Trigger, select **Webhooks by Zapier**. While it's a Premium Zapier feature, it can be tested for free:

![Creating a Zapier Zap with Webhooks by Zapier](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2F4MDq4q1Uve4cl35qFlwr%2Fwebhooks-by-zapier.png?alt=media\&token=02dc653a-565d-4155-b2a2-d7de5a2ba52f)

In the "Choose app & event" section, select **Catch Hook**:

![Webhooks by Zapier Catch Hook Trigger](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FH2mapSeeYCkNscKWgsyD%2Fcatch-hook.png?alt=media\&token=89193130-af77-400d-b961-2dff5757c22e)

Select Continue, and skip the **Set up trigger** section.&#x20;

Continue to **Test Trigger**, and copy the Webhook URL provided by Zapier:

![Testing a Webhook Trigger in Zapier - Copy Webhook URL](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FovNsFjKoJyYOAmXdfgme%2Fwebhook-url.png?alt=media\&token=110d2d4a-b7c8-4bda-82bb-dfbba295a47c)

Go back to edit your payment form, and under the section **Actions After Submit**, ensure you have HTTP Request selected:

![Payment Page Actions After Submit Settings](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2Fm8BPgzrYO75bbSyMcPZX%2Fhttp-request-selected.png?alt=media\&token=8fbae510-e837-4892-bed1-572c7e670404)

In the HTTP Request settings, paste in your Zapier Webhook URL:

![HTTP Request Settings in Payment Page with Zapier Webhook URL](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FmL3PvdPOW8QOuewHMne1%2Fhttp-request-settings.png?alt=media\&token=ff8a1d61-c227-4cfa-966a-9664c1520d1c)

Run a TEST or LIVE payment on the payment form.

Then, click **Test Trigger** in the Zapier Dashboard:

![Test Trigger Button in Zapier Dashboard](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FlerJQcjIQ4NVzUZia1oq%2Ftest-trigger.png?alt=media\&token=20d1fec1-ad7b-4204-b48a-64e21fae7d19)

The resulting data will look something like this:

![Zapier Webhook Data from Payment Page Plugin](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FgSDH0eh0hRPxgyjJkkzI%2Fhttp-request-data.png?alt=media\&token=3177b40d-d10c-4aa6-ad77-0776a5ee3fed)

Then, you can automate anything you want with Zapier apps or build your own custom functionality based on the data provided.&#x20;

{% hint style="info" %}
Custom form fields will be passed individually. Query strings that aren't matched to any custom form fields will also be included in the HTTP Request details.
{% endhint %}

{% content-ref url="../prefill-form-fields-query-strings" %}
[prefill-form-fields-query-strings](https://docs.paymentpageplugin.com/features/prefill-form-fields-query-strings)
{% endcontent-ref %}
