- execute
pip install -r requirements.txt
- execute
python src/app.py
- Path:
/ProcessPayment
- Method:
POST
- Content Type:
application/json
- Request Body:
{
"PaymentMethod": "<string>", // currently, "credit_card" is only allowed
"CreditCardNumber": "<string>", // accepts any valid credit card number
"CardHolder": "<string>", // cannot be empty
"ExpirationDate": "<datetime>", // "yyyy-MM-ddTHH:mm:ss.fffZ", "yyyy-MM-ddTHH:mm:ssZ", "yyyy-MM-dd", "MM/yy", "MM-yy", or "MMyy"
"SecurityCode": "<string>", // 3 digit security code, optional
"Amount": "<decimal>" // accepts decimal numbers greater than 0.0
}
- execute
pytest -v src\app.py ..