Docs

Log into read the version of docs relevant to your site.

How can I get information when a card is submitted as a payment method?

Problem Statement

This article explains how to get notified automatically when a card is added as a payment method.

Solution

Use webhooks to listen for card_added or payment_source_added events. When a card is submitted, Chargebee sends a webhook notification to your configured URL.

Setup

  1. Configure webhooks in Chargebee. See Webhook settings.
  2. Ensure your server can receive and process webhook payloads.
  3. Select the card_added and payment_source_added events when creating or editing the webhook.

For the full list of events, see the Chargebee Events API. Your engineering team will need to implement the webhook endpoint on your side.

Was this article helpful?