CardPayment
Type: schema
Description
Payments using credit card, debit card
TypeScript Definition
typescript
CardPayment: {components["schemas"]["PaymentInfo"] & {
/**
* @description masked card number
* e.g. ************1111
*/
card_number?: string
}Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["PaymentInfo"] | PaymentInfo |
OpenAPI Schema
json
{
"title": "CardPayment",
"description": "Payments using credit card, debit card",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/CardPayment",
"description": "API reference for the CardPayment schema"
},
"allOf": [
{
"$ref": "#/components/schemas/PaymentInfo"
},
{
"type": "object",
"properties": {
"card_number": {
"description": "masked card number\r\ne.g. ************1111",
"type": "string"
},
"card_type": {
"type": "string",
"enum": [
"Visa",
"Master Card",
"Rupay",
"American Express"
]
}
}
}
]
}Auto-generated from OpenAPI spec and TypeScript definitions