You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Abdullah Shaikh <ab...@viithiisys.com> on 2009/11/03 15:15:57 UTC

SagePay Integrated

I have integrated SagePay payment gateway into ofbiz accounting component,
which I would like to contribute.

For this I have used Apache httpcomponents-client-4.0, is it ok ?

I have choose to use httpcomponent because it is easy to send parameters &
fetch response from the gateway, compared to using Socket class, and
manually forming string and parsing the response string.

If its ok then we can add the httpcomponents to the framework/base/lib
folder, currently I have added the jar in accounting/lib.

Regards,
Abdullah
http://www.viithiisys.com

Re: SagePay Integrated

Posted by Raj Saini <ra...@gmail.com>.
Hi Jacques,

I do not see any of SagePay code or libs are involved. As Abdul said 
only external dependency is Apache http client library which is Apache 
licensed. This implementation is similar to Authorize.net.

Thanks,

Raj

Jacques Le Roux wrote:
> But isn't the SagePay payment gateway licence commercial ?
>
> Jacques
>
> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>> I have integrated SagePay payment gateway into ofbiz accounting 
>> component,
>> which I would like to contribute.
>>
>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>
>> I have choose to use httpcomponent because it is easy to send 
>> parameters &
>> fetch response from the gateway, compared to using Socket class, and
>> manually forming string and parsing the response string.
>>
>> If its ok then we can add the httpcomponents to the framework/base/lib
>> folder, currently I have added the jar in accounting/lib.
>>
>> Regards,
>> Abdullah
>> http://www.viithiisys.com
>>
>
>


Re: SagePay Integrated

Posted by Abdullah Shaikh <ab...@viithiisys.com>.
Yesterday after submiting the patch it was quite late here so couldn't write
on the integration.

Here is the link http://viithiisys.com/web/abdullah/blog.html explaining the
integration and configuration for anybody planning to use Sagepay.

-Abdullah

On Mon, Nov 9, 2009 at 10:07 PM, Abdullah Shaikh <
abdullah.shaikh@viithiisys.com> wrote:

> SagePay payment gateway integrated -
> https://issues.apache.org/jira/browse/OFBIZ-3180
>
> - Abdullah
> http://www.viithiisys.com
>
>
> On Fri, Nov 6, 2009 at 7:59 PM, Abdullah Shaikh <
> abdullah.shaikh@viithiisys.com> wrote:
>
>> Sorry guys .. I just wanted to do some clean up of code before submitting,
>> but before I could do that I got a task for a some demo project which took
>> me 4 days to complete :)
>>
>> I will work on this weekend on clean up ....
>>
>>
>> On Wed, Nov 4, 2009 at 6:55 AM, Tim Ruppert <ti...@hotwaxmedia.com>wrote:
>>
>>> Looking forward to seeing the new integrations!
>>>
>>> Cheers,
>>> Ruppert
>>> f:801.649.6595
>>>
>>>
>>> On Nov 3, 2009, at 11:03 AM, Jacques Le Roux wrote:
>>>
>>>  OK, it was not clear to me, thanks
>>>> If it's done the same way other gateways are implement I can't see any
>>>> issue using httpcomponents-client-4.0, and yes it should be located
>>>> framework/base/lib.
>>>> I suggest to open a Jira
>>>>
>>>> Jacques
>>>>
>>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>>
>>>>> Hi Jacques,
>>>>>
>>>>> I didn't get you .... If you meant any sagepay code is involved, then
>>>>> its
>>>>> not, I have implemented it same as any other payment gateways are
>>>>> integrated
>>>>> in ofbiz, for example authorize.net.
>>>>>
>>>>> On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
>>>>> jacques.le.roux@les7arts.com> wrote:
>>>>>
>>>>>  But isn't the SagePay payment gateway licence commercial ?
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>>>>
>>>>>> I have integrated SagePay payment gateway into ofbiz accounting
>>>>>> component,
>>>>>>
>>>>>>> which I would like to contribute.
>>>>>>>
>>>>>>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>>>>>>
>>>>>>> I have choose to use httpcomponent because it is easy to send
>>>>>>> parameters &
>>>>>>> fetch response from the gateway, compared to using Socket class, and
>>>>>>> manually forming string and parsing the response string.
>>>>>>>
>>>>>>> If its ok then we can add the httpcomponents to the
>>>>>>> framework/base/lib
>>>>>>> folder, currently I have added the jar in accounting/lib.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Abdullah
>>>>>>> http://www.viithiisys.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>
>>>>
>>>
>>
>

