Charge a one-time fundraising donation by credit card

Resolves merchant-account-specific credit-card rules, validates the donation, creates the payment, and returns the resulting payment resource. The controller currently accepts JSON or multipart input through the shared Axios caller.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects a multipart form.
payment_amountdoubleRequired
merchant_account_idintegerRequired
fundraising_idintegerOptional
donation_type_idinteger or nullOptional
fundraising_donor_idinteger or nullOptional
full_namestring or nullOptional<=1000 characters
emailstring or nullOptionalformat: "email"<=255 characters
messagestring or nullOptional<=1000 characters
notestring or nullOptional<=255 characters
parent_student_idinteger or nullOptional
family_student_idinteger or nullOptional

Response

Payment accepted, scheduled, pending, or another payment status represented by the payment handler.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error