Skip to content
Foxy.ioHelp Center
  • Articles
  • Documentation
  • API Documentation
  • System Status
  • Contact Us
Foxy.ioHelp Center
  1. Articles
  2. Webhooks
Back to Webhooks
Search Articles/

Pre-Payment Webhook

Approve or reject a transaction with custom validation before payment is sent to the gateway.

Enable the pre-payment webhook

How to turn on the pre-payment webhook and configure its endpoint URL and failure handling.

Pre-payment webhook payload reference

The example JSON payload sent to your endpoint before a transaction is submitted to the gateway.

Respond to the pre-payment webhook

The JSON response format for approving or rejecting a transaction, with an example PHP endpoint.

What is the pre-payment webhook?

How the pre-cart webhook lets you intercept, modify, or replace add-to-cart requests before items are added.

Need Help?

Can't find the answers you're looking for? Our team is here to help. Please click below to contact us.

Image Description
Foxy’s hosted cart & payment page allow you to sell anything, using your existing website or platform.

Company

  • About Us
  • How Foxy Works
  • Foxy For Good
  • Brand Assets

Product

  • Features
  • Pricing
  • Product Updates
  • Changelogs
  • What's Next
  • Compare
  • Try Foxy Free

Security

  • Security Contact
  • PCI Compliance
  • Domains & Codebases

Support

  • Help Center
  • Documentation
  • API Documentation
  • System Status
  • Contact Us
© 2026 Foxy Commerce
  • Terms of Service
  • Privacy Policy