Clickfunnels Custom Javascript Code Required

April 2026 Update: Webhooks & Automations in Funnelish V2

This thread discusses legacy methods from 2017 involving custom JavaScript on ClickFunnels. In Funnelish V2, sending order data to external servers is handled securely through native Automations without the need for any custom code.

:stop_sign: What’s Changed & Deprecated

  • Custom JavaScript Scrapers: Using custom JS to scrape or intercept order form details is highly discouraged and deprecated.
  • PCI Compliance & Credit Card Data: As discussed in this thread, you should never attempt to extract, intercept, or transmit raw credit card data via webhooks or custom scripts. This violates PCI-DSS compliance and poses severe security risks. Funnelish securely tokenizes all payment data directly with gateways like Stripe and PayPal.

:sparkles: Current Behavior: Native Webhooks

If you need to send standard order details (customer name, email, shipping address, purchased items, order totals) to an external server or database, Funnelish V2 has a native solution built exactly for this:

  1. Open your funnel and navigate to the Automations tab.
  2. Create a new automation triggered by On Purchase (or On Lead, depending on your goal).
  3. Click Add a new action and select Webhook.
  4. Paste your secure endpoint URL and configure your headers/payload.

Funnelish will automatically and securely fire the webhook containing the structured JSON order data whenever a successful transaction occurs.

:books: Helpful Links


(Original Post - November 2017)

I need a short code that will live on a Clickfunnels page and fetch the order form details to our server using a webhook.

See below video for more details

Please see here for an explanation: Recording #1364

I see, it’s a bit limited on things you can do with a credit card info, but can you tell me more about your backend server, what kind of info or webhook does it expect…

you can also PM me incase it’s sensitive.

best

Its a sql server

can you write the code

Possible but you are looking at it from the wrong angle :slight_smile: exposing your entire sql server DB to a JS code will get you hacked in no time… and you seriously should consider that when dealing with people’s sensitive CC info.

Instead the right approach is building an API and make sure it’s compliant with ALL lows that govern the storage of CC info…etc (which is really hard thus, I suggest paying for some 3rd party service instead of sql server)…

And then once you have your 3rd party service setup to handle CC info, then I can help you connecting it to your funnels :slight_smile: and who knows if the service API is straightforward and won’t cost me much time I WILL DO IT FOR YOU FOR FREEEEEEEEEEEEEEEEEEEE :slight_smile:

But first find a 3rd party service that does CC storage or something similar using tokens…etc, and then will help you out :slight_smile:

PS. people’s sensitive info can really be annoying to handle and can cause so much legal annoyance to all parties, so handle it carefully.

Hope that helps!
– @yassine