Nick
Nick

Reputation: 297

PayPal adaptive payment success function

I am new to sandbox and paypal payment gateway. I am using paypal adaptive payment to pay amount to two people at a time. My current code works perfectly. I am using the paypal generated code. I just want to know that is it possible that when the payment is made successfully can I make that entry to my database. I have my php code, but where do I need to write this?

Thanks in advance(plzz no down votes)

Upvotes: 0

Views: 673

Answers (1)

Alon Eitan
Alon Eitan

Reputation: 12025

You should wait for the IPN message that contain details about the payment status

https://www.paypal.com/ipn

You need to define the url of the php script that listen for those messages in your paypal account. There are some php examples on how to implement it.

Upvotes: 1

Related Questions