Re: SagePay Integrated

Posted by Abdullah Shaikh <ab...@viithiisys.com>.
SagePay payment gateway integrated -
https://issues.apache.org/jira/browse/OFBIZ-3180

- Abdullah
http://www.viithiisys.com

On Fri, Nov 6, 2009 at 7:59 PM, Abdullah Shaikh <
abdullah.shaikh@viithiisys.com> wrote:

> Sorry guys .. I just wanted to do some clean up of code before submitting,
> but before I could do that I got a task for a some demo project which took
> me 4 days to complete :)
>
> I will work on this weekend on clean up ....
>
>
> On Wed, Nov 4, 2009 at 6:55 AM, Tim Ruppert <ti...@hotwaxmedia.com>wrote:
>
>> Looking forward to seeing the new integrations!
>>
>> Cheers,
>> Ruppert
>> f:801.649.6595
>>
>>
>> On Nov 3, 2009, at 11:03 AM, Jacques Le Roux wrote:
>>
>>  OK, it was not clear to me, thanks
>>> If it's done the same way other gateways are implement I can't see any
>>> issue using httpcomponents-client-4.0, and yes it should be located
>>> framework/base/lib.
>>> I suggest to open a Jira
>>>
>>> Jacques
>>>
>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>
>>>> Hi Jacques,
>>>>
>>>> I didn't get you .... If you meant any sagepay code is involved, then
>>>> its
>>>> not, I have implemented it same as any other payment gateways are
>>>> integrated
>>>> in ofbiz, for example authorize.net.
>>>>
>>>> On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
>>>> jacques.le.roux@les7arts.com> wrote:
>>>>
>>>>  But isn't the SagePay payment gateway licence commercial ?
>>>>>
>>>>> Jacques
>>>>>
>>>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>>>
>>>>> I have integrated SagePay payment gateway into ofbiz accounting
>>>>> component,
>>>>>
>>>>>> which I would like to contribute.
>>>>>>
>>>>>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>>>>>
>>>>>> I have choose to use httpcomponent because it is easy to send
>>>>>> parameters &
>>>>>> fetch response from the gateway, compared to using Socket class, and
>>>>>> manually forming string and parsing the response string.
>>>>>>
>>>>>> If its ok then we can add the httpcomponents to the framework/base/lib
>>>>>> folder, currently I have added the jar in accounting/lib.
>>>>>>
>>>>>> Regards,
>>>>>> Abdullah
>>>>>> http://www.viithiisys.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>
>>>
>>
>

Re: SagePay Integrated

Posted by Abdullah Shaikh <ab...@viithiisys.com>.
Sorry guys .. I just wanted to do some clean up of code before submitting,
but before I could do that I got a task for a some demo project which took
me 4 days to complete :)

I will work on this weekend on clean up ....

On Wed, Nov 4, 2009 at 6:55 AM, Tim Ruppert <ti...@hotwaxmedia.com>wrote:

