Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
163 views
in Technique[技术] by (71.8m points)

php - Receive form only if Paypal payment is complete

I'm looking for a way to receive a form result by email only if the payment has been completed on Paypal.

I have a form next to my shopping cart. I want people to fill the form, then they can browse in the shopping cart. Once they click on "Checkout" in the shopping cart, they are redirected on Paypal. The form I talked before is still on hold...not sent yet.

When the guy fills his credit card information, click Proceed on Paypal, and THEN... When the payment is complete, the form he filled on my website will be submited. But if he decide to close the paypal window and stop shopping, I won't receive it.

I need your help guys/girls. I'm not sure what language I need to make this work. I'm guessing PHP and Javascript.

Thanks a lot, This function is very important for us.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Check out the IPN (Instant Payment Notification).

https://www.paypal.com/ipn/

It will send a message to your server after a payment has been made, sounds like what you are looking for. You can write the listener in PHP and they provide example code.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...