curl --request PATCH \
--url https://api.example.com/api/church/makedonation/:id \
--header 'Content-Type: application/json' \
--data '
{
"donationId": "<string>",
"useremail": "<string>",
"donated": 123
}
'{
"success": true,
"message": "<string>",
"data": {
"data.Id": "<string>",
"data.url": "<string>"
}
}Initiate a donation payment through Stripe. Creates a checkout session for secure payment processing.
curl --request PATCH \
--url https://api.example.com/api/church/makedonation/:id \
--header 'Content-Type: application/json' \
--data '
{
"donationId": "<string>",
"useremail": "<string>",
"donated": 123
}
'{
"success": true,
"message": "<string>",
"data": {
"data.Id": "<string>",
"data.url": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SidneyEmeka/church_management_system/llms.txt
Use this file to discover all available pages before exploring further.
PATCH /api/church/makedonation/:id
minAmount requirement.client_reference_id: User ID for trackingcustomer_email: Donor’s emailline_items: Donation details (name, amount)mode: “payment” (one-time payment)success_url: Redirect after successful paymentcancel_url: Redirect if payment is cancelleddonators array with:
paymentVerified: false (pending verification)curl -X PATCH "https://api.example.com/api/church/makedonation/60d5ec49f1b2c72b8c8e4f1a" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"donationId": "60d5ec49f1b2c72b8c8e4f1c",
"useremail": "[email protected]",
"donated": 100
}'
{
"success": true,
"message": "Your donation to Building Fund 2026 has been initiated. Kindly visit the url below to complete payment",
"data": {
"Id": "cs_test_a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7R8s9T0",
"url": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7R8s9T0"
}
}
{
"success": false,
"message": "Unable to make donation",
"data": "Minimum donation amount is 10"
}
{
"success": false,
"message": "Unable to make donation",
"data": "The target for this donation has been achieved"
}
{
"success": false,
"message": "Unable to make donation",
"data": "This donation is not open yet"
}
{
"success": false,
"message": "Unable to make donation",
"error": "This donation ended on 12/31/2025"
}
{
"success": false,
"message": "Unable to make donation",
"data": "Donation with this Id does not exist"
}
{
"success": false,
"message": "Unable to make donation",
"data": "Error message details"
}
endDate"on" (active)
"completed": Returns error that target has been achieved"off": Returns error that donation is not opendonationMetrics.minAmountpaymentVerified: false initially/verifydonation endpointtotalGotten is updated and paymentVerified is set to truedonated * 100)transactionId in the databasesuccess_url includes the session ID for tracking: {CHECKOUT_SESSION_ID}