[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[[["\u003cp\u003eThis prebuilt component is designed to collect a credit card's expiration date from users, including the month and year.\u003c/p\u003e\n"],["\u003cp\u003eThe component does not handle payment gateway integration and requires users to input numeric values through a telephone keypad by enabling DTMF.\u003c/p\u003e\n"],["\u003cp\u003eIt supports additional features like repeat, waiting room, and playback to improve the user experience when collecting the expiration date.\u003c/p\u003e\n"],["\u003cp\u003eThe system will prompt the user to re-enter their information if an unrecognized or invalid input is given, and if it is given more than three times the component will exit the flow.\u003c/p\u003e\n"],["\u003cp\u003eThe component validates the entered expiration date to ensure the format is correct and that the date is in the future, with the month being '01' through '12' and the year being no more than 10 years from the current one.\u003c/p\u003e\n"]]],[],null,["# Credit card expiration date collection prebuilt component\n\nThis\n[prebuilt component](/dialogflow/cx/docs/concept/prebuilt-component)\ncaptures a credit card expiration date from an end-user.\n\nLimitations\n-----------\n\nIn addition to the\n[common prebuilt component limitations](/dialogflow/cx/docs/concept/prebuilt-component#limits),\nthis prebuilt component has the following limitations:\n\n- Payment gateway integration is not included in this component.\n\nRecommended agent settings\n--------------------------\n\n[Enable DTMF](/dialogflow/cx/docs/concept/parameter#dtmf)\nto allow users to input numeric values using the telephone keypad.\n\nAdditional functionalities\n--------------------------\n\nThe following additional functionalities are provided by this prebuilt component:\n\n- [Repeat](/dialogflow/cx/docs/concept/prebuilt-component#repeat-functionality)\n- [Waiting room](/dialogflow/cx/docs/concept/prebuilt-component#waiting-room-functionality)\n- [Playback](/dialogflow/cx/docs/concept/prebuilt-component#playback-functionality)\n\nSample dialogs\n--------------\n\nThe following sample dialogs demonstrate common scenarios handled by this\nprebuilt component. The sample dialogs demonstrate behavior when the component is\ncalled via telephony, which triggers the Default Welcome Intent and the first\nagent response at the start of the conversation.\n\n### Successful input\n\nEnd-user provides expiration date in the first attempt; agent successfully accepts it.\n\n### Retries\n\nEnd-user provides expiration date in the first attempt; On agent's re-confirmation on collected expiration date; end-user says \"it's wrong\". Agent asks the end-user to confirm which part of the expiration date is incorrect - entire date, month or year and re-prompts to provide that details again.\n\n### Partial input\n\nScenario - End-user isn't able to provide expiration date in the first attempt; agent splits the expiration date and asks for a month followed by year. End-user provides the input correctly this time and agent successfully accepts it.\n\n### Unrecognized input\n\nComponent exits the flow after the end-user provides unrecognized input three times.\n\nCredit card expiration date validation\n--------------------------------------\n\nCredit card expiration date months should be input as an integer between '01'\nand '12' or a string representing a month between 'January' and 'December'.\n\nCredit card expiration date year should be four digits long. If the input is two\ndigits long, it is converted to a four-digit year, e.g. '25' becomes '2025'.\nAdditionally, the year should be no more than 10 years in the future from the\ncurrent year.\n\nThe credit card expiration date, including month and year, must be a future date\nconsidering the current month and year.\n\nNaming conventions\n------------------\n\nThis prebuilt component uses the following naming conventions:\n\nOutput parameters\n-----------------\n\nOutput parameters are session parameters that will remain active after exiting\nthe component. These parameters contain important information collected by the\ncomponent. This prebuilt component provides values for the following output\nparameters:\n\nBasic setup\n-----------\n\nTo set up this prebuilt component:\n\n1. [Import the prebuilt component](/dialogflow/cx/docs/concept/prebuilt-component#import).\n\n### Complete\n\nYour agent should now be set up and ready to test."]]