POST
/
frontend
/
checkout
/
campaign
/
{client_id}
/
{program_id}
/
{session_id}
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"
}

Path Parameters

client_id
integer
required

The ID of the client

program_id
integer
required

The ID of the program

session_id
string
required

The ID of the session

Body

application/json
Data needed to process a campaign checkout
amount
integer
required
Example:

"100"

email
string
required
Example:

"email@email.com"

frequency
string
required
Example:

"Every Month"

method_signup
string
required
Example:

"3"

cardExpiry
string
Example:

"0228"

cardHolderName
string
Example:

"John Doe"

cvv
string
Example:

"123"

donation_amount
integer
Example:

"100"

expiryMonth
string
Example:

"02"

expiryYear
string
Example:

"2028"

firstName
string
Example:

"John"

lastName
string
Example:

"Doe"

number
string
Example:

"4242424242424242"

paying_processing
string
Example:

"1"

paymentMethod
string
Example:

"credit_card"

processingFee
string[]
Example:

"['3']"

Response

200
application/json
Successful operation
status
string
Example:

"success"

message
string
Example:

"Success: Donation Added"

redirect
string
Example:

"/frontend/donations_page/1/1"