[asterisk-users] Credit Card processing machines

Andrew Joakimsen joakimsen at gmail.com
Wed Feb 18 13:10:23 CST 2009


On Wed, Feb 18, 2009 at 12:50, bilal ghayyad <bilmar_gh at yahoo.com> wrote:
> And is there a bank accept to give such kind of communication?
>
> The user was able to dial his card number and the amount from his phone (or IP Phone registered with Asterisk), and Asterisk communicate with the bank or company credit card provider?
>
> How the user will enter $50.25?
> What about expiration date of the credit card?
>

Where there are two solutions:

1) The bank provides the service... you do nothing but call the number
they provide.

2) The bank provides some sort of API (authorize.net is common in the
United States of America) and you write code (an AGI script) that a)
accepts the input via the phone b) communicates with the bank using
the API, probably via the internet using some sort of encryption
(HTTPS is pretty common)

Answers to your questions:

1) Probably just by entering 5025
2) Probably just by entering MMYY (month, month, year, year. e.g.:
1210 = December of 2010)

This is rather simple since the format is known. Currency usually has
two decimal places and years are again a standard format. If using
option 2) above it would be wise to provide a confirmation (user dials
5025 and then a prompt would say "You entered fifty dollars
twenty-five cents. Is that correct?", etc.)



More information about the asterisk-users mailing list