Payment information of the user.
Direction of flow and PCI scope:
creditCardLastFourDigitsandpaymentMethodmay flow in both directions (e.g., returned inFinalizeOrderResponse.payment_infoor passed inConfig.user_info.payment_infoto indicate a saved card on file).creditCardCvv,creditCardNumber,creditCardExpirationMonth,creditCardExpirationYear, andcreditCardPostalCodeare outbound-only from the Food Ordering Service to the client POS integration inSubmitOrderRequest.payment_info(populated deterministically from DTMF keypad callbacks without routing through the LLM). Clients must never populate these fields inFinalizeOrderResponse.payment_info,Config.user_info.payment_info, orOrderPayment.payment_info.
| JSON representation |
|---|
{
"creditCardLastFourDigits": string,
"creditCardCvv": string,
"paymentMethod": enum ( |
| Fields | |
|---|---|
creditCardLastFourDigits |
Optional. The last four digits of the credit card. This is used to verify the credit card number at the payment stage. |
creditCardCvv |
Optional. CVV of the credit card. Outbound-only in |
paymentMethod |
Optional. The type of payment method used. |
creditCardNumber |
Optional. The credit card number (digits only, no spaces or separators; 12 to 19 digits per ISO/IEC 7812) when paying with a new credit card. Outbound-only in |
creditCardExpirationMonth |
Optional. The expiration month of the credit card (1 through 12) when paying with a new credit card. Outbound-only in |
creditCardExpirationYear |
Optional. The four-digit expiration year of the credit card (e.g. 2028) when paying with a new credit card. Outbound-only in |
creditCardPostalCode |
Optional. The billing postal/ZIP code of the credit card (e.g. "40299" or "M5V 3L9") when paying with a new credit card. Outbound-only in |
PaymentMethod
The type of payment method.
| Enums | |
|---|---|
PAYMENT_METHOD_UNSPECIFIED |
Unspecified payment method. |
PAYMENT_METHOD_CREDIT_CARD |
Credit card. |
PAYMENT_METHOD_CASH |
Cash. |