json - Check if payment was successful via PHP and/or JQuery?(PayPal API) -
i creating website in selling something. website works described:
- the customers choose product
- 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
Post a Comment