Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: How does Ecommerce work? Date: Fri, 1 Apr 2016 22:19:52 +0200 Lines: 39 Message-ID: References: <5bf3406f-3ecb-41ac-bd20-206c5a9d86bb@googlegroups.com> <1a7b3128-2142-492b-be03-a406f1371ca5@googlegroups.com> <0e1d2d8e-086c-4c69-b3e8-9117721287ba@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net wKnE5cjt1wQJbCOws8lIJwWOzL6n4WHhKgSrB1mp4jon6MJmeP Cancel-Lock: sha1:vDKBHavdkvyerD45RPekl8ElX5A= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 In-Reply-To: Xref: csiph.com comp.lang.php:16712 On 04/01/2016 09:25 PM, Jerry Stuckle wrote: > On 4/1/2016 2:33 PM, bit-naughty@hotmail.com wrote: >> On Wednesday, March 30, 2016 at 2:02:47 AM UTC+5:30, Gordon Burditt wrote: >> >>> If you just want to see what it's like, without really using the >>> code on real credit card numbers, go to: >>> >>> https://github.com/thephpleague/omnipay >>> >>> scroll down the page, and there's a short example code in PHP, along >>> with a very long list of payment processors supported. Also on the >>> same (very long) page, there's an explanation of how it works. The >>> code is open source. >>> >> >> >> Aah bro - that helped, greatly! :) However, my PHP knowledge is not at the point where I can decode all of it, but don't worry, I shall sit down with my book and figure it out. >> >> Let me rephrase my question - can anyone explain to me what's happening _at HTTP level_ from the moment the user clicks "Checkout", till the time he or she gets the "Order Successfully Placed" message? *This* is what I really want to know - after that, coding it in PHP, with or without a library should be easy, or at least easiER than NOT knowing it..... :) >> Can anyone help? >> > > It depends on what you're doing as well as the payment processor you're > using. Every one is different. Not all uses http(s) for communication and others have a mix of things, so yes, it's really different how things works for a PSP and I know some that has more than one API to use, which can complicate things even more. > And no, even knowing it does NOT make it easy to code, even with a library. Some PSP's do supply an example code how to use their service in different languages, those can help, but still as you said earlier, better get a professional to do it when you don't know how. -- //Aho