curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/donor-credit-card/{donor_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cardHolderName": "John Doe",
"firstName": "John",
"lastName": "Doe",
"token": "tok_ODONGNndknfkn2452"
}
'{
"message": "Credit Card Successfully Updated."
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the donor
Donor ID and card details are required
Card details updated successfully
"Credit Card Successfully Updated."
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/donor-credit-card/{donor_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cardHolderName": "John Doe",
"firstName": "John",
"lastName": "Doe",
"token": "tok_ODONGNndknfkn2452"
}
'{
"message": "Credit Card Successfully Updated."
}