I am new to this topic, so I don't know what I need to accept payments using credit cards like visa and master card in my java application. Please also give me the code I should write in java to fulfill this task.
-
1You're looking for Stripe. – SLaks Aug 12 '15 at 18:00
-
2That's a tall order, and WAY full of security risk. Many companies, even larger ones, farm that sort of thing out to companies that are specifically suited to handle it. – durbnpoisn Aug 12 '15 at 18:00
-
i am open to all solutions, but if you suggest one please tell me how to implement it. – user1512999 Aug 12 '15 at 18:02
-
2Sort of, like [__PayPal__](https://developer.paypal.com/docs/classic/lifecycle/sdks/) would be very helpful. – Mordechai Aug 12 '15 at 18:06
3 Answers
What you're looking for is a payment processor API like Stripe. See Stripe's API documentation here: https://stripe.com/docs
"Give me the code I should write in Java" is a much, much bigger request than you seem to realize. That's like asking an architect to give you detailed instructions for designing and building a house when you don't even know how many rooms it should have. That said, Stripe's documentation provides examples for pretty much every operation - if you have any understanding of Java to start with, you should have no problem consuming the Stripe API.
As a side note, if you wind up storing any credit card information on your server, you are required to adhere to PCI standards: https://www.pcisecuritystandards.org/hardware_software/
As a second side note, any failure on your part in adherence to PCI or security of your application makes you responsible for any data theft and/or resulting fraud. Even if you adhere to PCI, other security issues in your application can allow attackers to steal your customers' sensitive credit card data. Consider carefully when deciding how to accept credit card payments. Using an embedded integration like Stripe's embedded Checkout insulates you from these responsibilities because Stripe handles all of the actual credit card data.

- 1,185
- 1
- 11
- 17
-
1thank you,I think that stripes is the same like authorize.net which I found using google. yes I can read the java code in tutorial, but I have just 2 questions: 1- is authorize.net and stripes are the same? 2- are they both free to use? – user1512999 Aug 12 '15 at 19:05
-
1Authorize.net and Stripe are not the same company, but they perform the same task - both have payment APIs you can use to programmatically charge credit cards. Neither are free. Both charge 2.9% + $0.30 per successful transaction. However, Authorize.net also charges a $49 "setup" fee. https://stripe.com/us/pricing https://www.authorize.net/solutions/merchantsolutions/pricing/ – spork Aug 13 '15 at 21:18
You need to use a Payment Processor that can accept payments via credit/debit cards, and that also provides an API that your code can interface with.
Do some searching for 'credit card processor', 'payment processor' and 'java api' or 'web application' or similar and see what you find.

- 2,583
- 2
- 19
- 33
I googled and I found that http://www.authorize.net/ provide good API and examples also. http://developer.authorize.net/integration/fifteenminutes/java/

- 237
- 2
- 6
- 19