Suggestion of good web framework work under tomcat?

43 views
Skip to first unread message

Carfield Yim

unread,
Sep 1, 2015, 11:21:24 AM9/1/15
to Codeaholics
Hi all, my friend have a site which is using php (wordpress) to develop. However, somehow he like to use a payment gateway support only Java.

As a result, he like to seek my help for the payment gateway part, which is very simple, just a form and a response page. However, there are few basic stuff we need, like some validation of the form, a database to save the data. I can code it all, but will there some good framework which provide good infrastructure for tasks like this?

Mark Wallace

unread,
Sep 2, 2015, 9:14:06 AM9/2/15
to codea...@googlegroups.com
I've never heard of a payment gateway being language-dependant, especially also since most websites are not built in Java.  Are you sure it is not just an example in Java was provided by the payment gateway?  Usually you can read the API documentation and work out how to integrate using PHP if an example is not given.

What payment gateway is it?

Best regards,
Mark


Mark Wallace
Founder & CEO

StoreSeen

T: +44 (0)844 504 1000 (UK Office)
T: +852 5803 2333 (Asia Pacific Office)
M: +44 (0)7890 600709 (UK)
M: +852 9427 0298 (HK)
E: ma...@storeseen.com
This message is intended solely for the use of the individual or organisation to whom it is addressed. It may contain privileged or confidential information.
If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you should not use, copy, alter, or disclose the contents of this message. All information or opinions expressed in this message and/or any attachments are those of the author and are not necessarily those of StoreSeen or its affiliates.

UK: StoreSeen (UK) Limited is registered in England. Company Number 09243870. Registered office: 145-157 St John Street, London, EC1V 4PW, United Kingdom.
Asia Pacific: StoreSeen (Asia Pacific) Limited is registered in Hong Kong. Company Number 2102338. Registered office: Unit 12, 1/F, 535 Canton Road, West Kowloon, Kowloon, Hong Kong.

Please consider the environment before printing this e-mail.



On 1 September 2015 at 23:21, Carfield Yim <carf...@gmail.com> wrote:
Hi all, my friend have a site which is using php (wordpress) to develop. However, somehow he like to use a payment gateway support only Java.

As a result, he like to seek my help for the payment gateway part, which is very simple, just a form and a response page. However, there are few basic stuff we need, like some validation of the form, a database to save the data. I can code it all, but will there some good framework which provide good infrastructure for tasks like this?

--
You received this message because you are subscribed to the Google Groups "Codeaholics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codeaholics...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carfield Yim

unread,
Sep 2, 2015, 11:28:59 AM9/2/15
to codea...@googlegroups.com
Jetco of HKBEA

Hubert Lee

unread,
Sep 2, 2015, 11:41:35 AM9/2/15
to Codeaholics, carf...@carfield.com.hk
Unfortunately, local payment gateways are unlikely to expose a public API that you can develop against like PayPal/Braintree. If you're integrating with a payment gateway like JETCO, they'll provide you with a jar file and RSA keys and expect you to use their library to encrypt/decrypt requests to their servers. What I've done in the past is just wrap a minimal webservice around the library that provides a REST API to the calls needed, then developed my application against the API that my service exposed.

Hubert

Carfield Yim

unread,
Sep 2, 2015, 12:03:45 PM9/2/15
to Codeaholics, carf...@carfield.com.hk
Thanks, make sense, but probably not the way I will go, I just plan to spend less than few hours tomorrow for this, that why I ask this question

Steve Holmes

unread,
Sep 3, 2015, 6:52:28 AM9/3/15
to Codeaholics, Carfield Yim
Yeah you're not going to be just spending a few hours with Jetco if experience is anything to go by.
Run away (unless you're getting paid).

Joseph Wang

unread,
Sep 3, 2015, 12:18:30 PM9/3/15
to Codeaholics
Speaking of which, I have a similar problem with HK brokers.  I'd like to start doing algo trading, but it seems that all of the local brokers use Sharppoint whose API is a windows blob, and none of them provide a clean REST API.  The solution seems to be to write a REST wrapper around the blob and run it in a local virtual machine using VirtualBox and then connect to it via a network.

This is something that I will get around to doing eventually, and all of my algo trading scripts are open source and downloadable from github.  If anyone has already done this or is interested in doing this, let me know.  There are some standard option trading strategies in the HK market (see http://www.practicaloption.com.hk/), and what I'm trying to do is to just script some of the standard strategies.  I've got a ticker that gets data from yahoo and then pings my cell phone when something interesting happens.  The next step will be to interface with HK brokers so that I can get data and then send up trades.

See


Also I agree with the statements on Java.  Run away unless you are getting paid.  I wasted a good six months trying to get a Java trading system to the "hello world" stage, before I gave up, and it took me a week to do it with python.  



Joseph Wang

unread,
Sep 3, 2015, 12:23:02 PM9/3/15
to Codeaholics
It's (unfortunately) pretty standard in Hong Kong for companies to give you an API via a binary blob which you are expected to interface with.  The point of the exercise is to make sure you are locked into a vendor, and to make it impossible for you to switch vendors once you've written your code.


Reply all
Reply to author
Forward
0 new messages