So today I'll talk about how to integrate your website with PayPal.
First of all, go to PayPal to apply for a number bar, the information is complete, we can start the action music, yes, when applying for PayPal, apply for the kind of account that can accept other people's payment.
Next, we will really start the integration of PayPal and the website.
In fact, PayPal has to provide a fool-style Payment button creation method, but generally we do not, because we have to according to the actual situation of our website to write customized payment button. First, a piece of code:
Copy CodeThe code is as follows:
The above submission Form I wrote almost the most commonly used options, of course, there are special needs can go to the PayPal website to check the manual.
The previous form mentioned IPN (Instant Payment Notification), this is the key, that is, when the user paid a successful, PayPal sent us a notice, which contains the transaction information variables, We have designated PayPal to send these variable information to our site's pre-set page, through which we write the variable information we need to the database, and the page can obtain the desired information through $_post. How to set IPN, login paypal account, click Profile option, set IPN on it.
Well, it sounds simple enough to integrate PayPal so that your site can accept payments from users around the world!
http://www.bkjia.com/PHPjc/322627.html www.bkjia.com true http://www.bkjia.com/PHPjc/322627.html techarticle so today I'll talk about how to integrate your website with PayPal. First of all, go to PayPal to apply for a number bar, the information is complete, we can start action music, right, ...