How To Verify Validity Of Credit Card In IVR Module

Purpose:implement the function of IVR to verify validity of credit card,including validity of card‘s digit and date。It can return a value after judging by a program(http/webservice),the value is valid or invalid。

Add Announcements

As an example to “Welcome”,other IVR announcements could be added in the same way。[Advanced]→[Announcements],click the [Add],make a name and click [Save],then [Add/Edit Sound]→[TTS],as following:

Add Main IVR Flow

The main Flow used to Verify the credit number。Click[Advanced]→[IVR]→[Add],you can new a page of main flow,as following:

Action

1.Add the “Answer” action。

2.Add the “ReadData” action,you can hear “Hello,welcome to the credit card center,please input your card number,and end by # “,and then put the card number into the variable quantity named“CARDNO”。

3.Add the “Play Announce” action,you can hear “The number you input is:”,loop time is 1。

4.Add the “Saydigits” action,you can hear the number stored in variable quantity named“CARDNO”。Distinguish the difference between “Saydigits” and “Saynumber”。

5.Add the “ReadData” action,you can hear “Press 1 mean confirming,else press 2”,and store the press number into the variable quantity named “OK1”。

Transfer

On the main flow above,the last action can be get a value,and put it into the variable quantity named “OK1”。

When the value is “1”,transfer to the “first sub IVR flow”,enter the IVR named “Out of date” to verify validity of card date。

When the value is “2”,return to this “Main IVR Flow”,enter the IVR named “Verification of cd” to obtain the card number。

Add the “First Sub IVR Flow”

This sub flow used to judge validity date of the card。To [Transfer] label,“Transfer” to IVR,click “OK” on the right of ActionID,Click [Save],we will turn to sub IVR adding/edting page automatically,as following:

when edit it again,you can Click[Advanced]→[IVR],double click the main IVR flow,then click [View Sub IVR Flow],as following:

Action

1.Add the “ReadData” action。you can hear “Please input valid date of the card:for example,October of 2015,you should press 1 5 1 0”,then put the date value to “DATENO”。

2.Add the “Play Announce” action。you can hear “the valid date of card you input is:”,loop time is 1。

3.Add the “Saydigits” action,you can hear the date stored in the variable quantity named “DATENO”。

4.Add the “ReadData” action,you can hear “Press 1 mean confirming,else press 2”,and store the press number into the variable quantity named “OK2”。

Transfer

The last action in the main IVR flow is “ReadData”,the data obtained be stored into the variable quantity named “OK2”。

When the value of “OK2” is “1”,transfer to the “second sub IVR flow”,enter the IVR named “the IVR__http” to pass two values of card to HTTP/Webservice。

When the value of “OK2” is “2”,return to this “Sub IVR Flow”,enter the IVR named “Out of date” to obtain the valid date of the card。

Add the “Second Sub IVR Flow”

The purpose of this IVR flow is obtain the return values from HTTP/Webservice,and then put the values into the global variability named “R1”(R1 can be calling in all IVR)。At the same time,HTTP/Webservice also return a default value to “inputcode”。

Action

Add the “HTTP” action,pass two values into two parameters of HTTP/Webservice,return a values into the global variability named “R1”。

Notice:

1.The format of “HTTP Param”:inputcode|cardno=CARDNO|validdate=DATENO,(cardno and validdate are parameters from HTTP/Webservice,CARDNO and DATENO are number and date of card respectively from IVR。The head of them is “inputcode” default,so we don't write it usually。Two variabilities should be separated by “|”。So,we fill here as following :cardno=CARDNO|validdate=DATENO。

2.The format of “HTTP Return”:inputcode|return value,The head is “inputcode” default,so we don't write it usually。The value of return obtain from HTTP program。If return several return values,we need separate them by “|”。

3.If you set the return value from HTTP to be global variabilities,you should definite it by capital letters。The global variabilities of “Globalvar” should be same as “HTTP Return” exactly。

Transfer

When the value of “inputcode” is “1”,transfer to the “third sub IVR flow”,enter the IVR named “cd_Overage” to broadcast “The overage of your credit card is:“。

When the value of “inputcode” is “0”,transfer to the “fourth sub IVR flow”,you can hear “The card number you entered does not exist,press * if you want to re-enter”。

Add the “Third Sub IVR Flow”

If the number and date of card are correct,you can hear the overage。You should press 0 if you want to listen again。

Action

1.Add “Play Announce” action,you can hear “The overage of your credit card is:”。

2.Add “Sayamount” action。Broadcasting the return value which have been stored in the global variability named “R1” from HTTP。

3.Add “ReadData” action。You can hear “You should press 0 if you want to listen again”。

Transfer

When inputcode is 0 in the above “ReadData” action from the third Sub IVR Flow,it will transfer to IVR named “cd_Overage”。

Add the “Fourth Sub IVR Flow”

In the transfer of “the Second Sub IVR Flow”,When the “inputcode” is 0,it will turn to this flow。

Action

Add “ReadData” action,you can hear “The card number you entered does not exist,press * if you want to re-enter”。

Transfer

When “inputcode” get * in above “ReadData” action,it will turn to the most beginning-“Main IVR Flow” named “Verification of cd”。

en/how-to/how_to_verify_validity_of_credit_card_in_ivr_module.txt · Last modified: 2017/12/12 11:05 (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki