Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

Could you point a strategy to integrate VFP apps to submit credit card (and other electronic payments) transactions?

Hi Experts

Could you point a strategy to integrate VFP apps to submit credit card (and other electronic payments) transactions?

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Hi Pavel

Based on your reply it seens that the better way is trying to use web code that at a first sight is very
commonly found (PHP would be my choice) to do the heavy job as a web service.

Maybe the credit card, values and other informations could be consumed indirectly from the VFP app - it
saves this data at a local folder or send this information to a WEB endpoint, in a manner it could be
securelly used by the CC operator... just elucubrations.

A purelly web job is easylly to start.. but on my case the process must to start at VFP app.
Hi Eduardo,
VFP may invoke the web page start and display some initial values necessary for the payment. The rest - the CC number and other client's data - is better to keep outside of your application and computer. It is always safer when CC data are collected and processed by trusted 3rd party company. Of course, this way also means reduced profit because the 3rd party does not do it for a free...

I agree it's to much safer.
Do you know a way to call a web page to be shown from a VFP app?
You may either include the IE OLE control onto VFP form (I just don't know how long this will be supported). One way is described here: http://yousfi.over-blog.com/2015/01/who-said-that-vfp-ie-browser-died.html 
Or you may simply try to create a form, and select Microsoft Web browser as an OLE control.

Another way is to invoke the standalone browser instance via ShellExecute:
DECLARE INTEGER ShellExecute IN shell32.dll ; 
 INTEGER hndWin, ; 
 STRING cAction, ; 
 STRING cFileName, ; 
 STRING cParams, ; 
 STRING cDir, ; 
 INTEGER nShowWin

ShellExecute(0,"open",'http://www.YourPage.com/index.html',"","",1)

Open in new window

Above command line invokes the default browser to which you may send whatever parameters you need in URL.

Pavel

Thank you very much for the guidance!