> Looking forward to seeing the new integrations!
>
> Cheers,
> Ruppert
> f:801.649.6595
>
>
> On Nov 3, 2009, at 11:03 AM, Jacques Le Roux wrote:
>
>  OK, it was not clear to me, thanks
>> If it's done the same way other gateways are implement I can't see any
>> issue using httpcomponents-client-4.0, and yes it should be located
>> framework/base/lib.
>> I suggest to open a Jira
>>
>> Jacques
>>
>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>
>>> Hi Jacques,
>>>
>>> I didn't get you .... If you meant any sagepay code is involved, then its
>>> not, I have implemented it same as any other payment gateways are
>>> integrated
>>> in ofbiz, for example authorize.net.
>>>
>>> On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
>>> jacques.le.roux@les7arts.com> wrote:
>>>
>>>  But isn't the SagePay payment gateway licence commercial ?
>>>>
>>>> Jacques
>>>>
>>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>>
>>>> I have integrated SagePay payment gateway into ofbiz accounting
>>>> component,
>>>>
>>>>> which I would like to contribute.
>>>>>
>>>>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>>>>
>>>>> I have choose to use httpcomponent because it is easy to send
>>>>> parameters &
>>>>> fetch response from the gateway, compared to using Socket class, and
>>>>> manually forming string and parsing the response string.
>>>>>
>>>>> If its ok then we can add the httpcomponents to the framework/base/lib
>>>>> folder, currently I have added the jar in accounting/lib.
>>>>>
>>>>> Regards,
>>>>> Abdullah
>>>>> http://www.viithiisys.com
>>>>>
>>>>>
>>>>>
>>>>
>>
>>
>

Re: SagePay Integrated

Posted by Tim Ruppert <ti...@hotwaxmedia.com>.
Looking forward to seeing the new integrations!

Cheers,
Ruppert
f:801.649.6595

On Nov 3, 2009, at 11:03 AM, Jacques Le Roux wrote:

> OK, it was not clear to me, thanks
> If it's done the same way other gateways are implement I can't see  
> any issue using httpcomponents-client-4.0, and yes it should be  
> located framework/base/lib.
> I suggest to open a Jira
>
> Jacques
>
> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>> Hi Jacques,
>>
>> I didn't get you .... If you meant any sagepay code is involved,  
>> then its
>> not, I have implemented it same as any other payment gateways are  
>> integrated
>> in ofbiz, for example authorize.net.
>>
>> On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
>> jacques.le.roux@les7arts.com> wrote:
>>
>>> But isn't the SagePay payment gateway licence commercial ?
>>>
>>> Jacques
>>>
>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>
>>> I have integrated SagePay payment gateway into ofbiz accounting  
>>> component,
>>>> which I would like to contribute.
>>>>
>>>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>>>
>>>> I have choose to use httpcomponent because it is easy to send  
>>>> parameters &
>>>> fetch response from the gateway, compared to using Socket class,  
>>>> and
>>>> manually forming string and parsing the response string.
>>>>
>>>> If its ok then we can add the httpcomponents to the framework/ 
>>>> base/lib
>>>> folder, currently I have added the jar in accounting/lib.
>>>>
>>>> Regards,
>>>> Abdullah
>>>> http://www.viithiisys.com
>>>>
>>>>
>>>
>
>


Re: SagePay Integrated

Posted by Abdullah Shaikh <ab...@viithiisys.com>.
Thanks Jacques. Yes opinions please ..

On Thu, Nov 19, 2009 at 4:32 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> I did it but not in http (only in base/lib) maybe I should (before I update
> allrelated files...) ? Opinions ?
>
>
> Jacques
>
> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>
>> Opening a jira issue for adding http jars into framework/base/lib folder,
>> I
>> guess we should have a "http" folder inside lib.
>>
>> There are already beta versions available in framework/testools/lib, its
>> better to remove these jars from testtools and put in base/lib/http
>> replacing them with release version.
>>
>> -Abdullah
>>
>> On Tue, Nov 3, 2009 at 11:33 PM, Jacques Le Roux <
>> jacques.le.roux@les7arts.com> wrote:
>>
>>  OK, it was not clear to me, thanks
>>> If it's done the same way other gateways are implement I can't see any
>>> issue using httpcomponents-client-4.0, and yes it should be located
>>> framework/base/lib.
>>> I suggest to open a Jira
>>>
>>>
>>> Jacques
>>>
>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>
>>>  Hi Jacques,
>>>>
>>>> I didn't get you .... If you meant any sagepay code is involved, then
>>>> its
>>>> not, I have implemented it same as any other payment gateways are
>>>> integrated
>>>> in ofbiz, for example authorize.net.
>>>>
>>>> On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
>>>> jacques.le.roux@les7arts.com> wrote:
>>>>
>>>>  But isn't the SagePay payment gateway licence commercial ?
>>>>
>>>>>
>>>>> Jacques
>>>>>
>>>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>>>
>>>>>  I have integrated SagePay payment gateway into ofbiz accounting
>>>>> component,
>>>>>
>>>>>  which I would like to contribute.
>>>>>>
>>>>>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>>>>>
>>>>>> I have choose to use httpcomponent because it is easy to send
>>>>>> parameters
>>>>>> &
>>>>>> fetch response from the gateway, compared to using Socket class, and
>>>>>> manually forming string and parsing the response string.
>>>>>>
>>>>>> If its ok then we can add the httpcomponents to the framework/base/lib
>>>>>> folder, currently I have added the jar in accounting/lib.
>>>>>>
>>>>>> Regards,
>>>>>> Abdullah
>>>>>> http://www.viithiisys.com
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>
>

