How It Works
- Configure your callback URL when creating the credit card charge using the
callbackUrlparameter - Receive notifications automatically when transaction status changes
- Process the payload containing the complete transaction details
- Return a 200 OK response to acknowledge receipt
Setting Up Webhooks
To receive webhook notifications for credit card transactions, include thecallbackUrl parameter when creating a charge:
Webhook Payload
When a credit card transaction status changes, you’ll receive a POST request with the following data:Response Fields
Example Payload
Webhook Endpoint Requirements
Your webhook endpoint must:- Accept POST requests - All webhook notifications are sent via POST
- Use HTTPS - Only secure HTTPS URLs are accepted
- Return 200 OK - Respond with a 200 status code within 5 seconds
- Be publicly accessible - The endpoint must be reachable from the internet
Common Status Updates
You’ll receive webhook notifications for these status changes:- Created → Transaction initiated
- Paid → Payment successfully processed
- Rejected → Payment declined (see Rejection Status for details)
- Refunded → Payment refunded to customer
- Canceled → Transaction canceled
Related Resources
Create Charge
Create a new credit card charge
Rejection Status
Understanding rejection reasons
Test Cards
Test cards for development

