Skip to main content
POST
Attach a credit card to a donor on the active gateway

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Body

application/json
donor_id
integer
required

Donor that will own the card.

Example:

12345

firstName
string

Cardholder first name.

Example:

"Jane"

lastName
string

Cardholder last name.

Example:

"Doe"

number
string

Raw PAN (when not using payment_method).

Example:

"4242424242424242"

cvv
string

Card verification value.

Example:

"123"

expiryMonth
string

Two-digit expiry month.

Example:

"12"

expiryYear
string

Four-digit expiry year.

Example:

"2027"

payment_method
string

Stripe PaymentMethod id (when present, raw card fields are ignored downstream).

Example:

"pm_1J4XYZabcdef"

Response

Either success or gateway-failure response — disambiguate via the message text.

message
string
Example:

"Credit card added successfully."