Shopping Cart API for any payment gateway? (PayPal at least required)

前端 未结 6 873
忘了有多久
忘了有多久 2021-02-07 07:35

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 IP

6条回答
  •  名媛妹妹
    2021-02-07 08:24

    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:

    1. You need a server that will communicate with PayPal (or DataTrans or any other payment systems)
    2. You need a database to capture all the payments transferred:

      • That have been settled
      • That have been payed but the settlement is not received yet
      • That still need to be payed
      • Installments done, finished, or yet to be done
    3. The server needs to be any web app (spring with hibernate etc) that has some security (acegi, spring)

    4. Every-time a user logs in and starts purchasing online you need to do a call to PayPal and get the response in a callback to the browser of the user
    5. Every time you have a settlement you save the needed data in the DB like user-id purchase-method owner card-number invoice-id PayPal -token

    I hope this helps

提交回复
热议问题