开发者

Online Reservation and Payment System

开发者 https://www.devze.com 2023-02-05 07:04 出处:网络
we created an online reservation and payment system, we are going to use paypal to pay for the reservation fee.

we created an online reservation and payment system, we are going to use paypal to pay for the reservation fee.

how do we exactly save the information of our customer and reservation info to our database, after confirming their payment.

how do we confirm that they also paid it?

thanks in advance开发者_如何学编程. as of now we're using the 'pay now' button


You should save the info to the database FIRST, then they can go to the PayPal site. After that, you can use Instant Payment Notification to mark the order as complete.

https://www.paypal.com/ipn


Paypal provide different methods to make payment; you can redirect user to PayPal from your application without taking customer information (e.g. name, phone, email). PayPal API is rich with multiple set of methods like SetExpressCheckOut, GetExpressCheckOut, DoExpressChckOut.

First please make a contract with PayPal and get the Merchant information; later you can have detailed documented API to talk to them.

Thank you

0

精彩评论

暂无评论...
验证码 换一张
取 消