curl --request POST \
--url https://api.helpyousponsor.com/v1/client/pay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"number": "4242424242424242",
"cvc": "123",
"expiryMonth": "12",
"expiryYear": "2023",
"user_id": "1",
"fee": "100.00",
"first_name": "John",
"last_name": "Doe"
}'
{
"status": "success",
"message": "Payment successful"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Payment details are required
The body is of type object
.
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/client/pay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"number": "4242424242424242",
"cvc": "123",
"expiryMonth": "12",
"expiryYear": "2023",
"user_id": "1",
"fee": "100.00",
"first_name": "John",
"last_name": "Doe"
}'
{
"status": "success",
"message": "Payment successful"
}