accept visa and masterCard payment in java application [closed]

笑着哭i 提交于 2020-08-26 13:55:07

问题


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.


回答1:


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.




回答2:


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.




回答3:


I googled and I found that http://www.authorize.net/ provide good API and examples also. http://developer.authorize.net/integration/fifteenminutes/java/



来源:https://stackoverflow.com/questions/31972255/accept-visa-and-mastercard-payment-in-java-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!