Re: SagePay Integrated

Posted by Jacques Le Roux <ja...@les7arts.com>.
I did it but not in http (only in base/lib) maybe I should (before I update allrelated files...) ? Opinions ?

Jacques

From: "Abdullah Shaikh" <ab...@viithiisys.com>
> Opening a jira issue for adding http jars into framework/base/lib folder, I
> guess we should have a "http" folder inside lib.
> 
> There are already beta versions available in framework/testools/lib, its
> better to remove these jars from testtools and put in base/lib/http
> replacing them with release version.
> 
> -Abdullah
> 
> On Tue, Nov 3, 2009 at 11:33 PM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
> 
>> OK, it was not clear to me, thanks
>> If it's done the same way other gateways are implement I can't see any
>> issue using httpcomponents-client-4.0, and yes it should be located
>> framework/base/lib.
>> I suggest to open a Jira
>>
>>
>> Jacques
>>
>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>
>>> Hi Jacques,
>>>
>>> I didn't get you .... If you meant any sagepay code is involved, then its
>>> not, I have implemented it same as any other payment gateways are
>>> integrated
>>> in ofbiz, for example authorize.net.
>>>
>>> On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
>>> jacques.le.roux@les7arts.com> wrote:
>>>
>>>  But isn't the SagePay payment gateway licence commercial ?
>>>>
>>>> Jacques
>>>>
>>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>>
>>>>  I have integrated SagePay payment gateway into ofbiz accounting
>>>> component,
>>>>
>>>>> which I would like to contribute.
>>>>>
>>>>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>>>>
>>>>> I have choose to use httpcomponent because it is easy to send parameters
>>>>> &
>>>>> fetch response from the gateway, compared to using Socket class, and
>>>>> manually forming string and parsing the response string.
>>>>>
>>>>> If its ok then we can add the httpcomponents to the framework/base/lib
>>>>> folder, currently I have added the jar in accounting/lib.
>>>>>
>>>>> Regards,
>>>>> Abdullah
>>>>> http://www.viithiisys.com
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>


Re: SagePay Integrated

Posted by Abdullah Shaikh <ab...@viithiisys.com>.
Opening a jira issue for adding http jars into framework/base/lib folder, I
guess we should have a "http" folder inside lib.

There are already beta versions available in framework/testools/lib, its
better to remove these jars from testtools and put in base/lib/http
replacing them with release version.

-Abdullah

