No experience with ePDQ, but I do use curl to access another online processor (for Direct Debit transactions) via https.
I'm no expert with curl, but in my case on OS X it's actually very simple via 4D (v2004), and only really one call to LEP. Something like this : [In my case I'm sending xml data containing the DD info] C_TEXT($inputStream_t;$errorStream_t;$ShellResults_t;$ClaimCommand_t) $inputStream_t:="" $errorStream_t:="" $ShellResults_t:="" $ClaimCommand_t:="curl -d '<my_xml_goes_here>' https://target_url_goes_here" LAUNCH EXTERNAL PROCESS($ClaimCommand_t+"\n";$inputStream_t;$ShellResults_t;$errorStream_t) $ShellResults_t contains the results of the call - in my case more XML... Can't remember why I've got the \n after the command :-) HTH John On 2 Feb 2011, at 4:43 pm, David Wright wrote: > Adrian > > I'm trying to do exactly the same thing, without much success. > > You'll find a previous thread, in which Aparajita recommends: >> Call a 4D method that does the post and returns the result. There are >> various ways to do this -- using 4D IC or using LAUNCH EXTERNAL PROCESS to >> call curl or wget. > > However 4D IC v2004 does not support secure connections, which Barclaycard > requires, and my modest brain does not know where to start with curl or wget. > > I found a developer who could sort this out for me (but it was going to be > expensive), so I am currently planning on using PayPal instead. > > For another company we use our A4D server to take secure payments through RBS > Worldpay without any problems at all. Barclaycard's requirements are just too > onerous, and they don't offer any support for 4D. > > If you do make any progress I'd be interested to hear about it! > > Thanks > > David Wright > > > On 2 Feb 2011, at 16:29, Brad Perkins wrote: > >> Adrian, >> >> I have not done the ePDQ integration, but these types of task >> typically involve writing 4D methods that encrypt the data, send the >> request, and receive and process the responses. >> Your Active4D code will call the 4D method that handles all of that. >> The 4D method will respond with information that your Active4D >> method will use to proceed accordingly. >> >> Depending on the encryption requirements you may need a plugin. >> The free 4D Internet Commands plugin can be used to send and receive >> the requests, but I would recommend you look at the commercial NTK >> plugin by Pluggers if you don't already have it. >> I think 4D has posted Tech Notes or Tech Tips that outline the basic >> process of sending/receiving and HTTP requests. Search kb.4d.com or >> ask for examples on one of the more general 4D mailing lists. >> >> Best, >> >> Brad Perkins >> >> On 2/2/11 9:09 AM, Adrian Elson wrote: >>> Hello all, >>> >>> >>> >>> I need to integrate a 4D v11.8 / Active 4D v5 / Windows website with >>> Barclaycard's ePDQ CPI. I have all the integration documentation from >>> ePDQ (and have even read it), however I'm unsure how and where to set up >>> the various Active 4D / 4D bits to encrypt the data, POST it to the ePDQ >>> server, and deal with the two sets of responses. I've searched the web >>> but can't find any examples. I'm very familiar with 4D, but this is my >>> first Active 4D project, so I've much to learn. >>> >>> >>> >>> Has anyone out there done the same? And if so, would you be kind enough >>> give me a step-by-step guide or examples, or even point me in the right >>> direction please? >>> >>> >>> >>> Many thanks, >>> >>> Adrian >>> >>> Symbiosys Business Solutions >>> >>> Park View House, Worrall Street, Congleton, Cheshire, CW12 1DT >>> >>> T : 01260 281700 >>> >>> F : 01260 281712 >>> >>> M : 07793 768346 >>> >>> E : [email protected] >>> <blocked::mailto:[email protected]> >>> >>> W : www.symbiosys-bs.co.uk <blocked::http://www.symbiosys-bs.co.uk/> >>> >>> This e-mail (which includes any files transmitted with it) is intended >>> for the above named only. If you are not the intended recipient please >>> notify the sender immediately and confirm that all copies have been >>> deleted from your computer system. This e-mail is protected by >>> copyright. Unless you are the intended recipient you should not use, >>> disclose or copy the e-mail nor should you rely upon it in any way >>> whatsoever. All liability for viruses is excluded to the fullest extent >>> permitted by law. Any views expressed in this message are those of the >>> individual sender, except where the sender specifically states them to >>> be the views of Symbiosys Business Solutions. >>> >>> >>> >>> _______________________________________________ >>> Active4D-dev mailing list >>> [email protected] >>> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev >>> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ >>> >> >> _______________________________________________ >> Active4D-dev mailing list >> [email protected] >> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev >> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ > > _______________________________________________ > Active4D-dev mailing list > [email protected] > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev > Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
