Credit card application for online shopping
-
I would like to create a PC application in which there is a widget that handles the purchasing. The customer should purchase items via any credit card or paypal. I would like to know the process of creating this functionality. How the programmer design such an application that allows the user to purchase online. Thank you.
-
Hi @CroCo,
The first thing you should do is to choose a web payments handling service. They are the ones who receive and check your customers' credit card numbers. Your application should not see the credit card details at all -- it is too risky.
Here are a few examples: https://www.programmableweb.com/news/top-payments-apis-paypal-square-stripe-and-others/analysis/2015/03/11 There are more out there. Do some research and choose one.
Once you have chosen a payment handler, your programmer must learn the service's API (Application Programming Interface). This is probably a web-based API, so your widget will probably use Qt's networking classes (such as
QNetworkAccessManager
) to communicate with the payment handler. -
Hi @CroCo,
The first thing you should do is to choose a web payments handling service. They are the ones who receive and check your customers' credit card numbers. Your application should not see the credit card details at all -- it is too risky.
Here are a few examples: https://www.programmableweb.com/news/top-payments-apis-paypal-square-stripe-and-others/analysis/2015/03/11 There are more out there. Do some research and choose one.
Once you have chosen a payment handler, your programmer must learn the service's API (Application Programming Interface). This is probably a web-based API, so your widget will probably use Qt's networking classes (such as
QNetworkAccessManager
) to communicate with the payment handler. -
@JKSH Thank you so much for being informative and helpful. Does Qt documents have any example regarding this matter? thank you again.
You're welcome.
@CroCo said in Credit card application for online shopping:
Does Qt documents have any example regarding this matter?
The Qt documents don't have any examples for "communicating with credit card payment handlers". The Qt documents have examples for web communications.
You need to do a few different things:
- Choose your payment handler.
- Read your payment handler's documentation, to learn how to communicate with the payment handler service.
- Read Qt's documentation, to learn how to do general web communications.
- Combine your knowledge from #2 and #3 to build your application.