[[["易于理解","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 captures and validates credit card numbers that are between 8 and 19 digits long, using the Luhn algorithm for validation.\u003c/p\u003e\n"],["\u003cp\u003eThe component supports various dialog scenarios, including single or multiple-chunk input, retry attempts, and handling unrecognized input up to three times.\u003c/p\u003e\n"],["\u003cp\u003eUsers can input numeric credit card values via voice or using the telephone keypad with DTMF enabled.\u003c/p\u003e\n"],["\u003cp\u003eThe component offers additional functionalities like repeat, waiting room, and playback, while not including payment gateway integration.\u003c/p\u003e\n"],["\u003cp\u003eThe component provides two output parameters, \u003ccode\u003ecredit_card_status\u003c/code\u003e to indicate the validity of the credit card number, and \u003ccode\u003ecredit_card_number_collection_credit_card_number\u003c/code\u003e to provide the captured credit card number.\u003c/p\u003e\n"]]],[],null,["# Credit card number collection prebuilt component\n\nThis\n[prebuilt component](/dialogflow/cx/docs/concept/prebuilt-component)\ncaptures an 8 to 19 digit credit card number. Captured credit card numbers are\nvalidated using the [Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm).\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 the component.\n- Credit card numbers shorter than 8 or longer than 19 digits are not supported.\n\nRecommended agent settings\n--------------------------\n\n[Enable DTMF](/dialogflow/cx/docs/concept/parameter#dtmf) to allow users to input numeric values using the telephone keypad.\n\nAdditional features\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### Single chunk\n\nEnd-user provides the entire credit card number in the first turn;\nagent successfully validates and accepts it.\n\n### Multiple chunks\n\nEnd-user provides credit card number in three chunks; agent validates and accepts it.\n\n### Successful retry\n\nEnd-user provides the entire credit card number in the first turn; agent re-confirms it but end-user says \"no\". Agent asks end-user to provide the input again. End-user provides and confirms the number and agent successfully validates and accepts it.\n\n### Unrecognized input\n\nComponent exits the flow after the end-user provides unrecognized input three times.\n\nCredit card number validation\n-----------------------------\n\nValid credit card numbers must be between 8 and 19 digits long. This component also\nvalidates credit card numbers using the Luhn algorithm using the\n[IS_CREDIT_CARD_NUMBER system function](/dialogflow/cx/docs/reference/system-functions#func-iscreditcardnumber).\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."]]