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.


  • Moderators

    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.


  • Moderators

    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:

    1. Choose your payment handler.
    2. Read your payment handler's documentation, to learn how to communicate with the payment handler service.
    3. Read Qt's documentation, to learn how to do general web communications.
    4. Combine your knowledge from #2 and #3 to build your application.

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.