Prerequisites
You will need:- Your CDP API Key ID and secret
- A webhook notification HTTPS URL
- Install the CDP CLI and run
cdp env live --key-file ./cdp_api_key.jsononce to configure credentials.
1. Review the configuration
Decide which Payment Acceptance events to receive. You can subscribe to all events or only the ones you need.Payment session events
Disbursement events
2. Subscribe
Create the subscription with the CDP CLI. Store the returnedsubscriptionId and secret - you’ll need the secret for signature verification.
Subscribe to all Payment Acceptance events:
Example response
Example response
Manage subscriptions
Use thesubscriptionId from the creation response to view, update, or delete subscriptions.
List all subscriptions:
Related
Verification
Verify webhook signatures
Example payloads
Event payload shapes