The make a payment prebuilt component authenticates the user and lets them make a payment. This component uses a customized version of the Authentication prebuilt component to authenticate account holders and cardholders.
The make a payment component also uses the Name collection, Credit card expiration date collection, and Credit card CVV collection prebuilt components to collect information required to make payments.
Payment types
This component supports payments for credit card bills and beneficiary accounts. For credit card bills, users can choose to pay the minimum, total, or a custom amount towards their bill. The user can make payments from their bank account, debit card, credit card, or mobile payment.
| Payment Type | Available Payment Methods | Available Payment Amounts |
|---|---|---|
| Credit card bill | Bank account, debit card, mobile payment | Minimum, total, custom amount |
| Beneficiary account | Bank account, credit card, debit card, mobile payment | Custom amount |
Limitations
In addition to the common prebuilt component limitations, this prebuilt component has the following limitations:
- This component does not encrypt any data.
Sample dialogs
These sample dialogs show common scenarios that this prebuilt component handles. They demonstrate behavior when the user calls the component using telephony, which triggers the Default Welcome Intent and the first agent response at the start of the conversation.
Beneficiary account payment
- The agent identifies that the user hasn't been previously authenticated and collects information to verify that the user is a registered user.
- The user indicates that they'd like to make a payment to a beneficiary account.
- The agent collects required information, including the beneficiary name, and confirms the account number.
- The user chooses to make a payment using their debit card.
- The agent collects the debit card number, expiration date, CVV, and confirms the payment.
| User Input | Agent Response |
|---|---|
| The agent authenticates the user using the Authentication prebuilt component. | |
| Thank you, you have been successfully authenticated. | |
| Would you like to pay your registered credit card bill or make a payment to an existing beneficiary account? | |
| Beneficiary | |
| The agent collects the beneficiary name using the Name collection prebuilt component. | |
| Thank you, we have collected the beneficiary name. Okay, based on our records, we have the account number ending in 7821. Please say yes, to confirm the account number. |
|
| Yes | |
| Please confirm the amount you want to pay. For example, if you want to pay $100.30, say 100 point 30. | |
| 50 dollars | |
| Do you want to pay by your bank account, debit card, credit card or mobile payment? | |
| Debit | |
| Can you please help us with the last 4 digits of the debit card number you are referring to? | |
| 1234 | |
| The last four digits of the debit card number that we got are 1234, is that correct? | |
| Yes that's right | |
| The agent collects the debit card expiration date using the Credit card expiration date collection prebuilt component. | |
| Great, we are done with collecting the debit card's expiration date. | |
| The agent collects the debit card CVV using the Credit card CVV collection prebuilt component. | |
| Great, we are done with collecting the CVV. | |
| Okay, we are going to make a payment of $50 to Jane with the debit card number ending in 1234. Do you confirm this action? | |
| Yes | |
| To proceed we will send you a code. Do you prefer to receive the code by phone or email? | |
| Email please | |
| We have sent a code to your registered email john.doe@google.com. This may take a few seconds. Can you please confirm the code? | |
| 123456 | |
| Okay, please wait for a few seconds while we are making the payment. Your beneficiary account payment was successful. |
Credit card bill payment
- The agent identifies that the user hasn't been previously authenticated and collects information to verify that the user is a registered user.
- The user indicates that they'd like to make a payment towards their credit card bill using their bank account.
- The agent confirms the payment amount and payment method details and completes the payment.
| User Input | Agent Response |
|---|---|
| The agent authenticates the user using the Authentication prebuilt component. | |
| Thank you, you have been successfully authenticated. | |
| Would you like to pay your registered credit card bill or make a payment to an existing beneficiary account? | |
| Credit card bill | |
| Can you please help us with the last 4 digits of the credit card number you are referring to? | |
| 4321 | |
| The last four digits of the credit card number that we got are 4321, is that correct? | |
| Yes | |
| Your total due amount is $300 and your minimum payment is $20. Do you wish to pay the total amount, the minimum amount, or any other amount? | |
| Total amount | |
| Do you want to pay by your bank account, debit card or mobile payment? | |
| Savings account | |
| We have found that there are 2 accounts associated with your number. Can you please help us with the last 4 digits of the account you are referring to? | |
| 1001 | |
| The last four digits of the account number that we got are 1001, is that correct? | |
| Yes | |
| Okay, we are going to make a payment of $300 for your credit card bill ending in 4321 with the account number ending in 1001. Do you confirm this action? | |
| Yes | |
| To proceed we will send you a code. Do you prefer to receive the code by phone or email? | |
| Send it to my email | |
| We have sent a code to your registered email john.doe@google.com. This may take a few seconds. Can you please confirm the code? | |
| 123456 | |
| Okay, please wait for a few seconds while we are making the payment. Your credit card payment was successful. |
Insufficient funds or limits
- The agent identifies that the user hasn't been previously authenticated and collects information to verify that the user is a registered user.
- The user attempts to make payments to their credit card bill using their bank account and their debit card, but both payments are declined due to insufficient funds or limits.
- The user opts to make a mobile payment.
- The agent sends the user a link to complete the payment by mobile.
| User Input | Agent Response |
|---|---|
| The agent authenticates the user using the Authentication prebuilt component. | |
| Thank you, you have been successfully authenticated. | |
| Would you like to pay your registered credit card bill or make a payment to an existing beneficiary account? | |
| Credit card | |
| Can you please help us with the last 4 digits of the credit card number you are referring to? | |
| 4321 | |
| The last four digits of the credit card number that we got are 4321, is that correct? | |
| Yes | |
| Your total due amount is $300 and your minimum payment is $20. Do you wish to pay the total amount, the minimum amount, or any other amount? | |
| Total amount | |
| Do you want to pay by your bank account, debit card or mobile payment? | |
| Savings | |
| We have found that there are 2 accounts associated with your number. Can you please help us with the last 4 digits of the account you are referring to? | |
| 1002 | |
| The last four digits of the account number that we got are 1002, is that correct? | |
| Yes | |
| Okay, we are going to make a payment of $300 for your credit card bill ending in 4321 with the account number ending in 1002. Do you confirm this action? | |
| Yes | |
| To proceed we will send you a code. Do you prefer to receive the code by phone or email? | |
| We have sent a code to your registered email john.doe@google.com. This may take a few seconds. Can you please confirm the code? | |
| 123456 | |
| Okay, please wait for a few seconds while we are making the payment. Your payment failed due to insufficient funds in the account. Do you want to retry the payment with another payment method? |
|
| Yes | |
| Do you want to pay by your bank account, debit card or mobile payment? | |
| Debit card | |
| Can you please help us with the last 4 digits of the debit card number you are referring to? | |
| 2345 | |
| The last four digits of the debit card number that we got are 2345, is that correct? | |
| Yes | |
| The agent collects the debit card expiration date using the Credit card expiration date collection prebuilt component. | |
| Great, we are done with collecting the debit card's expiration date. | |
| The agent collects the debit card CVV using the Credit card CVV collection prebuilt component. | |
| Great, we are done with collecting the CVV. | |
| Okay, we are going to make a payment of $300 for your credit card bill ending in 4321 with the debit card number ending in 2345. Do you confirm this action? | |
| Yes | |
| To proceed we will send you a code. Do you prefer to receive the code by phone or email? | |
| We have sent a code to your registered email john.doe@google.com. This may take a few seconds. Can you please confirm the code? | |
| 123456 | |
| Okay, please wait for a few seconds while we are making the payment. Your payment failed since the limit was exceeded in the debit card. Do you want to retry the payment with another payment method? |
|
| Yes | |
| Do you want to pay by your bank account, debit card or mobile payment? | |
| Mobile | |
| Okay, we are sending the payment link to your registered mobile number. This action can take a few seconds. Please confirm by saying yes if you have received it. | |
| Yes | |
| Great, now you can open the link and continue your payment. |
Naming conventions
This prebuilt component uses the following naming conventions:
| Feature | Format | Example |
|---|---|---|
| Flow | [Component Name] | Make A Payment |
| Component Specific Intent | prebuilt_components_[component_name]_[intent_name] | prebuilt_components_make_a_payment_payment_type |
| Entity Type | prebuilt_components_[component_name]_[entity_type] | prebuilt_components_make_a_payment_payment_mode |
| Webhook | prebuilt_components_[component_name]:[webhook_action] | prebuilt_components_make_a_payment:process_payment_credit_card |
Input parameters
Input parameters configure certain behaviors of the component. One or more conditions within the flow use these parameters to determine how the component behaves. You must set flow-scoped parameters on the start page of the component. You can set session-scoped parameters using a calling flow or on the start page of this component.
This prebuilt component accepts the following input parameters:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.auth_level | (optional) Indicates the authentication level of the caller. | integer |
| $session.params.auth_level_req | Indicates the level of authentication needed before the user can make a payment. This value is configured in the parameter presets of the page entry fulfillment on the check auth level page. By default, this value is 1. |
integer |
| $session.params.account_auth_enabled | Indicates whether the user should be authenticated as an account holder as described in Authentication types. This value is configured in the parameter presets of the page entry fulfillment on the check auth level page. By default, this value is true. |
boolean |
| $session.params.card_auth_enabled | Indicates whether the user should be authenticated as a card holder as described in Authentication types. This value is configured in the parameter presets of the page entry fulfillment on the check auth level page. By default, this value is false. |
boolean |
| $session.params.phone_number | (optional) The user's registered phone number used for authentication. | string |
| $flow.payment_success_code | Specifies the value of the payment_status_code field returned by the process_payment webhooks indicating that the payment is successful. By default, this value is "200". |
string |
| $flow.insufficient_fund_code | Specifies the value of the payment_status_code field returned by the process_payment webhooks indicating that the payment cannot be completed due to insufficient funds. By default, this value is "400". |
string |
| $flow.limit_exceed_code | Specifies the value of the payment_status_code field returned by the process_payment webhooks indicating that the payment cannot be completed due to the daily limit being exceeded. By default, this value is "401". |
string |
| $flow.max_retry_mop_counter | Specifies the number of times the user is allowed to change their method of payment. The default value is 2. |
integer |
| $flow.max_retry_credit_card_payment | Specifies the number of retries allowed when attempting to make a payment using a credit card as the method of payment. The default value is 3. |
integer |
| $flow.max_retry_mobile_payment_counter | Specifies the number of retries allowed when attempting to make a payment using mobile payment as the method of payment. The default value is 2. |
integer |
| $flow.max_retry_creditcard_count | Specifies the number of retries allowed when collecting a valid credit card number to make a payment. The default value is 3. |
integer |
| $flow.max_retry_acc_number | Specifies the number of retries allowed when collecting valid account details to make a payment. The default value is 3. |
integer |
| $flow.max_retry_debit_card_details | Specifies the number of retries allowed when collecting valid debit card details to make a payment. The default value is 3. |
integer |
| $flow.max_retry_credit_card_details | Specifies the number of retries allowed when collecting valid credit card details to make a payment. The default value is 3. |
integer |
| $flow.otp_length | Specifies the expected length of the one-time password sent to the user. The default value is 6. |
integer |
| $flow.max_retry_otp_count | Specifies the number of retries allowed when collecting a valid one-time password (OTP) from the user. The default value is 3. |
integer |
| $flow.max_waiting_room_counter | Specifies the number of times the user can ask the agent to wait as they receive the link for mobile payment. The default value is 2. |
integer |
To configure the input parameters for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Build tab.
- Click the imported component in the Flows section.
- Click the Start Page in the Pages section.
- Click the true Route in the Start Page.
- In the Route window, edit the Parameter Presets values as needed.
- Click Save.
Output parameters
Output parameters are session parameters that remain active after exiting the component. These parameters contain important information collected by the component.
This prebuilt component provides values for the following output parameters:
| Parameter Name | Description | Output Format |
|---|---|---|
| auth_level | Indicates the authentication level of the caller. | integer |
| phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| transfer_reason | Indicates the reason the flow exited when it's unsuccessful. The returned value can be one of the following:agent: the user requested a human agent at some point during the conversation.denial_of_information: the user declined to share information requested by the component.max_no_input: the conversation reached the maximum number of retries for no-input events. See no-input built-in events.max_no_match: the conversation reached the maximum number of retries for no-match events. See no-match built-in events.webhook_error: a webhook error occurred. See webhook.error built-in event. webhook_not_found: a webhook URL was unreachable. See webhook.error.not-found built-in event. |
string |
Basic setup
To set up this prebuilt component, follow these steps:
- Import the prebuilt component.
- Configure the provided flexible webhooks with settings describing your external services. For more information, see the Webhook setup section.
Webhook setup
To use this component, configure the included flexible webhooks to retrieve the necessary information from your external services.
Authentication
If you haven't configured the external services required for authentication, configure them to enable user authentication for this component. For more information, see Authentication webhook setup.
Validate account
The component uses the prebuilt_components_account_services:validate_account
webhook to verify that an account exists based on the user's registered phone
number and the last four digits of the account number provided. The webhook
also returns the account balance, if an account exists.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $session.params.last_four_digit_of_account_number | The last four digits of the account number the user selected and confirmed to make a payment on. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| account_found | Indicates whether an account with the provided last four digits exists for the user's registered account. | boolean |
| balance | The amount of the current balance on the account, if it exists. | number |
To configure the Validate account webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_account_services:validate_account webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
User card details
The component uses the prebuilt_components_make_a_payment:user_card_details
webhook to retrieve details for the registered user's debit and credit cards.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| credit_card_count | The number of credit cards associated with the registered phone number. | integer |
| last_four_digit_of_credit_card_number | The last four digits of the user's credit card. If the user has multiple credit cards, this value is null. |
string |
| debit_card_count | The number of debit cards associated with the registered phone number. | integer |
| last_four_digit_of_debit_card_number | The last four digits of the user's debit card. If the user has multiple debit cards, this value is null. |
string |
To configure the User card details webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:user_card_details webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Verify beneficiary name
The component uses the
prebuilt_components_make_a_payment:verify_beneficiary_name webhook to verify
that a beneficiary account exists for the name provided by the user.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $session.params.name_collection_first_name | The first name of the beneficiary. | string |
| $session.params.name_collection_last_name | The last name of the beneficiary. | string |
| $session.params.name_collection_middle_name | The middle name of the beneficiary. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| beneficiary_account_number | The last four digits of the beneficiary account number for the beneficiary name provided. If a beneficiary account for the provided name isn't found, the value is null. |
string |
To configure the Verify beneficiary name webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:verify_beneficiary_name webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Get due amount
The component uses the prebuilt_components_make_a_payment:get_due_amount
webhook to get information about the minimum and total amount due for the user's
credit card bill.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $flow.user_credit_card_number | The last four digits of the user's credit card. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| minimum_amount | The minimum amount due for the specified credit card bill. | number |
| total_amount | The total amount due for the specified credit card bill. | number |
To configure the Get due amount webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:get_due_amount webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Verify credit card number
The component uses the
prebuilt_components_make_a_payment:verify_credit_card_number webhook to verify
that the provided credit card number is registered to the user's account.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $flow.user_credit_card_number | The last four digits of the user's credit card. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| card_found | Indicates whether the provided credit card was found. | boolean |
To configure the Verify credit card number webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:verify_credit_card_number webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Verify credit card details
The component uses the
prebuilt_components_make_a_payment:verify_credit_card_details webhook to
verify that the provided details, including the expiration date and CVV, are
valid for the user's credit card.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $flow.credit_card_number | The last four digits of the user's credit card. | string |
| $flow.credit_card_exp_date | The provided credit card expiration date for the specific credit card. | { |
| $flow.credit_card_cvv_code | The provided CVV code for the specified credit card. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| creditcard_verification_status | Indicates whether the provided credit card details are validated. | boolean |
To configure the Verify credit card details webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:verify_credit_card_details webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Verify debit card details
The component uses the
prebuilt_components_make_a_payment:verify_debit_card_details webhook to verify
that the provided details, including the expiration date and CVV, are valid for
the user's debit card.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $flow.debit_card_number | The last four digits of the user's debit card. | string |
| $flow.debit_card_exp_date | The provided debit card expiration date for the specified debit card. | { |
| $flow.debit_card_cvv_code | The provided CVV code for the specified debit card. | string |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| debitcard_verification_status | Indicates whether the provided debit card details are validated. | boolean |
To configure the Verify debit card details webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:verify_debit_card_details webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Process credit card payment
The component uses the
prebuilt_components_make_a_payment:process_payment_credit_card webhook to
process a payment using the provided credit card details.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $flow.payee_number | The last four digits of the payee's account number for the payment. | string |
| $flow.payment_type | The payment type for the payment. Valid values are defined by the prebuilt_components_make_a_payment_payment_type custom entity. By default, this component supports "beneficiary_pay" and "credit_card_pay". |
string |
| $flow.credit_card_number | The last four digits of the user's credit card. | string |
| $flow.credit_card_exp_date | The provided credit card expiration date for the specified credit card. | { |
| $flow.credit_card_cvv_code | The provided CVV code for the specified credit card. | string |
| $flow.payment_amount | The amount the user has opted to pay. | number |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| payment_status_code | Indicates whether the payment is successful. Valid values are defined by the $flow.payment_success_code, $flow.insufficient_fund_code, and $flow.limit_exceed_code configurable input parameters. |
string |
To configure the Process credit card payment webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:process_payment_credit_card webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Process debit card payment
The component uses the
prebuilt_components_make_a_payment:process_payment_debit_card webhook to
process a payment using the provided debit card details.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $flow.payee_number | The last four digits of the payee's account number for the payment. | string |
| $flow.payment_type | The payment type for the payment. Valid values are defined by the prebuilt_components_make_a_payment_payment_type custom entity. By default, this component supports "beneficiary_pay" and "credit_card_pay". |
string |
| $flow.debit_card_number | The last four digits of the user's debit card. | string |
| $flow.debit_card_exp_date | The provided debit card expiration date for the specified debit card. | { |
| $flow.debit_card_cvv_code | The provided CVV code for the specified debit card. | string |
| $flow.payment_amount | The amount the user has opted to pay. | number |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| payment_status_code | Indicates whether the payment is successful. Valid values are defined by the $flow.payment_success_code, $flow.insufficient_fund_code, and $flow.limit_exceed_code configurable input parameters. |
string |
To configure the Process debit card payment webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:process_payment_debit_card webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Process account payment
The component uses the
prebuilt_components_make_a_payment:process_payment_account webhook to process
a payment using the provided account details.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $flow.payee_number | The last four digits of the payee's account number for the payment. | string |
| $flow.payment_type | The payment type for the payment. Valid values are defined by the prebuilt_components_make_a_payment_payment_type custom entity. By default, this component supports "beneficiary_pay" and "credit_card_pay". |
string |
| $session.params.last_four_digit_of_account_number | The last four digits of the user's account. | string |
| $flow.payment_amount | The amount the user has opted to pay. | number |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| payment_status_code | Indicates whether the payment is successful. Valid values are defined by the $flow.payment_success_code, $flow.insufficient_fund_code, and $flow.limit_exceed_code configurable input parameters. |
string |
To configure the Process account payment webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:process_payment_account webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Process mobile payment
The component uses the
prebuilt_components_make_a_payment:process_payment_mobile webhook to generate
and send a mobile payment link for the user's selected payment details.
API request parameters
The component provides the following parameters as inputs to the API request:
| Parameter Name | Description | Input Format |
|---|---|---|
| $session.params.phone_number | The user's local phone number, without the country code, used to identify the user. | string |
| $flow.payee_number | The last four digits of the payee's account number for the payment. | string |
| $flow.payment_type | The payment type for the payment. Valid values are defined by the prebuilt_components_make_a_payment_payment_type custom entity. By default, this component supports "beneficiary_pay" and "credit_card_pay". |
string |
| $flow.payment_amount | The amount the user has opted to pay. | number |
API response parameters
The component retrieves the following parameters from the API response:
| Parameter Name | Description | Output Format |
|---|---|---|
| payment_link_generated | Indicates whether the mobile payment link is successfully generated and sent to the user. | boolean |
To configure the Process mobile payment webhook for this component, expand for instructions.
- Open the Dialogflow CX console.
- Choose your Google Cloud project.
- Select your agent.
- Select the Manage tab.
- Click Webhooks.
- Select the prebuilt_components_make_a_payment:process_payment_mobile webhook.
- Replace the URL in the Dialogflow CX Webhook URL field with the endpoint for the service you want to integrate with. Select the proper Method in the dropdown.
- Review and update the Request body to form the proper request format for your webhook.
- Review and update the Response configuration to extract specific fields from your webhook's response. Do not modify the parameter names, as these are required by the component to access the returned field values.
- Review and update the Authentication settings as needed.
- Click Save.
Complete
The prebuilt component and its webhooks are now set up and ready to test.