Receive form only if Paypal payment is complete

2019-09-20 12:37发布

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.

1条回答
Deceive 欺骗
2楼-- · 2019-09-20 12:56

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.

查看更多
登录 后发表回答