简体   繁体   中英

PayPal adaptive payments response

I'm using the paypal adaptive SDK on github, for a simple 1 recipient payment, so I'm using the simple pay file.

https://github.com/paypal/adaptivepayments-sdk-php

I'm able to make a payment, I've entered all the details correctly and that's fine, but I'm just wondering where I get the response so I Know the payment was successful and I can process the order? Currently it just goes to the return URL, but where does the payment success date come from?

And also, if you could tell me how to send data like the order and user ID across that would be great too!

Thanks.

You can not check if payment was successful via success form, it doesnt recieve any payment information. Instead you should use IPN It will contact your server in a secure way and inform you on payment event. You can periodically pull your server on IPN message recieved for client via AJAX, to show inform what payment was processed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM