How to setup Paypal IPN using PHP - 2

In last section, You have created all php scripts to use for Paypal IPN. But few things are remains.
We will see in this segment.

1. Create database table to store data:
CREATE TABLE IF NOT EXISTS `orders` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `txn_id` varchar(50) NOT NULL,
  `payer_email` varchar(50) NOT NULL,
  `mc_gross` varchar(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
2. Enable IPN services On paypal .
Follow steps according to Image:
paypal ipn 1

paypal ipn 2

paypal ipn 3

Thats it. Now you can use Paypal IPN services. If you complete a payment. Its information will store in Orders table of your selected database as well as a results.txt page will create, carries all information regarding this payment.
After doing all these things. If you face any problem, you can comment on this post. I will respond as soon as possible.
Thanks.
0 Comments
Disqus
Fb Comments
Comments :

0 comments:

Post a Comment