On Tue, Nov 3, 2009 at 11:33 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> OK, it was not clear to me, thanks
> If it's done the same way other gateways are implement I can't see any
> issue using httpcomponents-client-4.0, and yes it should be located
> framework/base/lib.
> I suggest to open a Jira
>
>
> Jacques
>
> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>
>> Hi Jacques,
>>
>> I didn't get you .... If you meant any sagepay code is involved, then its
>> not, I have implemented it same as any other payment gateways are
>> integrated
>> in ofbiz, for example authorize.net.
>>
>> On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
>> jacques.le.roux@les7arts.com> wrote:
>>
>>  But isn't the SagePay payment gateway licence commercial ?
>>>
>>> Jacques
>>>
>>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>>
>>>  I have integrated SagePay payment gateway into ofbiz accounting
>>> component,
>>>
>>>> which I would like to contribute.
>>>>
>>>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>>>
>>>> I have choose to use httpcomponent because it is easy to send parameters
>>>> &
>>>> fetch response from the gateway, compared to using Socket class, and
>>>> manually forming string and parsing the response string.
>>>>
>>>> If its ok then we can add the httpcomponents to the framework/base/lib
>>>> folder, currently I have added the jar in accounting/lib.
>>>>
>>>> Regards,
>>>> Abdullah
>>>> http://www.viithiisys.com
>>>>
>>>>
>>>>
>>>
>>
>
>

Re: SagePay Integrated

Posted by Jacques Le Roux <ja...@les7arts.com>.
OK, it was not clear to me, thanks
If it's done the same way other gateways are implement I can't see any issue using httpcomponents-client-4.0, and yes it should be 
located framework/base/lib.
I suggest to open a Jira

Jacques

From: "Abdullah Shaikh" <ab...@viithiisys.com>
> Hi Jacques,
>
> I didn't get you .... If you meant any sagepay code is involved, then its
> not, I have implemented it same as any other payment gateways are integrated
> in ofbiz, for example authorize.net.
>
> On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
>
>> But isn't the SagePay payment gateway licence commercial ?
>>
>> Jacques
>>
>> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>>
>>  I have integrated SagePay payment gateway into ofbiz accounting component,
>>> which I would like to contribute.
>>>
>>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>>
>>> I have choose to use httpcomponent because it is easy to send parameters &
>>> fetch response from the gateway, compared to using Socket class, and
>>> manually forming string and parsing the response string.
>>>
>>> If its ok then we can add the httpcomponents to the framework/base/lib
>>> folder, currently I have added the jar in accounting/lib.
>>>
>>> Regards,
>>> Abdullah
>>> http://www.viithiisys.com
>>>
>>>
>>
> 



Re: SagePay Integrated

Posted by Abdullah Shaikh <ab...@viithiisys.com>.
Hi Jacques,

I didn't get you .... If you meant any sagepay code is involved, then its
not, I have implemented it same as any other payment gateways are integrated
in ofbiz, for example authorize.net.

On Tue, Nov 3, 2009 at 10:50 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> But isn't the SagePay payment gateway licence commercial ?
>
> Jacques
>
> From: "Abdullah Shaikh" <ab...@viithiisys.com>
>
>  I have integrated SagePay payment gateway into ofbiz accounting component,
>> which I would like to contribute.
>>
>> For this I have used Apache httpcomponents-client-4.0, is it ok ?
>>
>> I have choose to use httpcomponent because it is easy to send parameters &
>> fetch response from the gateway, compared to using Socket class, and
>> manually forming string and parsing the response string.
>>
>> If its ok then we can add the httpcomponents to the framework/base/lib
>> folder, currently I have added the jar in accounting/lib.
>>
>> Regards,
>> Abdullah
>> http://www.viithiisys.com
>>
>>
>

Re: SagePay Integrated

Posted by Jacques Le Roux <ja...@les7arts.com>.
But isn't the SagePay payment gateway licence commercial ?

Jacques

From: "Abdullah Shaikh" <ab...@viithiisys.com>
>I have integrated SagePay payment gateway into ofbiz accounting component,
> which I would like to contribute.
> 
> For this I have used Apache httpcomponents-client-4.0, is it ok ?
> 
> I have choose to use httpcomponent because it is easy to send parameters &
> fetch response from the gateway, compared to using Socket class, and
> manually forming string and parsing the response string.
> 
> If its ok then we can add the httpcomponents to the framework/base/lib
> folder, currently I have added the jar in accounting/lib.
> 
> Regards,
> Abdullah
> http://www.viithiisys.com
>