Reputation: 72001
I'm trying to find a java based API that wraps up the details of processing a credit card transaction or purchase via PayPal at a minimum, and other gateways as a plus in an IPN fashion (ie no products required, just an invoice amount)
As a bit of a simplification, I think I should be able to do something like the following pseudocode:
shoppingApi.postTransaction("paypal", amount, currency, invoiceId, purchaseDescription)
and later on during a scheduled task or on notification from an IPN url:
completedPayments = shoppingApi.getUnprocessedCompletedPayments();
for (Payment payment: completedPayments)
{
// my code to process a successful payment.
}
and then I'd process the purchases.
I know there's tons of shopping carts out there that do this, but from what I've seen, they all want you to put your products in their system, which doesn't work for me. My products are in a 3rd party system, and I just want to process a payment. That's all.
And no cart I know of exposes a simple API like the one I'm suggesting above. I don't care what payment type my users use, I just want to know if they completed it. I know that Shopify.com has a REST api that does something like this, but it's not IPN like (it wants your products in it's system).
Thanks in advance for any suggestions!
EDIT: I know of course that there'd be other statuses that I'd need to look at, like "pending", etc, but that'd simply be another simple API call, like shoppingApi.getPendingPayments(). If the API did the above 2 calls, I'd be pretty happy ;-)
EDIT 2: I'd prefer opensource, but am totally open to commercial if it's a flat fee, can be trialed to some extent, and is reasonably mature/respectable
EDIT 3 - MAJOR NOTE: I feel confident that such a library should exist. Whether or not it does is another question. So to be clear, I'd really like to see "yes, use this library" answers, not "NO", this can't be done, as I'm %99.999 sure it can be done ;-) Thanks in advance!
Upvotes: 17
Views: 7860
Reputation: 29
Though the thread is very old, I just wanted to add details of an API which I came across recently, that may match the requirements of the question. I hope this will help others who are looking for similar answers.
Try Shopizer. This API was build on Java, Spring, Hibernate, jQuery and elasticsearch.
Upvotes: 0
Reputation: 1165
There's this site which could be used via jruby
.
This may or may not come somewhere near meeting your requirements.
Upvotes: 1
Reputation: 8230
I would say it's better to write your own api, because anything related to payment and purchase processes will cost you money to get. You need the following for your app to accomplish:
You need a database to capture all the payments transferred:
The server needs to be any web app (spring with hibernate etc) that has some security (acegi, spring)
user-id
purchase-method
owner
card-number
invoice-id
PayPal -token
I hope this helps
Upvotes: 1
Reputation: 39
Java SDKs are available here - https://www.x.com/developers/paypal/documentation-tools/paypal-sdk-index
All of them come with a nice handy example (check README.md files) which will get you started.
Upvotes: 1
Reputation: 1302
I know only this product (commercial): IBM WebSphere Commerce Payment There is a tutorial to integrate also with PayPal: Integration with PayPal
I dont know the license cost, you must contact IBM for this.
Upvotes: 1
Reputation: 6657
You can not get an API for payment gateway integration. You will have to write your own development for the processing with various payment gateways. For that you have to understand that which payment gateway gets which parameters and its requesting URL for requesting for the paymentgateway. You can get this information by varius payment gateway websites.
This url may helpful to you
For HDFC : http://www.hdfcbank.com/sme/sme-details?id=guzh6m0i
For Paypal : https://merchant.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=merchant/payment_gateway
Secure Pay : http://www.securepay.com.au/
techpro [ ICICI ] : http://forums.devarticles.com/asp-development-3/how-to-integrate-payseal-icici-payment-gateway-95329.html
Here you can also find the development APIs or the guidelines for the development that which parameters they will require for processing the requests.
Hope this may help you.
Enjoy !!!
Upvotes: 1