Flask Payment Web API
要求我在测试中创建的Flask Web API不包含信用卡号的“ MOD 10算法”检查(假设它们对于测试目的是正确的)。
功能
ProcessPayment() :在满足以下要求的情况下处理信用卡付款:
- CreditCardNumber (mandatory, string, it should be a valid credit card number)
- CardHolder: (mandatory, string)
- ExpirationDate (mandatory, DateTime, it cannot be in the past)
- SecurityCode (optional, string, 3 digits)
- Amount (mandatory decimal, positive amount) - Ca
2021-03-10 18:06:29
9KB
Python
1