json - Check if payment was successful via PHP and/or JQuery?(PayPal API) -


i creating website in selling something. website works described:

  1. the customers choose product
  2. the customers clicks on link buy product redirect directly paypal.

what want following, after payment successfull want write paypal-email adress of customer in database this:

| id | paypal | approved |

| 1 | j@d.com | yes |

how can realize that? have have redirect customer "checkout page" afterwards , execute php-code there read data?

can me out here? :) thanks!

you looking instant payment notifications. instant payment notification (ipn) message service automatically notifies merchants of events related paypal transactions. merchants can use automate back-office , administrative functions, automatically fulfilling orders , providing customers order status.

so, after every transaction, paypal send notification server listener file includes buyer,transaction information can use store in database.

you can download sample php code here


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -