Skip to content

Minimal php scripts to integrate basic paypal payment with your custom cart solution

License

Notifications You must be signed in to change notification settings

Pragmatic-Apps/simple_paypal_payment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Minimal php scripts to integrate basic paypal payment with your custom cart solution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages