curl --request POST \
--url https://api.helpyousponsor.com/v1/frontend/checkout/campaign/{client_id}/{program_id}/{session_id} \
--header 'Content-Type: application/json' \
--data '{
"amount": "100",
"cardExpiry": "0228",
"cardHolderName": "John Doe",
"cvv": "123",
"donation_amount": "100",
"email": "email@email.com",
"expiryMonth": "02",
"expiryYear": "2028",
"firstName": "John",
"lastName": "Doe",
"frequency": "Every Month",
"method_signup": "3",
"number": "4242424242424242",
"paying_processing": "1",
"paymentMethod": "credit_card",
"processingFee": "['\''3'\'']"
}'
{
"status": "success",
"message": "Success: Donation Added",
"redirect": "/frontend/donations_page/1/1"
}
The ID of the client
The ID of the program
The ID of the session
Data needed to process a campaign checkout
The body is of type object
.
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/frontend/checkout/campaign/{client_id}/{program_id}/{session_id} \
--header 'Content-Type: application/json' \
--data '{
"amount": "100",
"cardExpiry": "0228",
"cardHolderName": "John Doe",
"cvv": "123",
"donation_amount": "100",
"email": "email@email.com",
"expiryMonth": "02",
"expiryYear": "2028",
"firstName": "John",
"lastName": "Doe",
"frequency": "Every Month",
"method_signup": "3",
"number": "4242424242424242",
"paying_processing": "1",
"paymentMethod": "credit_card",
"processingFee": "['\''3'\'']"
}'
{
"status": "success",
"message": "Success: Donation Added",
"redirect": "/frontend/donations_page/1/1"
}