Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.59 KB

README.md

File metadata and controls

18 lines (15 loc) · 1.59 KB

SIMPLE PAYPAL PAYMENT

This are two minimal scripts that should help you to use Basic Paypal Payment for your custom cart solution.

How to use it

  • Simply send the data of your cart to the send_payment.php (e.g. via post request) and than parse it according to the examples.
  • Add your logic to the ipn.php to finish an order

More about the Basic Paypal Payment workflow

Usually the workflow looks like this

  • A customer adds products to his cart and fills his information in your checkout
  • After the confirmation this data is sent to the send_payment.php where it gets parsed and the order gets stored in your database as an open order.
  • The customer gets redirected to the Paypal Checkout page. After a successfull payment he gets redirect to your custom success page.
  • Paypal processes the transaction in the background and calls your ipn.php to inform you about the status. As soon as the transaction is completed, Paypal sends the status VERIFIED and you can finish your order by changing its status, sending a customer mail and the like. (Alternatively you could also send a prelimary mail on your success page).

NOTICES

We added your logic comments at the locations where you can add your custom code. If you need further functions have a look at the Paypal Documentation: